nat.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(/, **data: Any)#

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.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

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,
)#