agents.reasoning_and_critique.tot.configยถ

Configuration for the Tree of Thoughts agent.

This module defines the configuration schema for the ToT agent, including engine configurations, algorithm parameters, and state schema.

Classesยถ

TOTAgentConfig

Configuration for the Tree of Thoughts agent.

Module Contentsยถ

class agents.reasoning_and_critique.tot.config.TOTAgentConfigยถ

Bases: haive.core.engine.agent.agent.AgentConfig

Configuration for the Tree of Thoughts agent.

This configuration specifies the LLM engines used for generation and scoring, as well as the parameters for the search algorithm.

classmethod create_for_problem_type(content_type='string', **kwargs)ยถ

Create a TOT agent configuration specialized for a specific problem type.

Parameters:
  • content_type (str) โ€“ Type of content (โ€˜stringโ€™, โ€˜equationโ€™, etc.)

  • **kwargs โ€“ Additional configuration parameters

Returns:

Configured TOTAgentConfig

Return type:

TOTAgentConfig

get_engine(engine_key)ยถ

Get an engine by key from the engines dictionary.

Parameters:

engine_key (str) โ€“ Key of the engine to retrieve

Returns:

The requested engine configuration

Raises:

KeyError โ€“ If the engine key is not found

Return type:

haive.core.engine.aug_llm.AugLLMConfig