Struct aws_sdk_bedrockagent::types::PromptConfiguration
source · #[non_exhaustive]pub struct PromptConfiguration {
pub prompt_type: Option<PromptType>,
pub prompt_creation_mode: Option<CreationMode>,
pub prompt_state: Option<PromptState>,
pub base_prompt_template: Option<String>,
pub inference_configuration: Option<InferenceConfiguration>,
pub parser_mode: Option<CreationMode>,
}Expand description
BasePromptConfiguration per Prompt Type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.prompt_type: Option<PromptType>Prompt Type.
prompt_creation_mode: Option<CreationMode>Creation Mode for Prompt Configuration.
prompt_state: Option<PromptState>Prompt State.
base_prompt_template: Option<String>Base Prompt Template.
inference_configuration: Option<InferenceConfiguration>Configuration for inference in prompt configuration
parser_mode: Option<CreationMode>Creation Mode for Prompt Configuration.
Implementations§
source§impl PromptConfiguration
impl PromptConfiguration
sourcepub fn prompt_type(&self) -> Option<&PromptType>
pub fn prompt_type(&self) -> Option<&PromptType>
Prompt Type.
sourcepub fn prompt_creation_mode(&self) -> Option<&CreationMode>
pub fn prompt_creation_mode(&self) -> Option<&CreationMode>
Creation Mode for Prompt Configuration.
sourcepub fn prompt_state(&self) -> Option<&PromptState>
pub fn prompt_state(&self) -> Option<&PromptState>
Prompt State.
sourcepub fn base_prompt_template(&self) -> Option<&str>
pub fn base_prompt_template(&self) -> Option<&str>
Base Prompt Template.
sourcepub fn inference_configuration(&self) -> Option<&InferenceConfiguration>
pub fn inference_configuration(&self) -> Option<&InferenceConfiguration>
Configuration for inference in prompt configuration
sourcepub fn parser_mode(&self) -> Option<&CreationMode>
pub fn parser_mode(&self) -> Option<&CreationMode>
Creation Mode for Prompt Configuration.
source§impl PromptConfiguration
impl PromptConfiguration
sourcepub fn builder() -> PromptConfigurationBuilder
pub fn builder() -> PromptConfigurationBuilder
Creates a new builder-style object to manufacture PromptConfiguration.
Trait Implementations§
source§impl Clone for PromptConfiguration
impl Clone for PromptConfiguration
source§fn clone(&self) -> PromptConfiguration
fn clone(&self) -> PromptConfiguration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PromptConfiguration
impl Debug for PromptConfiguration
source§impl PartialEq for PromptConfiguration
impl PartialEq for PromptConfiguration
source§fn eq(&self, other: &PromptConfiguration) -> bool
fn eq(&self, other: &PromptConfiguration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PromptConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for PromptConfiguration
impl Send for PromptConfiguration
impl Sync for PromptConfiguration
impl Unpin for PromptConfiguration
impl UnwindSafe for PromptConfiguration
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.