AS AgentScopeAPI 手册 / API Reference
类class agentscope.app.storage

TeamData

class TeamData(BaseModel)
源码Source agentscope/app/storage/_model/_team.py:56–97

团队数据模型。位于 agentscope.app.storage 包。

The team data model. Declared in agentscope.app.storage.

属性摘要Attribute Summary

属性Attribute类型Type说明Description值Value
namestr
团队的展示名称。
Field(description='Display name of the team.', title='Name')
descriptionstr
`description` 字段。
Field(default='', description="What the team is for — its overall goal or shared context. Wired into every member's system prompt so all members share the same high-level understanding of why the team exists.", title='Description')
member_idslist[str]
`member_ids` 字段。
Field(default_factory=list, description="**Deprecated** — legacy roster of worker agent ids from before the ``AgentInvite`` era, when every member was team-spawned (``source='team'``) with a 1:1 agent-session mapping. New code should read :attr:`members` via the ``ensure_team_members`` helper, which migrates any records still using this field to the richer schema on first read.", title='Member Ids', deprecated=True)
memberslist[TeamMember]
成员字段。
Field(default_factory=list, description='Explicit member roster with role + session id per entry. Read this via the ``ensure_team_members`` helper so legacy records with only :attr:`member_ids` populated are migrated transparently.', title='Members')

属性详情Attribute Detail

name

str = Field(description='Display name of the team.', title='Name')

团队的展示名称。

Display name of the team.

源码Source agentscope/app/storage/_model/_team.py:59

description

str = Field(default='', description="What the team is for — its overall goal or shared context. Wired into every member's system prompt so all members share the same high-level understanding of why the team exists.", title='Description')

description 字段。声明为 str。

What the team is for — its overall goal or shared context.

源码Source agentscope/app/storage/_model/_team.py:64

member_ids

list[str] = Field(default_factory=list, description="**Deprecated** — legacy roster of worker agent ids from before the ``AgentInvite`` era, when every member was team-spawned (``source='team'``) with a 1:1 agent-session mapping. New code should read :attr:`members` via the ``ensure_team_members`` helper, which migrates any records still using this field to the richer schema on first read.", title='Member Ids', deprecated=True)

member_ids 字段。声明为 list[str]。

Deprecated** — legacy roster of worker agent ids from before the AgentInvite era, when every member was team-spawned (source='team') with a 1:1 agent-session mapping.

源码Source agentscope/app/storage/_model/_team.py:74

members

list[TeamMember] = Field(default_factory=list, description='Explicit member roster with role + session id per entry. Read this via the ``ensure_team_members`` helper so legacy records with only :attr:`member_ids` populated are migrated transparently.', title='Members')

成员字段。声明为 list[TeamMember]。

Explicit member roster with role + session id per entry.

源码Source agentscope/app/storage/_model/_team.py:88
基于官方固定版本源码静态生成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.