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
object
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.

Id

The unique id of the function call. If populated, the client to execute the functionCall and return the response with the matching id.

public string Id

Field Value

string

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.