FunctionT: {
    description?: string;
    name?: string;
    parameters?: any;
    type: "function";
}

A tool that can be used by the model.

Type declaration

  • Optionaldescription?: string

    A description of the function.

  • Optionalname?: string

    The name of the function.

  • Optionalparameters?: any

    The JSON Schema for the function's parameters.

  • type: "function"