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

InviteConfig

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
invitablebool
`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_descriptionstr | 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:24

invite_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
基于官方固定版本源码静态生成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.