haive.core.schema.meta_agent_state¶
Meta agent state for multi-agent coordination.
This module provides a state schema that enables agents to share metadata, coordination information, and workflow state in multi-agent systems.
Classes¶
Information about an agent's execution. |
|
Meta state for multi-agent coordination. |
Module Contents¶
- class haive.core.schema.meta_agent_state.AgentExecutionInfo(/, **data)[source]¶
Bases:
pydantic.BaseModelInformation about an agent’s execution.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- class haive.core.schema.meta_agent_state.MetaAgentState(/, **data)[source]¶
Bases:
haive.core.schema.state_schema.StateSchemaMeta state for multi-agent coordination.
This state provides shared fields for coordinating multiple agents including: - Tracking which agent is currently active - Storing outputs from each agent - Managing workflow metadata - Sharing coordination information
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- get_agent_output(agent_id)[source]¶
Get the output from a specific agent.
- Parameters:
agent_id (str)
- Return type:
Any | None
Get a value from the shared context.
- Parameters:
key (str)
default (Any)
- Return type:
Any
- record_agent_completion(agent_id, output)[source]¶
Record that an agent has completed execution.
- Parameters:
agent_id (str)
output (Any)
- Return type:
None
Set a value in the shared context.
- Parameters:
key (str)
value (Any)
- Return type:
None