AS AgentScopeAPI 手册 / API Reference

ResponsePrompt

@JsonIgnoreProperties(ignoreUnknown = true) public class ResponsePrompt
源码Source io/agentscope/runtime/protocol/responseapi/model/ResponsePrompt.java:23–52

响应提示词,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.runtime.protocol.responseapi.model 包。核心成员包括 getVersion、setVersion、getVariables、setVariables、getId、setId。

A class in io.agentscope.runtime.protocol.responseapi.model that talks to model services and returns generated or embedded output. Declared in io.agentscope.runtime.protocol.responseapi.model.

方法摘要Method Summary

方法Method说明Description
public String getVersion()
获取版本。
Returns the version.
public void setVersion(String version)
设置版本。
Sets the version.
public Map<String, Object> getVariables()
获取 `getVariables`。
Returns the variables.
public void setVariables(Map<String, Object> variables)
设置 `setVariables`。
Sets the variables.
public String getId()
获取标识。
Returns the id.
public void setId(String id)
设置标识。
Sets the id.

方法详情Method Detail

getVersion

public String getVersion()

获取版本。

Returns the version.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/protocol/responseapi/model/ResponsePrompt.java:29–31

setVersion

public void setVersion(String version)

设置版本。

Sets the version.

参数Parameters
名称Name类型Type说明Description
versionString版本(类型 `String`)。The version.
源码Source io/agentscope/runtime/protocol/responseapi/model/ResponsePrompt.java:33–35

getVariables

public Map<String, Object> getVariables()

获取 getVariables。

Returns the variables.

返回Returns Map<String, Object>
返回映射。Returns map.
源码Source io/agentscope/runtime/protocol/responseapi/model/ResponsePrompt.java:37–39

setVariables

public void setVariables(Map<String, Object> variables)

设置 setVariables。

Sets the variables.

参数Parameters
名称Name类型Type说明Description
variablesMap<String, Object>variables(类型 `Map`)。The variables.
源码Source io/agentscope/runtime/protocol/responseapi/model/ResponsePrompt.java:41–43

getId

public String getId()

获取标识。

Returns the id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/protocol/responseapi/model/ResponsePrompt.java:45–47

setId

public void setId(String id)

设置标识。

Sets the id.

参数Parameters
名称Name类型Type说明Description
idString标识(类型 `String`)。The id.
源码Source io/agentscope/runtime/protocol/responseapi/model/ResponsePrompt.java:49–51
基于官方固定版本源码静态生成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.