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