haive.core.graph.node.agent_nodeΒΆ

Agent-specific node configurations for multi-agent systems.

This module provides node configurations that properly handle: - Agent state isolation and merging - Private state schema management - Agent coordination through meta state

ClassesΒΆ

AgentNodeConfig

Node configuration specifically for agents in multi-agent systems.

CoordinatorNodeConfig

Coordinator node for parallel agent execution.

FunctionsΒΆ

create_node_for_engine(engine, name, **kwargs)

Factory function to create appropriate node config for an engine/agent.

Module ContentsΒΆ

class haive.core.graph.node.agent_node.AgentNodeConfig(**data)[source]ΒΆ

Bases: haive.core.graph.node.engine_node.EngineNodeConfig

Node configuration specifically for agents in multi-agent systems.

This extends EngineNodeConfig to: - Properly handle agent as the engine - Manage private agent state schemas - Coordinate through meta state - Handle state transformation between global and agent-specific schemas

Initialize with agent as engine.

class haive.core.graph.node.agent_node.CoordinatorNodeConfig(/, **data)[source]ΒΆ

Bases: haive.core.graph.node.base_config.NodeConfig

Coordinator node for parallel agent execution.

Handles fan-out and aggregation of parallel agent 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)

haive.core.graph.node.agent_node.create_node_for_engine(engine, name, **kwargs)[source]ΒΆ

Factory function to create appropriate node config for an engine/agent.

Routes agents to AgentNodeConfig, others to EngineNodeConfig.

Parameters:
  • engine (Union[haive.agents.base.agent.Agent, Any])

  • name (str)

Return type:

Union[AgentNodeConfig, haive.core.graph.node.engine_node.EngineNodeConfig]