AS AgentScopeAPI 手册 / API Reference

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–35

FunctionCallOutput

public FunctionCallOutput(String callId, String name, String output)

初始化 FunctionCallOutput 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
callIdString调用标识(类型 `String`)。The call id.
nameString名称(类型 `String`)。The name.
outputString输出(类型 `String`)。The output.
源码Source io/agentscope/runtime/engine/schemas/FunctionCallOutput.java:37–41

方法详情Method Detail

getCallId

public String getCallId()

获取调用标识。

Returns the call id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/engine/schemas/FunctionCallOutput.java:43–45

setCallId

public void setCallId(String callId)

设置调用标识。

Sets the call id.

参数Parameters
名称Name类型Type说明Description
callIdString调用标识(类型 `String`)。The call id.
源码Source io/agentscope/runtime/engine/schemas/FunctionCallOutput.java:47–49

getName

public String getName()

获取名称。

Returns the name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/engine/schemas/FunctionCallOutput.java:51–53

setName

public void setName(String name)

设置名称。

Sets the name.

参数Parameters
名称Name类型Type说明Description
nameString名称(类型 `String`)。The name.
源码Source io/agentscope/runtime/engine/schemas/FunctionCallOutput.java:55–57

getOutput

public String getOutput()

获取输出。

Returns the output.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/engine/schemas/FunctionCallOutput.java:59–61

setOutput

public void setOutput(String output)

设置输出。

Sets the output.

参数Parameters
名称Name类型Type说明Description
outputString输出(类型 `String`)。The output.
源码Source io/agentscope/runtime/engine/schemas/FunctionCallOutput.java:63–65
基于官方固定版本源码静态生成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.