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.BaseModel
Information 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.StateSchema
Meta 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