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(string name, string description, string parametersJsonSchema)
name (string)
description (string)
parametersJsonSchema (string)

Properties

Description

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

Name

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

ParametersJsonSchema

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