struct

Gemini::FunctionDeclaration

Inherits JSON::Serializable < Struct < Value < Object

Structured representation of a function declaration as defined by the OpenAPI 3.03 specification.

API Reference

Constructors

new(name : String, description : String, parameters : NamedTuple)
Source
new(name : String, description : String, parameters : Nil | Gemini::Schema = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

description

A brief description of the function. (Required)

Source
description=(description : String)

A brief description of the function. (Required)

Source
name

The name of the function. (Required)

Source
name=(name : String)

The name of the function. (Required)

Source
parameters

Describes the parameters to this function. (Optional)

Source
parameters=(parameters : Schema | Nil)

Describes the parameters to this function. (Optional)

Source