OutputMessage
@JsonIgnoreProperties(ignoreUnknown = true) public class OutputMessage
源码Source
io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:23–70输出消息,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.runtime.protocol.responseapi.model 包。核心成员包括 getId、setId、getRole、setRole、getStatus、setStatus。
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 getId() | 获取标识。 Returns the id. |
public void setId(String id) | 设置标识。 Sets the id. |
public String getRole() | 获取角色。 Returns the role. |
public void setRole(String role) | 设置角色。 Sets the role. |
public String getStatus() | 获取状态。 Returns the status. |
public void setStatus(String status) | 设置状态。 Sets the status. |
public String getType() | 获取类型。 Returns the type. |
public void setType(String type) | 设置类型。 Sets the type. |
public List<ResponseContent> getContent() | 获取内容。 Returns the content. |
public void setContent(List<ResponseContent> content) | 设置内容。 Sets the content. |
方法详情Method Detail
getId
public String getId()
获取标识。
Returns the id.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:31–33setId
public void setId(String id)
设置标识。
Sets the id.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
源码Source
io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:35–37getRole
public String getRole()
获取角色。
Returns the role.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:39–41setRole
public void setRole(String role)
设置角色。
Sets the role.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
role | String | 角色(类型 `String`)。The role. |
源码Source
io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:43–45getStatus
public String getStatus()
获取状态。
Returns the status.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:47–49setStatus
public void setStatus(String status)
设置状态。
Sets the status.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
status | String | 状态(类型 `String`)。The status. |
源码Source
io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:51–53getType
public String getType()
获取类型。
Returns the type.
String返回字符串结果。Returns a string.
源码Source
io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:55–57setType
public void setType(String type)
设置类型。
Sets the type.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
type | String | 类型(类型 `String`)。The type. |
源码Source
io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:59–61getContent
public List<ResponseContent> getContent()
获取内容。
Returns the content.
List<ResponseContent>返回列出。Returns list.
源码Source
io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:63–65setContent
public void setContent(List<ResponseContent> content)
设置内容。
Sets the content.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
content | List<ResponseContent> | 内容(类型 `List`)。The content. |
源码Source
io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:67–69