autogen_agentchat.state#
代理、团队和终止条件的状态管理。
- pydantic model AssistantAgentState[源代码]#
基类:
BaseState
助手代理的状态。
Show JSON schema
{ "title": "AssistantAgentState", "description": "\u52a9\u624b\u4ee3\u7406\u7684\u72b6\u6001\u3002", "type": "object", "properties": { "type": { "default": "AssistantAgentState", "title": "Type", "type": "string" }, "version": { "default": "1.0.0", "title": "Version", "type": "string" }, "llm_context": { "title": "Llm Context", "type": "object" } } }
- Fields:
llm_context (Mapping[str, Any])
type (str)
- pydantic model BaseGroupChatManagerState[源代码]#
基类:
BaseState
所有群聊管理器的基类状态。
Show JSON schema
{ "title": "BaseGroupChatManagerState", "description": "\u6240\u6709\u7fa4\u804a\u7ba1\u7406\u5668\u7684\u57fa\u7c7b\u72b6\u6001\u3002", "type": "object", "properties": { "type": { "default": "BaseGroupChatManagerState", "title": "Type", "type": "string" }, "version": { "default": "1.0.0", "title": "Version", "type": "string" }, "message_thread": { "items": { "type": "object" }, "title": "Message Thread", "type": "array" }, "current_turn": { "default": 0, "title": "Current Turn", "type": "integer" } } }
- Fields:
current_turn (int)
message_thread (List[Mapping[str, Any]])
type (str)
- pydantic model BaseState[源代码]#
基类:
BaseModel
所有可保存状态的基础类
Show JSON schema
{ "title": "BaseState", "description": "\u6240\u6709\u53ef\u4fdd\u5b58\u72b6\u6001\u7684\u57fa\u7840\u7c7b", "type": "object", "properties": { "type": { "default": "BaseState", "title": "Type", "type": "string" }, "version": { "default": "1.0.0", "title": "Version", "type": "string" } } }
- Fields:
type (str)
version (str)
- pydantic model ChatAgentContainerState[源代码]#
基类:
BaseState
聊天代理容器的状态。
Show JSON schema
{ "title": "ChatAgentContainerState", "description": "\u804a\u5929\u4ee3\u7406\u5bb9\u5668\u7684\u72b6\u6001\u3002", "type": "object", "properties": { "type": { "default": "ChatAgentContainerState", "title": "Type", "type": "string" }, "version": { "default": "1.0.0", "title": "Version", "type": "string" }, "agent_state": { "title": "Agent State", "type": "object" }, "message_buffer": { "items": { "type": "object" }, "title": "Message Buffer", "type": "array" } } }
- Fields:
agent_state (Mapping[str, Any])
message_buffer (List[Mapping[str, Any]])
type (str)
- pydantic model MagenticOneOrchestratorState[源代码]#
-
用于
MagneticOneGroupChat
编排器的状态。Show JSON schema
{ "title": "MagenticOneOrchestratorState", "description": "\u7528\u4e8e :class:`~autogen_agentchat.teams.MagneticOneGroupChat` \u7f16\u6392\u5668\u7684\u72b6\u6001\u3002", "type": "object", "properties": { "type": { "default": "MagenticOneOrchestratorState", "title": "Type", "type": "string" }, "version": { "default": "1.0.0", "title": "Version", "type": "string" }, "message_thread": { "items": { "type": "object" }, "title": "Message Thread", "type": "array" }, "current_turn": { "default": 0, "title": "Current Turn", "type": "integer" }, "task": { "default": "", "title": "Task", "type": "string" }, "facts": { "default": "", "title": "Facts", "type": "string" }, "plan": { "default": "", "title": "Plan", "type": "string" }, "n_rounds": { "default": 0, "title": "N Rounds", "type": "integer" }, "n_stalls": { "default": 0, "title": "N Stalls", "type": "integer" } } }
- Fields:
facts (str)
n_rounds (int)
n_stalls (int)
plan (str)
task (str)
type (str)
- pydantic model RoundRobinManagerState[源代码]#
-
RoundRobinGroupChat
管理器的状态。Show JSON schema
{ "title": "RoundRobinManagerState", "description": ":class:`~autogen_agentchat.teams.RoundRobinGroupChat` \u7ba1\u7406\u5668\u7684\u72b6\u6001\u3002", "type": "object", "properties": { "type": { "default": "RoundRobinManagerState", "title": "Type", "type": "string" }, "version": { "default": "1.0.0", "title": "Version", "type": "string" }, "message_thread": { "items": { "type": "object" }, "title": "Message Thread", "type": "array" }, "current_turn": { "default": 0, "title": "Current Turn", "type": "integer" }, "next_speaker_index": { "default": 0, "title": "Next Speaker Index", "type": "integer" } } }
- Fields:
next_speaker_index (int)
type (str)
- pydantic model SelectorManagerState[源代码]#
-
用于
SelectorGroupChat
管理器的状态。Show JSON schema
{ "title": "SelectorManagerState", "description": "\u7528\u4e8e :class:`~autogen_agentchat.teams.SelectorGroupChat` \u7ba1\u7406\u5668\u7684\u72b6\u6001\u3002", "type": "object", "properties": { "type": { "default": "SelectorManagerState", "title": "Type", "type": "string" }, "version": { "default": "1.0.0", "title": "Version", "type": "string" }, "message_thread": { "items": { "type": "object" }, "title": "Message Thread", "type": "array" }, "current_turn": { "default": 0, "title": "Current Turn", "type": "integer" }, "previous_speaker": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Previous Speaker" } } }
- Fields:
previous_speaker (str | None)
type (str)
- pydantic model SocietyOfMindAgentState[源代码]#
基类:
BaseState
思维社会代理的状态。
Show JSON schema
{ "title": "SocietyOfMindAgentState", "description": "\u601d\u7ef4\u793e\u4f1a\u4ee3\u7406\u7684\u72b6\u6001\u3002", "type": "object", "properties": { "type": { "default": "SocietyOfMindAgentState", "title": "Type", "type": "string" }, "version": { "default": "1.0.0", "title": "Version", "type": "string" }, "inner_team_state": { "title": "Inner Team State", "type": "object" } } }
- Fields:
inner_team_state (Mapping[str, Any])
type (str)
- pydantic model SwarmManagerState[源代码]#
-
用于
Swarm
管理器的状态。Show JSON schema
{ "title": "SwarmManagerState", "description": "\u7528\u4e8e :class:`~autogen_agentchat.teams.Swarm` \u7ba1\u7406\u5668\u7684\u72b6\u6001\u3002", "type": "object", "properties": { "type": { "default": "SwarmManagerState", "title": "Type", "type": "string" }, "version": { "default": "1.0.0", "title": "Version", "type": "string" }, "message_thread": { "items": { "type": "object" }, "title": "Message Thread", "type": "array" }, "current_turn": { "default": 0, "title": "Current Turn", "type": "integer" }, "current_speaker": { "default": "", "title": "Current Speaker", "type": "string" } } }
- Fields:
current_speaker (str)
type (str)
- pydantic model TeamState[源代码]#
基类:
BaseState
代理团队的状态。
Show JSON schema
{ "title": "TeamState", "description": "\u4ee3\u7406\u56e2\u961f\u7684\u72b6\u6001\u3002", "type": "object", "properties": { "type": { "default": "TeamState", "title": "Type", "type": "string" }, "version": { "default": "1.0.0", "title": "Version", "type": "string" }, "agent_states": { "title": "Agent States", "type": "object" } } }
- Fields:
agent_states (Mapping[str, Any])
type (str)