foundry_agent_tool: Describe an agent tool for task adherence

View source: R/content-safety-preview.R

foundry_agent_toolR Documentation

Describe an agent tool for task adherence

Description

Build a single tool definition for the tools argument of foundry_task_adherence().

Usage

foundry_agent_tool(name, description)

Arguments

name

Character. The tool (function) name.

description

Character. What the tool does.

Value

A named list matching the task-adherence tool schema.

Examples

foundry_agent_tool("order_car", "Buy a particular car model")

foundryR documentation built on Sept. 25, 2026, 1:10 a.m.