Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::Generator (v1.9.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::Generator.

LLM generator.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#create_time

def create_time() -> ::Google::Protobuf::Timestamp
Returns

#description

def description() -> ::String
Returns
  • (::String) — Optional. Human readable description of the generator.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Optional. Human readable description of the generator.
Returns
  • (::String) — Optional. Human readable description of the generator.

#free_form_context

def free_form_context() -> ::Google::Cloud::Dialogflow::V2::FreeFormContext
Returns
  • (::Google::Cloud::Dialogflow::V2::FreeFormContext) — Input of free from generator to LLM.

    Note: The following fields are mutually exclusive: free_form_context, summarization_context. If a field in that set is populated, all other fields in the set will automatically be cleared.

#free_form_context=

def free_form_context=(value) -> ::Google::Cloud::Dialogflow::V2::FreeFormContext
Parameter
  • value (::Google::Cloud::Dialogflow::V2::FreeFormContext) — Input of free from generator to LLM.

    Note: The following fields are mutually exclusive: free_form_context, summarization_context. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::FreeFormContext) — Input of free from generator to LLM.

    Note: The following fields are mutually exclusive: free_form_context, summarization_context. If a field in that set is populated, all other fields in the set will automatically be cleared.

#inference_parameter

def inference_parameter() -> ::Google::Cloud::Dialogflow::V2::InferenceParameter
Returns

#inference_parameter=

def inference_parameter=(value) -> ::Google::Cloud::Dialogflow::V2::InferenceParameter
Parameter
Returns

#name

def name() -> ::String
Returns
  • (::String) — Output only. Identifier. The resource name of the generator. Format: projects/<Project ID>/locations/<Location ID>/generators/<Generator ID>

#published_model

def published_model() -> ::String
Returns
  • (::String) —

    Optional. The published Large Language Model name.

    • To use the latest model version, specify the model name without version number. Example: text-bison
    • To use a stable model version, specify the version number as well. Example: text-bison@002.

#published_model=

def published_model=(value) -> ::String
Parameter
  • value (::String) —

    Optional. The published Large Language Model name.

    • To use the latest model version, specify the model name without version number. Example: text-bison
    • To use a stable model version, specify the version number as well. Example: text-bison@002.
Returns
  • (::String) —

    Optional. The published Large Language Model name.

    • To use the latest model version, specify the model name without version number. Example: text-bison
    • To use a stable model version, specify the version number as well. Example: text-bison@002.

#summarization_context

def summarization_context() -> ::Google::Cloud::Dialogflow::V2::SummarizationContext
Returns
  • (::Google::Cloud::Dialogflow::V2::SummarizationContext) — Input of prebuilt Summarization feature.

    Note: The following fields are mutually exclusive: summarization_context, free_form_context. If a field in that set is populated, all other fields in the set will automatically be cleared.

#summarization_context=

def summarization_context=(value) -> ::Google::Cloud::Dialogflow::V2::SummarizationContext
Parameter
  • value (::Google::Cloud::Dialogflow::V2::SummarizationContext) — Input of prebuilt Summarization feature.

    Note: The following fields are mutually exclusive: summarization_context, free_form_context. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Dialogflow::V2::SummarizationContext) — Input of prebuilt Summarization feature.

    Note: The following fields are mutually exclusive: summarization_context, free_form_context. If a field in that set is populated, all other fields in the set will automatically be cleared.

#trigger_event

def trigger_event() -> ::Google::Cloud::Dialogflow::V2::TriggerEvent
Returns

#trigger_event=

def trigger_event=(value) -> ::Google::Cloud::Dialogflow::V2::TriggerEvent
Parameter
Returns

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns