class

LLM::Function

Inherits Reference < Object

Defines custom function tool

Constructors

new(origin : String, settings : Nil | LLM::Function::Settings = nil)
Source

Class methods

side_effects
Source
summary

The static summary of the description; splits by '.' and then `\n' to return first entry.

Source

Instance methods

description
Source
input_json_schema(json : JSON::Builder)

The input schema for the parameters to this function, into the JSON builder.

Source
input_json_schema

The input schema for the parameters to this function, as a String.

Source
name
Source
new_runner

Return an instance of this function's Runner

Source
origin

A short title about the origin of the function

Source
readonly?

Returns true if this tools side-effects are read-only.

Source
run(args : JSON::Any) : Reply

Call this method to clone and execute this function

Source
settings

Optional settings passed to a function that supports them

Source
side_effects
Source
summary

The summary of the description; splits by '.' and then `\n' to return first entry.

Source

Nested types