AguiFunctionCall
public class AguiFunctionCall
源码Source
io/agentscope/core/agui/model/AguiFunctionCall.java:27–80AGUI 函数调用,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.core.agui.model 包。核心成员包括 getName、getArguments、toString、equals、hashCode、AguiFunctionCall。
Represents a function call within a tool call in the AG-UI protocol.
This class contains the function name and its arguments as a JSON string.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public AguiFunctionCall(String name, String arguments) | 创建新的AguiFunctionCall。 Creates a new AguiFunctionCall. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getName() | 获取函数名称。 Get the function name. |
public String getArguments() | 获取参数。 Get the function arguments as a JSON string. |
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
AguiFunctionCall
public AguiFunctionCall(String name, String arguments)
创建新的AguiFunctionCall。
Creates a new AguiFunctionCall.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
name | String | 函数名称。The function name |
arguments | String | 参数(类型 `String`)。The function arguments as a JSON string |
源码Source
io/agentscope/core/agui/model/AguiFunctionCall.java:38–43方法详情Method Detail
getName
public String getName()
获取函数名称。
Get the function name.
String函数名称。The function name
源码Source
io/agentscope/core/agui/model/AguiFunctionCall.java:50–52getArguments
public String getArguments()
获取参数。
Get the function arguments as a JSON string.
String返回字符串结果。The arguments JSON string
源码Source
io/agentscope/core/agui/model/AguiFunctionCall.java:59–61toString
public String toString()
返回 toString 结果。
Returns the to string.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/core/agui/model/AguiFunctionCall.java:63–66equals
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/AguiFunctionCall.java:68–74hashCode
public int hashCode()
返回 hashCode 结果。
Returns the hash code.
int返回数值结果。Returns a numeric result.
源码Source
io/agentscope/core/agui/model/AguiFunctionCall.java:76–79