agents.reasoning_and_critique.lats.configΒΆ
Configuration for Language Agent Tree Search (LATS) agent.
ClassesΒΆ
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: