struct

Gemini::FunctionResponse

Inherits JSON::Serializable < Struct < Value < Object

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

API Reference

Constructors

new(name : String, response : JSON::Any)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

name

The name of the function to call. (Required)

Source
name=(name : String)

The name of the function to call. (Required)

Source
response

The function response in JSON object format. (Required)

Source
response=(response : JSON::Any)

The function response in JSON object format. (Required)

Source
to_json_object_key
Source