FunctionDeclaration

data class FunctionDeclaration(val name: String, val description: String, val parameters: Schema? = null, val response: Schema? = null)

Represents a function declaration for tool calling.

Constructors

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

Types

Link copied to clipboard
class Builder

Fluent builder for FunctionDeclaration, provided primarily for Java callers. Any property left unset falls back to the same default as the constructor.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

A description of what the function does.

Link copied to clipboard

The name of the function.

Link copied to clipboard

The parameters required by this function.

Link copied to clipboard

The shape of the value this function returns, when the tool declares one.