FunctionObject

data class FunctionObject(val name: String, val description: String? = null, val parameters: JsonElement? = null, val strict: Boolean? = false)(source)

Represents a function that can be called by the model.

Constructors

Link copied to clipboard
constructor(name: String, description: String? = null, parameters: JsonElement? = null, strict: Boolean? = false)

Properties

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

Optional description of what the function does.

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

The name of the function.

Link copied to clipboard
@SerialName(value = "parameters")
val parameters: JsonElement?

Optional parameters the function accepts, described as a JSON Schema object.

Link copied to clipboard
@SerialName(value = "strict")
val strict: Boolean?

Whether to enable strict schema adherence.