autogen_agentchat.state#
代理、团队和终止条件的状态管理。
- pydantic model AssistantAgentState[source]#
基类:
BaseState
助理代理的状态。
显示 JSON 模式
{ "title": "AssistantAgentState", "description": "State for an assistant agent.", "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" } } }
- 字段:
llm_context (Mapping[str, Any])
type (str)
- pydantic model BaseGroupChatManagerState[source]#
基类:
BaseState
所有群聊管理器的基本状态。
显示 JSON 模式
{ "title": "BaseGroupChatManagerState", "description": "Base state for all group chat managers.", "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" } } }
- 字段:
current_turn (int)
message_thread (List[Mapping[str, Any]])
type (str)
- pydantic model BaseState[source]#
基类:
BaseModel
所有可保存状态的基类
显示 JSON 模式
{ "title": "BaseState", "description": "Base class for all saveable state", "type": "object", "properties": { "type": { "default": "BaseState", "title": "Type", "type": "string" }, "version": { "default": "1.0.0", "title": "Version", "type": "string" } } }
- 字段:
type (str)
version (str)
- pydantic model ChatAgentContainerState[source]#
基类:
BaseState
聊天代理容器的状态。
显示 JSON 模式
{ "title": "ChatAgentContainerState", "description": "State for a container of chat agents.", "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" } } }
- 字段:
agent_state (Mapping[str, Any])
message_buffer (List[Mapping[str, Any]])
type (str)
- pydantic model MagenticOneOrchestratorState[source]#
-
MagneticOneGroupChat
协调器的状态。显示 JSON 模式
{ "title": "MagenticOneOrchestratorState", "description": "State for :class:`~autogen_agentchat.teams.MagneticOneGroupChat` orchestrator.", "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" } } }
- 字段:
facts (str)
n_rounds (int)
n_stalls (int)
plan (str)
task (str)
type (str)
- pydantic 模型 RoundRobinManagerState[源代码]#
-
RoundRobinGroupChat
管理器的状态。显示 JSON 模式
{ "title": "RoundRobinManagerState", "description": "State for :class:`~autogen_agentchat.teams.RoundRobinGroupChat` manager.", "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" } } }
- 字段:
next_speaker_index (int)
type (str)
- pydantic 模型 SelectorManagerState[源代码]#
-
SelectorGroupChat
管理器的状态。显示 JSON 模式
{ "title": "SelectorManagerState", "description": "State for :class:`~autogen_agentchat.teams.SelectorGroupChat` manager.", "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" } } }
- 字段:
previous_speaker (str | None)
type (str)
- pydantic 模型 SocietyOfMindAgentState[源代码]#
基类:
BaseState
心智社会代理的状态。
显示 JSON 模式
{ "title": "SocietyOfMindAgentState", "description": "State for a Society of Mind agent.", "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" } } }
- 字段:
inner_team_state (Mapping[str, Any])
type (str)
- pydantic 模型 SwarmManagerState[源代码]#
-
Swarm
管理器的状态。显示 JSON 模式
{ "title": "SwarmManagerState", "description": "State for :class:`~autogen_agentchat.teams.Swarm` manager.", "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" } } }
- 字段:
current_speaker (str)
type (str)
- pydantic 模型 TeamState[源代码]#
基类:
BaseState
代理团队的状态。
显示 JSON 模式
{ "title": "TeamState", "description": "State for a team of agents.", "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" } } }
- 字段:
agent_states (Mapping[str, Any])
type (str)