View Source GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaSessionTurn (google_api_discovery_engine v0.9.0)

Represents a turn, including a query from the user and a answer from service.

Attributes

  • answer (type: String.t, default: nil) - The resource name of the answer to the user query. Only set if the answer generation (/answer API call) happened in this turn.
  • query (type: GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaQuery.t, default: nil) - The user query.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaSessionTurn{
    answer: String.t() | nil,
    query:
      GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaQuery.t()
      | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.