The parameters specific to chat.

interface TextChatParameterFunction {
    description?: string;
    name: string;
    parameters?: WatsonXAI.JsonObject;
}

Properties

description?: string

A description of what the function does, used by the model to choose when and how to call the function.

name: string

The name of the function.

parameters?: WatsonXAI.JsonObject

The parameters the functions accepts, described as a JSON Schema object. See the JSON Schema reference for documentation about the format.

Omitting parameters defines a function with an empty parameter list.