Class GeminiFunctionCall
- Namespace
- Uralstech.UGemini.Models.Generation.Tools
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
-
objectGeminiFunctionCall
- 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
responseJsonJObjectThe JSON response data.
Returns
- GeminiFunctionResponse
A new GeminiFunctionResponse object.