public sealed class AiTool
Definition of a tool that the model is allowed to invoke. The provider sends the name, description, and JSON Schema for the parameters on every call, and the model emits an AiToolCall matching one of the offered tools.

Constructors

AiTool

#
public AiTool(
name,
description,
parametersJsonSchema
)

Properties

Description

#
Plain-English description telling the model when to use the tool.
public string Description { get; }

Name

#
Stable identifier the model uses to invoke this tool.
public string Name { get; }

ParametersJsonSchema

#
JSON Schema describing the tool's parameters object.
public string ParametersJsonSchema { get; }