Class FunctionCall
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
A predicted FunctionCall returned from the model that contains a string representing the Name with the arguments and their values.
public class FunctionCall
- Inheritance
-
FunctionCall
- Inherited Members
- Extension Methods
Constructors
FunctionCall()
Initializes a new instance of the FunctionCall class for JSON deserialization.
public FunctionCall()
FunctionCall(string)
Initializes a new instance of the FunctionCall class with the specified function name.
public FunctionCall(string name)
Parameters
namestringThe name of the function to call.
Properties
Args
Optional. The function parameters and values in JSON object format.
[JsonPropertyName("args")]
public JsonNode? Args { get; set; }
Property Value
Id
Optional. The unique id of the function call. If populated, the client to execute the FunctionCall and return the response with the matching Id.
[JsonPropertyName("id")]
public string? Id { get; set; }
Property Value
Name
Required. 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.
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
PartialArgs
Streamed pieces of the arguments, sent when FunctionCallingConfig.StreamFunctionCallArguments is true. Vertex AI only.
[JsonPropertyName("partialArgs")]
public List<PartialArg>? PartialArgs { get; set; }
Property Value
WillContinue
True if more chunks of this function call will follow in the stream. Vertex AI only.
[JsonPropertyName("willContinue")]
public bool? WillContinue { get; set; }
Property Value
- bool?