View Source GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Generator (google_api_dialogflow v0.78.0)

Generators contain prompt to be sent to the LLM model to generate text. The prompt can contain parameters which will be resolved before calling the model. It can optionally contain banned phrases to ensure the model responses are safe.

Attributes

  • displayName (type: String.t, default: nil) - Required. The human-readable name of the generator, unique within the agent. The prompt contains pre-defined parameters such as $conversation, $last-user-utterance, etc. populated by Dialogflow. It can also contain custom placeholders which will be resolved during fulfillment.
  • name (type: String.t, default: nil) - The unique identifier of the generator. Must be set for the Generators.UpdateGenerator method. Generators.CreateGenerate populates the name automatically. Format: projects//locations//agents//generators/.
  • placeholders (type: list(GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3GeneratorPlaceholder.t), default: nil) - Optional. List of custom placeholders in the prompt text.
  • promptText (type: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Phrase.t, default: nil) - Required. Prompt for the LLM model.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Generator{
  displayName: String.t() | nil,
  name: String.t() | nil,
  placeholders:
    [
      GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3GeneratorPlaceholder.t()
    ]
    | nil,
  promptText:
    GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowCxV3Phrase.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.