FunctionCall
public class FunctionCall
源码Source
io/agentscope/runtime/engine/schemas/FunctionCall.java:24–66表示函数调用 in 消息。位于 io.agentscope.runtime.engine.schemas 包。核心成员包括 getCallId、setCallId、getName、setName、getArguments、setArguments。
Represents a function call in a message.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public FunctionCall() | 初始化 `FunctionCall` 实例。 Creates a new instance. |
public FunctionCall(String callId, String name, String arguments) | 初始化 `FunctionCall` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public String getCallId() | 获取调用标识。 Returns the call id. |
public void setCallId(String callId) | 设置调用标识。 Sets the call id. |
public String getName() | 获取名称。 Returns the name. |
public void setName(String name) | 设置名称。 Sets the name. |
public String getArguments() | 获取参数。 Returns the arguments. |
public void setArguments(String arguments) | 设置参数。 Sets the arguments. |
构造器详情Constructor Detail
FunctionCall
public FunctionCall()
初始化 FunctionCall 实例。
Creates a new instance.
源码Source
io/agentscope/runtime/engine/schemas/FunctionCall.java:34–35FunctionCall
public FunctionCall(String callId, String name, String arguments)
初始化 FunctionCall 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
callId | String | 调用标识(类型 `String`)。The call id. |
name | String | 名称(类型 `String`)。The name. |
arguments | String | 参数(类型 `String`)。The arguments. |
源码Source
io/agentscope/runtime/engine/schemas/FunctionCall.java:37–41方法详情Method Detail
getCallId
public String getCallId()
获取调用标识。
Returns the call id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/engine/schemas/FunctionCall.java:43–45setCallId
public void setCallId(String callId)
设置调用标识。
Sets the call id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
callId | String | 调用标识(类型 `String`)。The call id. |
源码Source
io/agentscope/runtime/engine/schemas/FunctionCall.java:47–49getName
public String getName()
获取名称。
Returns the name.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/engine/schemas/FunctionCall.java:51–53setName
public void setName(String name)
设置名称。
Sets the name.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
name | String | 名称(类型 `String`)。The name. |
源码Source
io/agentscope/runtime/engine/schemas/FunctionCall.java:55–57getArguments
public String getArguments()
获取参数。
Returns the arguments.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/engine/schemas/FunctionCall.java:59–61setArguments
public void setArguments(String arguments)
设置参数。
Sets the arguments.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
arguments | String | 参数(类型 `String`)。The arguments. |
源码Source
io/agentscope/runtime/engine/schemas/FunctionCall.java:63–65