Struct openai_flows::ChatOptions
source · pub struct ChatOptions<'a> {
pub restart: bool,
pub restarted_sentence: Option<&'a str>,
}
Expand description
struct for setting the chat options.
When restart
is true, a new conversation will be created.
restarted_sentence
will be used as sentence
if a new conversation will be created.
A new conversation will be created in two cases:
restart
option is set to true- There is no history for the
conversation_id
. The conversation history will be kept for 10 minutes after the last conversation.
Fields§
§restart: bool
§restarted_sentence: Option<&'a str>
Trait Implementations§
source§impl<'a> Debug for ChatOptions<'a>
impl<'a> Debug for ChatOptions<'a>
source§impl<'a> Default for ChatOptions<'a>
impl<'a> Default for ChatOptions<'a>
source§fn default() -> ChatOptions<'a>
fn default() -> ChatOptions<'a>
Returns the “default value” for a type. Read more
source§impl<'de: 'a, 'a> Deserialize<'de> for ChatOptions<'a>
impl<'de: 'a, 'a> Deserialize<'de> for ChatOptions<'a>
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>,
Deserialize this value from the given Serde deserializer. Read more