agents.reasoning_and_critique.self_discover.structurer.agentยถ

Self-Discover Structurer Agent implementation.

Classesยถ

StructurerAgent

Agent that creates structured reasoning plans from adapted modules.

Module Contentsยถ

class agents.reasoning_and_critique.self_discover.structurer.agent.StructurerAgent(name='structurer', engine=None, **kwargs)ยถ

Bases: haive.agents.simple.SimpleAgent

Agent that creates structured reasoning plans from adapted modules.

The Structurer Agent is the third stage in the Self-Discover workflow. It takes the adapted reasoning modules and organizes them into a coherent, step-by-step plan for solving the specific task.

nameยถ

Agent identifier (default: โ€œstructurerโ€)

engineยถ

LLM configuration for the agent

Example

>>> from haive.core.engine.aug_llm import AugLLMConfig
>>>
>>> config = AugLLMConfig(temperature=0.2)
>>> structurer = StructurerAgent(engine=config)
>>>
>>> result = await structurer.arun({
...     "adapted_modules": "1. Critical analysis: Look for biases...",
...     "task_description": "Design a recommendation system"
... })

Initialize the Structurer 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