AS AgentScopeAPI 手册 / API Reference

AguiFunctionCall

public class AguiFunctionCall
源码Source io/agentscope/core/agui/model/AguiFunctionCall.java:27–80

AGUI 函数调用,与模型服务通信并返回生成或向量化结果。位于 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
nameString函数名称。The function name
argumentsString参数(类型 `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.

返回Returns String
函数名称。The function name
源码Source io/agentscope/core/agui/model/AguiFunctionCall.java:50–52

getArguments

public String getArguments()

获取参数。

Get the function arguments as a JSON string.

返回Returns String
返回字符串结果。The arguments JSON string
源码Source io/agentscope/core/agui/model/AguiFunctionCall.java:59–61

toString

public String toString()

返回 toString 结果。

Returns the to string.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/agui/model/AguiFunctionCall.java:63–66

equals

public boolean equals(Object o)

设置该参数。

Performs the equals operation.

参数Parameters
名称Name类型Type说明Description
oObjecto(类型 `Object`)。The o.
返回Returns boolean
返回布尔值,表示判断结果。Returns a boolean result.
源码Source io/agentscope/core/agui/model/AguiFunctionCall.java:68–74

hashCode

public int hashCode()

返回 hashCode 结果。

Returns the hash code.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/core/agui/model/AguiFunctionCall.java:76–79
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.