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.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/protocol/responseapi/model/ResponsePrompt.java:29–31setVersion
public void setVersion(String version)
设置版本。
Sets the version.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
version | String | 版本(类型 `String`)。The version. |
源码Source
io/agentscope/runtime/protocol/responseapi/model/ResponsePrompt.java:33–35getVariables
public Map<String, Object> getVariables()
获取 getVariables。
Returns the variables.
Map<String, Object>返回映射。Returns map.
源码Source
io/agentscope/runtime/protocol/responseapi/model/ResponsePrompt.java:37–39setVariables
public void setVariables(Map<String, Object> variables)
设置 setVariables。
Sets the variables.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
variables | Map<String, Object> | variables(类型 `Map`)。The variables. |
源码Source
io/agentscope/runtime/protocol/responseapi/model/ResponsePrompt.java:41–43getId
public String getId()
获取标识。
Returns the id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/protocol/responseapi/model/ResponsePrompt.java:45–47setId
public void setId(String id)
设置标识。
Sets the id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
源码Source
io/agentscope/runtime/protocol/responseapi/model/ResponsePrompt.java:49–51