FunctionDeclaration

@Serializable
data class FunctionDeclaration(val name: String, val description: String, val parameters: Schema)

Describes a function, including its name, a description of its purpose or behavior, and a schema defining its parameters.

Constructors

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

Properties

Link copied to clipboard
val description: String

A human-readable explanation of what the function does, including any important details about its behavior or effects.

Link copied to clipboard
val name: String

The unique identifier or name of the function. This is used to invoke or reference the function within a system.

Link copied to clipboard

A Schema object that describes the structure and types of the parameters that the function accepts. This ensures that callers can construct valid calls to the function by adhering to this schema.