autogen_agentchat.state#
State management for agents, teams and termination conditions.
- pydantic model AssistantAgentState[source]#
Bases:
BaseStateState for an assistant agent.
Show JSON schema
{ "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" } } }
- Fields:
llm_context (Mapping[str, Any])type (str)
- pydantic model BaseGroupChatManagerState[source]#
Bases:
BaseStateBase state for all group chat managers.
Show JSON schema
{ "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" } } }
- Fields:
current_turn (int)message_thread (List[Mapping[str, Any]])type (str)
- pydantic model BaseState[source]#
Bases:
BaseModelBase class for all saveable state
Show JSON schema
{ "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" } } }
- Fields:
type (str)version (str)
- pydantic model ChatAgentContainerState[source]#
Bases:
BaseStateState for a container of chat agents.
Show JSON schema
{ "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" } } }
- Fields:
agent_state (Mapping[str, Any])message_buffer (List[Mapping[str, Any]])type (str)
- pydantic model MagenticOneOrchestratorState[source]#
Bases:
BaseGroupChatManagerStateState for
MagneticOneGroupChatorchestrator.Show JSON schema
{ "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" } } }
- Fields:
facts (str)n_rounds (int)n_stalls (int)plan (str)task (str)type (str)
- pydantic model RoundRobinManagerState[source]#
Bases:
BaseGroupChatManagerStateState for
RoundRobinGroupChatmanager.Show JSON schema
{ "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" } } }
- Fields:
next_speaker_index (int)type (str)
- pydantic model SelectorManagerState[source]#
Bases:
BaseGroupChatManagerStateState for
SelectorGroupChatmanager.Show JSON schema
{ "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" } } }
- Fields:
previous_speaker (str | None)type (str)
- pydantic model SocietyOfMindAgentState[source]#
Bases:
BaseStateState for a Society of Mind agent.
Show JSON schema
{ "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" } } }
- Fields:
inner_team_state (Mapping[str, Any])type (str)
- pydantic model SwarmManagerState[source]#
Bases:
BaseGroupChatManagerStateState for
Swarmmanager.Show JSON schema
{ "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" } } }
- Fields:
current_speaker (str)type (str)
- pydantic model TeamState[source]#
Bases:
BaseStateState for a team of agents.
Show JSON schema
{ "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" } } }
- Fields:
agent_states (Mapping[str, Any])type (str)