ChatCompletionFunction

@Serializable
data class ChatCompletionFunction(val name: String, val description: String? = null, val parameters: Parameters)

Constructors

Link copied to clipboard
constructor(name: String, description: String? = null, parameters: Parameters)

Properties

Link copied to clipboard
val description: String? = null

The description of what the function does.

Link copied to clipboard

The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.

Link copied to clipboard

The parameters the functions accept, described as a JSON Schema object. See the guide for examples, and the JSON Schema reference for documentation about the format.