AguiContext
public class AguiContext
源码Source
io/agentscope/core/agui/model/AguiContext.java:29–82AGUI 上下文,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.core.agui.model 包。核心成员包括 getDescription、getValue、toString、equals、hashCode、AguiContext。
Represents a piece of contextual information in the AG-UI protocol.
Context items provide additional information to the agent that may be relevant for generating responses. They contain a description of what the context represents and its actual value.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public AguiContext(String description, String value) | 创建新的AguiContext。 Creates a new AguiContext. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getDescription() | 获取 `getDescription`。 Get the context description. |
public String getValue() | 获取上下文值。 Get the context value. |
public String toString() | 返回 `toString` 结果。 Returns the to string. |
public boolean equals(Object o) | 设置该参数。 Performs the equals operation. |
public int hashCode() | 返回 `hashCode` 结果。 Returns the hash code. |
构造器详情Constructor Detail
AguiContext
public AguiContext(String description, String value)
创建新的AguiContext。
Creates a new AguiContext.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
description | String | 描述(类型 `String`)。Description of what this context represents |
value | String | 值(类型 `String`)。The actual context value |
源码Source
io/agentscope/core/agui/model/AguiContext.java:40–45方法详情Method Detail
getDescription
public String getDescription()
获取 getDescription。
Get the context description.
String返回字符串结果。The description
源码Source
io/agentscope/core/agui/model/AguiContext.java:52–54getValue
public String getValue()
获取上下文值。
Get the context value.
String返回字符串结果。The value
源码Source
io/agentscope/core/agui/model/AguiContext.java:61–63toString
public String toString()
返回 toString 结果。
Returns the to string.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/agui/model/AguiContext.java:65–68equals
public boolean equals(Object o)
设置该参数。
Performs the equals operation.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
o | Object | o(类型 `Object`)。The o. |
boolean返回布尔值,表示判断结果。Returns a boolean result.
源码Source
io/agentscope/core/agui/model/AguiContext.java:70–76hashCode
public int hashCode()
返回 hashCode 结果。
Returns the hash code.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/core/agui/model/AguiContext.java:78–81