foundry_agent_tool_call: Describe an agent tool call for task adherence

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

foundry_agent_tool_callR Documentation

Describe an agent tool call for task adherence

Description

Build a single tool-call entry for the tool_calls argument of foundry_agent_message().

Usage

foundry_agent_tool_call(name, id, arguments = "")

Arguments

name

Character. The called function name.

id

Character. The tool-call identifier, referenced later by a Tool message's tool_call_id.

arguments

Character. The serialized call arguments. Default "".

Value

A named list matching the task-adherence tool-call schema.

Examples

foundry_agent_tool_call("get_credit_card_limit", id = "call_001")

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