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
- (::Google::Protobuf::Timestamp) — Output only. Creation time of this generator.
#description
def description() -> ::String
- (::String) — Optional. Human readable description of the generator.
#description=
def description=(value) -> ::String
- value (::String) — Optional. Human readable description of the generator.
- (::String) — Optional. Human readable description of the generator.
#free_form_context
def free_form_context() -> ::Google::Cloud::Dialogflow::V2::FreeFormContext
-
(::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
-
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.
-
(::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
- (::Google::Cloud::Dialogflow::V2::InferenceParameter) — Optional. Inference parameters for this generator.
#inference_parameter=
def inference_parameter=(value) -> ::Google::Cloud::Dialogflow::V2::InferenceParameter
- value (::Google::Cloud::Dialogflow::V2::InferenceParameter) — Optional. Inference parameters for this generator.
- (::Google::Cloud::Dialogflow::V2::InferenceParameter) — Optional. Inference parameters for this generator.
#name
def name() -> ::String
-
(::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
-
(::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
.
- To use the latest model version, specify the model name without version
number. Example:
#published_model=
def published_model=(value) -> ::String
-
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
.
- To use the latest model version, specify the model name without version
number. Example:
-
(::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
.
- To use the latest model version, specify the model name without version
number. Example:
#summarization_context
def summarization_context() -> ::Google::Cloud::Dialogflow::V2::SummarizationContext
-
(::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
-
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.
-
(::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
- (::Google::Cloud::Dialogflow::V2::TriggerEvent) — Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation.
#trigger_event=
def trigger_event=(value) -> ::Google::Cloud::Dialogflow::V2::TriggerEvent
- value (::Google::Cloud::Dialogflow::V2::TriggerEvent) — Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation.
- (::Google::Cloud::Dialogflow::V2::TriggerEvent) — Optional. The trigger event of the generator. It defines when the generator is triggered in a conversation.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. Update time of this generator.