FunctionDefinition
data class FunctionDefinition @JvmOverloads constructor(val name: String, val description: String? = null, val parameters: JsonSchema)(source)
Represents a function definition that can be called by the model.
Constructors
Link copied to clipboard
Secondary constructor that allows creating a FunctionDefinition by specifying its name, an optional description, and a block to define the JSON Schema parameters through a JsonSchemaBuilder.