Contents

init(name:description:parameters:)

Creates a tool definition with the name, description, and parameter schema you provide.

Declaration

init(name: String, description: String, parameters: GenerationSchema)

Parameters

  • name:

    The name of the tool.

  • description:

    A description of how and when to use the tool.

  • parameters:

    A schema that specifies the parameters of the tool.

See Also

Creating a tool definition