Function

@Serializable
data class Function(val name: String, val description: String, val parameters: Parameters)

Constructors

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

Properties

Link copied to clipboard
@SerialName(value = "description")
val description: String

The description of what the function does.

Link copied to clipboard
@SerialName(value = "name")
val name: String

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
@SerialName(value = "parameters")
val parameters: Parameters

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