#[non_exhaustive]pub struct TopicConfigurationBuilder { /* private fields */ }Expand description
A builder for TopicConfiguration.
Implementations§
source§impl TopicConfigurationBuilder
impl TopicConfigurationBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A name for your topic control configuration.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A name for your topic control configuration.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description for your topic control configuration. Use this outline how the large language model (LLM) should use this topic control configuration.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description for your topic control configuration. Use this outline how the large language model (LLM) should use this topic control configuration.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description for your topic control configuration. Use this outline how the large language model (LLM) should use this topic control configuration.
sourcepub fn example_chat_messages(self, input: impl Into<String>) -> Self
pub fn example_chat_messages(self, input: impl Into<String>) -> Self
Appends an item to example_chat_messages.
To override the contents of this collection use set_example_chat_messages.
A list of example phrases that you expect the end user to use in relation to the topic.
sourcepub fn set_example_chat_messages(self, input: Option<Vec<String>>) -> Self
pub fn set_example_chat_messages(self, input: Option<Vec<String>>) -> Self
A list of example phrases that you expect the end user to use in relation to the topic.
sourcepub fn get_example_chat_messages(&self) -> &Option<Vec<String>>
pub fn get_example_chat_messages(&self) -> &Option<Vec<String>>
A list of example phrases that you expect the end user to use in relation to the topic.
sourcepub fn rules(self, input: Rule) -> Self
pub fn rules(self, input: Rule) -> Self
Appends an item to rules.
To override the contents of this collection use set_rules.
Rules defined for a topic configuration.
sourcepub fn set_rules(self, input: Option<Vec<Rule>>) -> Self
pub fn set_rules(self, input: Option<Vec<Rule>>) -> Self
Rules defined for a topic configuration.
sourcepub fn build(self) -> Result<TopicConfiguration, BuildError>
pub fn build(self) -> Result<TopicConfiguration, BuildError>
Consumes the builder and constructs a TopicConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TopicConfigurationBuilder
impl Clone for TopicConfigurationBuilder
source§fn clone(&self) -> TopicConfigurationBuilder
fn clone(&self) -> TopicConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TopicConfigurationBuilder
impl Debug for TopicConfigurationBuilder
source§impl Default for TopicConfigurationBuilder
impl Default for TopicConfigurationBuilder
source§fn default() -> TopicConfigurationBuilder
fn default() -> TopicConfigurationBuilder
source§impl PartialEq for TopicConfigurationBuilder
impl PartialEq for TopicConfigurationBuilder
source§fn eq(&self, other: &TopicConfigurationBuilder) -> bool
fn eq(&self, other: &TopicConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.