类class
agentscope.app.storageTeamData
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 |
|---|---|---|---|
name | str | 团队的展示名称。 | Field(description='Display name of the team.', title='Name') |
description | str | `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_ids | list[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) |
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') |
属性详情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:59description
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:64member_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:74members
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