AS AgentScopeAPI 手册 / API Reference

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.

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

setId

public void setId(String id)

设置标识。

Sets the id.

参数Parameters
名称Name类型Type说明Description
idString标识(类型 `String`)。The id.
源码Source io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:35–37

getRole

public String getRole()

获取角色。

Returns the role.

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

setRole

public void setRole(String role)

设置角色。

Sets the role.

参数Parameters
名称Name类型Type说明Description
roleString角色(类型 `String`)。The role.
源码Source io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:43–45

getStatus

public String getStatus()

获取状态。

Returns the status.

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

setStatus

public void setStatus(String status)

设置状态。

Sets the status.

参数Parameters
名称Name类型Type说明Description
statusString状态(类型 `String`)。The status.
源码Source io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:51–53

getType

public String getType()

获取类型。

Returns the type.

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

setType

public void setType(String type)

设置类型。

Sets the type.

参数Parameters
名称Name类型Type说明Description
typeString类型(类型 `String`)。The type.
源码Source io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:59–61

getContent

public List<ResponseContent> getContent()

获取内容。

Returns the content.

返回Returns List<ResponseContent>
返回列出。Returns list.
源码Source io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:63–65

setContent

public void setContent(List<ResponseContent> content)

设置内容。

Sets the content.

参数Parameters
名称Name类型Type说明Description
contentList<ResponseContent>内容(类型 `List`)。The content.
源码Source io/agentscope/runtime/protocol/responseapi/model/OutputMessage.java:67–69
基于官方固定版本源码静态生成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.