Class FunctionCall (1.141.0)

FunctionCall(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing the parameters and their values.

Attributes

Name Description
id str
Optional. The unique id of the function call. If populated, the client to execute the function_call and return the response with the matching id.
name str
Optional. The name of the function to call. Matches [FunctionDeclaration.name].
args google.protobuf.struct_pb2.Struct
Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details.
partial_args MutableSequence[google.cloud.aiplatform_v1beta1.types.PartialArg]
Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.
will_continue bool
Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.

Methods

FunctionCall

FunctionCall(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing the parameters and their values.