View Source GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FunctionResponse (google_api_ai_platform v0.15.0)

The result output from a [FunctionCall] that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a [FunctionCall] made based on model prediction.

Attributes

  • name (type: String.t, default: nil) - Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name].
  • response (type: map(), default: nil) - Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.AIPlatform.V1.Model.GoogleCloudAiplatformV1FunctionResponse{
  name: String.t() | nil,
  response: map() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.