struct Gemini::FunctionDeclaration

Overview

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

API Reference

Included Modules

Defined in:

gemini/function_calling.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, description : String, parameters : NamedTuple) #

def self.new(name : String, description : String, parameters : Nil | Gemini::Schema = nil) #

def self.new(pull : JSON::PullParser) #

Instance Method Detail

def description : String #

A brief description of the function. (Required)


def description=(description : String) #

A brief description of the function. (Required)


def name : String #

The name of the function. (Required)


def name=(name : String) #

The name of the function. (Required)


def parameters : Schema | Nil #

Describes the parameters to this function. (Optional)


def parameters=(parameters : Schema | Nil) #

Describes the parameters to this function. (Optional)