agents.simple.enhanced_simple_minimalΒΆ

Minimal Enhanced SimpleAgent - showing the pattern in action.

This is the absolute minimal version showing SimpleAgent as Agent[AugLLMConfig]. It’s self-contained to avoid import issues.

ClassesΒΆ

Agent

Agent = Workflow + Engine with engine-focused generics.

SimpleAgent

SimpleAgent is nothing more than Agent[AugLLMConfig].

Workflow

Pure workflow - no engine.

Module ContentsΒΆ

class agents.simple.enhanced_simple_minimal.Agent(name, engine)ΒΆ

Bases: Workflow, Generic[EngineT]

Agent = Workflow + Engine with engine-focused generics.

Init .

Parameters:
  • name (str) – [TODO: Add description]

  • engine (EngineT) – [TODO: Add description]

async execute(input_data)ΒΆ

Execute using the engine.

Parameters:

input_data (Any)

Return type:

Any

class agents.simple.enhanced_simple_minimal.SimpleAgent(name, engine)ΒΆ

Bases: Agent[AugLLMConfig]

SimpleAgent is nothing more than Agent[AugLLMConfig].

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

The engine type IS the primary differentiator between agent types.

Init .

Parameters:
  • name (str) – [TODO: Add description]

  • engine (EngineT) – [TODO: Add description]

class agents.simple.enhanced_simple_minimal.WorkflowΒΆ

Bases: abc.ABC

Pure workflow - no engine.

abstractmethod execute(input_data)ΒΆ
Async:

Parameters:

input_data (Any)

Return type:

Any

Execute workflow logic.