类class
agentscope.app.storageInviteConfig
class InviteConfig(BaseModel)
源码Source
agentscope/app/storage/_model/_agent.py:14–63邀请配置,保存相关配置项。位于 agentscope.app.storage 包。
Kept in its own sub-model so the frontend's schema-driven form —
which renders any nested-object property as its own fieldset —
picks it up as a dedicated section without a per-field allowlist.
Also keeps the cross-field invitable ⇒ non-empty description
invariant local to this model.
属性摘要Attribute Summary
| 属性Attribute | 类型Type | 说明Description | 值Value |
|---|---|---|---|
invitable | bool | `invitable` 字段。 | Field(default=False, description="Whether this agent may be borrowed into another agent's team via the ``AgentInvite`` tool. Independent from :attr:`invite_description` so the user can preserve an authored blurb while temporarily disabling the toggle. ``invitable=True`` requires a non-empty :attr:`invite_description` (enforced by validator).", title='Invitable') |
invite_description | str | None | `invite_description` 字段。 | Field(default=None, description="Free-text blurb shown to a leader LLM in the ``AgentInvite`` tool description — used by the leader to decide whether to borrow this agent. Persisted across toggle off/on so the user's authored draft is not lost when :attr:`invitable` is temporarily disabled.", title='Invite Description', json_schema_extra={'format': 'textarea'}) |
属性详情Attribute Detail
invitable
bool = Field(default=False, description="Whether this agent may be borrowed into another agent's team via the ``AgentInvite`` tool. Independent from :attr:`invite_description` so the user can preserve an authored blurb while temporarily disabling the toggle. ``invitable=True`` requires a non-empty :attr:`invite_description` (enforced by validator).", title='Invitable')invitable 字段。声明为 bool。
Whether this agent may be borrowed into another agent's team via the AgentInvite tool.
源码Source
agentscope/app/storage/_model/_agent.py:24invite_description
str | None = Field(default=None, description="Free-text blurb shown to a leader LLM in the ``AgentInvite`` tool description — used by the leader to decide whether to borrow this agent. Persisted across toggle off/on so the user's authored draft is not lost when :attr:`invitable` is temporarily disabled.", title='Invite Description', json_schema_extra={'format': 'textarea'})invite_description 字段。声明为 str | None。
Free-text blurb shown to a leader LLM in the AgentInvite tool description — used by the leader to decide whether to borrow this agent.
源码Source
agentscope/app/storage/_model/_agent.py:37