struct Gemini::FunctionResponse

Overview

This should contain the result of a FunctionCall made based on model prediction.

API Reference

Included Modules

Defined in:

gemini/function_calling.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, response : JSON::Any) #

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

Instance Method Detail

def name : String #

The name of the function to call. (Required)


def name=(name : String) #

The name of the function to call. (Required)


def response : JSON::Any #

The function response in JSON object format. (Required)


def response=(response : JSON::Any) #

The function response in JSON object format. (Required)


def to_json_object_key #