create_delegate_tool: Create a Delegate Tool for an Agent

View source: R/agent_registry.R

create_delegate_toolR Documentation

Create a Delegate Tool for an Agent

Description

Internal function to create a Tool that delegates to an Agent.

Usage

create_delegate_tool(agent, flow = NULL, session = NULL, model = NULL)

Arguments

agent

The Agent to wrap.

flow

Optional Flow object for context tracking.

session

Optional ChatSession for shared state.

model

Optional model ID for execution.

Value

A Tool object.


aisdk documentation built on May 29, 2026, 9:07 a.m.