nat.plugins.langchain.agent.rewoo_agent.register#

Attributes#

Classes#

ReWOOAgentWorkflowConfig

Defines a NAT function that uses a ReWOO Agent performs reasoning inbetween tool calls, and utilizes the

Functions#

rewoo_agent_workflow(config, builder)

Module Contents#

logger#
class ReWOOAgentWorkflowConfig#

Bases: nat.data_models.agent.AgentBaseConfig

Defines a NAT function that uses a ReWOO Agent performs reasoning inbetween tool calls, and utilizes the tool names and descriptions to select the optimal tool.

description: str = None#
tool_names: list[nat.data_models.component_ref.FunctionRef | nat.data_models.component_ref.FunctionGroupRef] = None#
include_tool_input_schema_in_tool_description: bool = None#
planner_prompt: str | None = None#
solver_prompt: str | None = None#
tool_call_max_retries: pydantic.PositiveInt = None#
max_history: int = None#
additional_planner_instructions: str | None = None#
additional_solver_instructions: str | None = None#
raise_tool_call_error: bool = None#
async rewoo_agent_workflow(
config: ReWOOAgentWorkflowConfig,
builder: nat.builder.builder.Builder,
)#