AS AgentScopeAPI 手册 / API Reference

TeamMessage

public record TeamMessage(String from, String to, String content, long id)
源码Source io/agentscope/harness/agent/team/TeamMessage.java:21–34

承载团队消息数据的记录类型。位于 io.agentscope.harness.agent.team 包。核心成员包括 from、to、content、id。

Team mailbox message.

记录组件摘要Record Component Summary

组件Component类型Type说明Description
fromString
创建并返回实例。
Creates and returns an instance.
toString
执行到相关操作。
Performs the to operation.
contentString
执行内容相关操作。
Performs the content operation.
idlong
执行标识相关操作。
Performs the id operation.

记录组件详情Record Component Detail

from

String from

创建并返回实例。

Creates and returns an instance.

源码Source io/agentscope/harness/agent/team/TeamMessage.java:21–34

to

String to

执行到相关操作。

Performs the to operation.

源码Source io/agentscope/harness/agent/team/TeamMessage.java:21–34

content

String content

执行内容相关操作。

Performs the content operation.

源码Source io/agentscope/harness/agent/team/TeamMessage.java:21–34

id

long id

执行标识相关操作。

Performs the id operation.

源码Source io/agentscope/harness/agent/team/TeamMessage.java:21–34
基于官方固定版本源码静态生成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.