FunctionDeclaration

class FunctionDeclaration


Represents a tool/function declaration that the model can request to execute.

Summary

Public constructors

FunctionDeclaration(
    name: String,
    description: String,
    parameters: FunctionSchema?,
    responseSchema: FunctionSchema?
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

String

human-readable description of what the tool does

String

the name of the function to call

FunctionSchema?

the schema describing the parameters this function accepts

FunctionSchema?

the schema describing the expected output of this function

Public constructors

FunctionDeclaration

FunctionDeclaration(
    name: String,
    description: String,
    parameters: FunctionSchema? = null,
    responseSchema: FunctionSchema? = null
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

description

val description: String

human-readable description of what the tool does

name

val name: String

the name of the function to call

parameters

val parameters: FunctionSchema?

the schema describing the parameters this function accepts

responseSchema

val responseSchema: FunctionSchema?

the schema describing the expected output of this function