agents.simple.clean_enhanced_simpleΒΆ

Clean Enhanced SimpleAgent - SimpleAgent as Agent[AugLLMConfig].

This is the cleanest implementation showing SimpleAgent is just Agent[AugLLMConfig].

ClassesΒΆ

SimpleAgent

SimpleAgent is just Agent[AugLLMConfig].

Module ContentsΒΆ

class agents.simple.clean_enhanced_simple.SimpleAgentΒΆ

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

SimpleAgent is just Agent[AugLLMConfig].

This is the entire implementation - SimpleAgent is nothing more than an Agent with its engine type locked to AugLLMConfig. Everything else comes from the enhanced base Agent class.

This demonstrates the power of engine-focused generics: - SimpleAgent = Agent[AugLLMConfig] - ReactAgent = Agent[AugLLMConfig] + looping - RAGAgent = Agent[RetrieverEngine] - etc.

build_graph()ΒΆ

Build simple graph: START -> agent -> (tools?) -> END.

Return type:

haive.core.graph.state_graph.base_graph2.BaseGraph

setup_agent()ΒΆ

Setup by ensuring we have AugLLMConfig and syncing fields.

Return type:

None