pub struct GoogleCloudDialogflowCxV3Generator {
pub display_name: Option<String>,
pub name: Option<String>,
pub placeholders: Option<Vec<GoogleCloudDialogflowCxV3GeneratorPlaceholder>>,
pub prompt_text: Option<GoogleCloudDialogflowCxV3Phrase>,
}
Expand description
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.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations agents generators create projects (request|response)
- locations agents generators get projects (response)
- locations agents generators patch projects (request|response)
Fields§
§display_name: Option<String>
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: Option<String>
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: Option<Vec<GoogleCloudDialogflowCxV3GeneratorPlaceholder>>
Optional. List of custom placeholders in the prompt text.
prompt_text: Option<GoogleCloudDialogflowCxV3Phrase>
Required. Prompt for the LLM model.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowCxV3Generator
impl Clone for GoogleCloudDialogflowCxV3Generator
Source§fn clone(&self) -> GoogleCloudDialogflowCxV3Generator
fn clone(&self) -> GoogleCloudDialogflowCxV3Generator
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDialogflowCxV3Generator
impl Default for GoogleCloudDialogflowCxV3Generator
Source§fn default() -> GoogleCloudDialogflowCxV3Generator
fn default() -> GoogleCloudDialogflowCxV3Generator
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3Generator
impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3Generator
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for GoogleCloudDialogflowCxV3Generator
impl ResponseResult for GoogleCloudDialogflowCxV3Generator
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowCxV3Generator
impl RefUnwindSafe for GoogleCloudDialogflowCxV3Generator
impl Send for GoogleCloudDialogflowCxV3Generator
impl Sync for GoogleCloudDialogflowCxV3Generator
impl Unpin for GoogleCloudDialogflowCxV3Generator
impl UnwindSafe for GoogleCloudDialogflowCxV3Generator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more