#[non_exhaustive]pub struct PromptConfigurationBuilder { /* private fields */ }Expand description
A builder for PromptConfiguration.
Implementations§
source§impl PromptConfigurationBuilder
impl PromptConfigurationBuilder
sourcepub fn prompt_type(self, input: PromptType) -> Self
pub fn prompt_type(self, input: PromptType) -> Self
Prompt Type.
sourcepub fn set_prompt_type(self, input: Option<PromptType>) -> Self
pub fn set_prompt_type(self, input: Option<PromptType>) -> Self
Prompt Type.
sourcepub fn get_prompt_type(&self) -> &Option<PromptType>
pub fn get_prompt_type(&self) -> &Option<PromptType>
Prompt Type.
sourcepub fn prompt_creation_mode(self, input: CreationMode) -> Self
pub fn prompt_creation_mode(self, input: CreationMode) -> Self
Creation Mode for Prompt Configuration.
sourcepub fn set_prompt_creation_mode(self, input: Option<CreationMode>) -> Self
pub fn set_prompt_creation_mode(self, input: Option<CreationMode>) -> Self
Creation Mode for Prompt Configuration.
sourcepub fn get_prompt_creation_mode(&self) -> &Option<CreationMode>
pub fn get_prompt_creation_mode(&self) -> &Option<CreationMode>
Creation Mode for Prompt Configuration.
sourcepub fn prompt_state(self, input: PromptState) -> Self
pub fn prompt_state(self, input: PromptState) -> Self
Prompt State.
sourcepub fn set_prompt_state(self, input: Option<PromptState>) -> Self
pub fn set_prompt_state(self, input: Option<PromptState>) -> Self
Prompt State.
sourcepub fn get_prompt_state(&self) -> &Option<PromptState>
pub fn get_prompt_state(&self) -> &Option<PromptState>
Prompt State.
sourcepub fn base_prompt_template(self, input: impl Into<String>) -> Self
pub fn base_prompt_template(self, input: impl Into<String>) -> Self
Base Prompt Template.
sourcepub fn set_base_prompt_template(self, input: Option<String>) -> Self
pub fn set_base_prompt_template(self, input: Option<String>) -> Self
Base Prompt Template.
sourcepub fn get_base_prompt_template(&self) -> &Option<String>
pub fn get_base_prompt_template(&self) -> &Option<String>
Base Prompt Template.
sourcepub fn inference_configuration(self, input: InferenceConfiguration) -> Self
pub fn inference_configuration(self, input: InferenceConfiguration) -> Self
Configuration for inference in prompt configuration
sourcepub fn set_inference_configuration(
self,
input: Option<InferenceConfiguration>
) -> Self
pub fn set_inference_configuration( self, input: Option<InferenceConfiguration> ) -> Self
Configuration for inference in prompt configuration
sourcepub fn get_inference_configuration(&self) -> &Option<InferenceConfiguration>
pub fn get_inference_configuration(&self) -> &Option<InferenceConfiguration>
Configuration for inference in prompt configuration
sourcepub fn parser_mode(self, input: CreationMode) -> Self
pub fn parser_mode(self, input: CreationMode) -> Self
Creation Mode for Prompt Configuration.
sourcepub fn set_parser_mode(self, input: Option<CreationMode>) -> Self
pub fn set_parser_mode(self, input: Option<CreationMode>) -> Self
Creation Mode for Prompt Configuration.
sourcepub fn get_parser_mode(&self) -> &Option<CreationMode>
pub fn get_parser_mode(&self) -> &Option<CreationMode>
Creation Mode for Prompt Configuration.
sourcepub fn build(self) -> PromptConfiguration
pub fn build(self) -> PromptConfiguration
Consumes the builder and constructs a PromptConfiguration.
Trait Implementations§
source§impl Clone for PromptConfigurationBuilder
impl Clone for PromptConfigurationBuilder
source§fn clone(&self) -> PromptConfigurationBuilder
fn clone(&self) -> PromptConfigurationBuilder
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 PromptConfigurationBuilder
impl Debug for PromptConfigurationBuilder
source§impl Default for PromptConfigurationBuilder
impl Default for PromptConfigurationBuilder
source§fn default() -> PromptConfigurationBuilder
fn default() -> PromptConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PromptConfigurationBuilder
impl PartialEq for PromptConfigurationBuilder
source§fn eq(&self, other: &PromptConfigurationBuilder) -> bool
fn eq(&self, other: &PromptConfigurationBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PromptConfigurationBuilder
Auto Trait Implementations§
impl RefUnwindSafe for PromptConfigurationBuilder
impl Send for PromptConfigurationBuilder
impl Sync for PromptConfigurationBuilder
impl Unpin for PromptConfigurationBuilder
impl UnwindSafe for PromptConfigurationBuilder
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.