agents.reasoning_and_critique.self_discover.executor.agentยถ
Self-Discover Executor Agent implementation.
Classesยถ
Agent that executes structured reasoning plans to solve tasks. |
Module Contentsยถ
- class agents.reasoning_and_critique.self_discover.executor.agent.ExecutorAgent(name='executor', engine=None, **kwargs)ยถ
Bases:
haive.agents.simple.SimpleAgent
Agent that executes structured reasoning plans to solve tasks.
The Executor Agent is the fourth and final stage in the Self-Discover workflow. It takes the structured reasoning plan and systematically executes it to arrive at a comprehensive solution for the original task.
- nameยถ
Agent identifier (default: โexecutorโ)
- engineยถ
LLM configuration for the agent
Example
>>> from haive.core.engine.aug_llm import AugLLMConfig >>> >>> config = AugLLMConfig(temperature=0.5) >>> executor = ExecutorAgent(engine=config) >>> >>> result = await executor.arun({ ... "reasoning_structure": "Step 1: Analyze requirements...", ... "task_description": "Design a recommendation system" ... })
Initialize the Executor Agent.
- Parameters:
name (str) โ Name for the agent
engine (haive.core.engine.aug_llm.AugLLMConfig) โ LLM configuration (if not provided, creates default)
**kwargs โ Additional arguments passed to SimpleAgent