Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::Generator (v1.13.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

#agent_coaching_context

def agent_coaching_context() -> ::Google::Cloud::Dialogflow::V2::AgentCoachingContext
Returns
  • (::Google::Cloud::Dialogflow::V2::AgentCoachingContext) — Input of prebuilt Agent Coaching feature.

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

#agent_coaching_context=

def agent_coaching_context=(value) -> ::Google::Cloud::Dialogflow::V2::AgentCoachingContext
Parameter
  • value (::Google::Cloud::Dialogflow::V2::AgentCoachingContext) — Input of prebuilt Agent Coaching feature.

    Note: The following fields are mutually exclusive: agent_coaching_context, 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::AgentCoachingContext) — Input of prebuilt Agent Coaching feature.

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

#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, agent_coaching_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, agent_coaching_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, agent_coaching_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.

#suggestion_deduping_config

def suggestion_deduping_config() -> ::Google::Cloud::Dialogflow::V2::SuggestionDedupingConfig
Returns

#suggestion_deduping_config=

def suggestion_deduping_config=(value) -> ::Google::Cloud::Dialogflow::V2::SuggestionDedupingConfig
Parameter
Returns

#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, agent_coaching_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, agent_coaching_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, agent_coaching_context. If a field in that set is populated, all other fields in the set will automatically be cleared.

#tools

def tools() -> ::Array<::String>
Returns
  • (::Array<::String>) — Optional. Resource names of the tools that the generator can choose from. Format: projects/<Project ID>/locations/<Location ID>/tools/<tool ID>.

#tools=

def tools=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Optional. Resource names of the tools that the generator can choose from. Format: projects/<Project ID>/locations/<Location ID>/tools/<tool ID>.
Returns
  • (::Array<::String>) — Optional. Resource names of the tools that the generator can choose from. Format: projects/<Project ID>/locations/<Location ID>/tools/<tool ID>.

#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