Tool

@Serializable
data class Tool(val type: ToolType, val function: FunctionTool)

A list of tools the model may call. Use this to provide a list of functions the model may generate JSON inputs for.

Constructors

Link copied to clipboard
constructor(type: ToolType, function: FunctionTool)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard

The type of the tool.