nat.plugins.langchain.agent.tool_calling_agent.register#

Attributes#

Classes#

ToolCallAgentWorkflowConfig

A Tool Calling Agent requires an LLM which supports tool calling. A tool Calling Agent utilizes the tool

Functions#

tool_calling_agent_workflow(config, builder)

Module Contents#

logger#
class ToolCallAgentWorkflowConfig#

Bases: nat.data_models.agent.AgentBaseConfig

A Tool Calling Agent requires an LLM which supports tool calling. A tool Calling Agent utilizes the tool input parameters to select the optimal tool. Supports handling tool errors.

description: str = None#
tool_names: list[nat.data_models.component_ref.FunctionRef | nat.data_models.component_ref.FunctionGroupRef] = None#
handle_tool_errors: bool = None#
max_iterations: int = None#
max_history: int = None#
system_prompt: str | None = None#
additional_instructions: str | None = None#
return_direct: list[nat.data_models.component_ref.FunctionRef] | None = None#
async tool_calling_agent_workflow(
config: ToolCallAgentWorkflowConfig,
builder: nat.builder.builder.Builder,
)#