Table of Contents

Class GeminiFunctionCall

A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name with the arguments and their values.

public class GeminiFunctionCall
Inheritance
GeminiFunctionCall
Extension Methods

Fields

Arguments

Optional. The function parameters and values in JSON object format.

public JObject Arguments

Field Value

JObject

Remarks

See Protocol Buffer Struct.

Name

The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 63.

public string Name

Field Value

string

Methods

GetResponse(JObject)

Creates a GeminiFunctionResponse for this function call.

public GeminiFunctionResponse GetResponse(JObject responseJson = null)

Parameters

responseJson JObject

The JSON response data.

Returns

GeminiFunctionResponse

A new GeminiFunctionResponse object.