agents.reasoning_and_critique.lats.configΒΆ

Configuration for Language Agent Tree Search (LATS) agent.

ClassesΒΆ

LATSAgentConfig

Configuration for Language Agent Tree Search (LATS) agent.

Module ContentsΒΆ

class agents.reasoning_and_critique.lats.config.LATSAgentConfigΒΆ

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

Configuration for Language Agent Tree Search (LATS) agent.

This agent implements a Monte Carlo Tree Search approach to generate high-quality responses through exploration and exploitation of different action trajectories.

classmethod from_llms(reflection_llm, action_llm, tools=None, **kwargs)ΒΆ

Create a LATS agent configuration from LLM configs.

Parameters:
  • reflection_llm (haive.core.engine.aug_llm.AugLLMConfig) – LLM configuration for reflection

  • action_llm (haive.core.engine.aug_llm.AugLLMConfig) – LLM configuration for action generation

  • tools (list[langchain_core.tools.BaseTool | langchain_core.tools.StructuredTool] | None) – Optional list of tools

  • **kwargs – Additional configuration parameters

Returns:

LATSAgentConfig instance

Return type:

LATSAgentConfig