pub fn add_user_input(&mut self, text: &str) -> Result<(), &'static str> {
        if self.new_user_input.is_some() {
            Err("User input already provided for this conversation")
        } else {
            self.new_user_input = Some(text.to_string());
            Ok(())
        }
    }
/// Adds a new user input to the conversation. This method returns an error if an unprocessed
/// user input already exists
///
/// # Arguments
///
/// * `text` - `&str` with the additional user input to continue a conversation
///
/// # Example
///
/// ```no_run
/// use rust_bert::pipelines::conversation::Conversation;
///
/// let mut conversation = Conversation::new_empty();
/// conversation.add_user_input("Hi there!");
/// ```
Adds a new user input to the conversation. This method returns an error if an unprocessed
user input already exists
Adds a new user input to the conversation . This method returns an error if an unprocessed user input already exists
pub fn add_user_input(&mut self, text: &str) -> Result<(), &'static str> {
        if self.new_user_input.is_some() {
            Err("User input already provided for this conversation")
        } else {
            self.new_user_input = Some(text.to_string());
            Ok(())
        }
    }
pub fn add_user_input ( & mut self , text : & str ) -> Result < ( ) , & ' static str > { if self . new_user_input . is_some ( ) { Err ( " " ) } else { self . new_user_input = Some ( text . to_string ( ) ) ; Ok ( ( ) ) } }
Adds a new user input to the conversation.
Adds a new user input to the conversation .
&mut self
text
&str
&mut self
text
&str
example
```no_run
use rust_bert::pipelines::conversation::Conversation.

let mut conversation = Conversation::new_empty();
conversation.add_user_input("Hi there!");
```
` ` ` no_run use rust_bert :: pipelines :: conversation :: Conversation . let mut conversation = Conversation :: new_empty () ; conversation . add_user_input ( " Hi there! " ) ; ` ` `