agents.simple.enhanced_simple_agent_v2ΒΆ

Enhanced SimpleAgent V2 - Using the enhanced Agent pattern directly.

This version imports the enhanced Agent class directly to avoid conflicts with the regular Agent class.

ClassesΒΆ

SimpleAgentV2

SimpleAgent V2 using the enhanced Agent pattern.

Module ContentsΒΆ

class agents.simple.enhanced_simple_agent_v2.SimpleAgentV2ΒΆ

Bases: base.enhanced_agent.Agent[haive.core.engine.aug_llm.AugLLMConfig]

SimpleAgent V2 using the enhanced Agent pattern.

This demonstrates SimpleAgent as Agent[AugLLMConfig] - the cleanest possible implementation using engine-focused generics.

Key points: - Inherits from enhanced Agent with AugLLMConfig as engine type - Engine is guaranteed to be AugLLMConfig - All complex logic handled by base enhanced Agent - SimpleAgent is just configuration and graph building

build_graph()ΒΆ

Build minimal graph for SimpleAgent.

Return type:

haive.core.graph.state_graph.base_graph2.BaseGraph

classmethod ensure_engine(values)ΒΆ

Ensure we have an AugLLMConfig engine.

Parameters:

values (dict[str, Any])

Return type:

dict[str, Any]

setup_agent()ΒΆ

Sync fields to engine.

Return type:

None