pub struct ModelConversation {
pub instructions: Option<Option<String>>,
pub tools: Option<Vec<ToolsInner>>,
pub completion_args: Option<Box<CompletionArgs>>,
pub guardrails: Option<Option<Vec<GuardrailConfig>>>,
pub name: Option<Option<String>>,
pub description: Option<Option<String>>,
pub metadata: Option<Option<HashMap<String, Value>>>,
pub object: Option<Object>,
pub id: String,
pub created_at: String,
pub updated_at: String,
pub model: String,
}Fields§
§instructions: Option<Option<String>>§tools: Option<Vec<ToolsInner>>List of tools which are available to the model during the conversation.
completion_args: Option<Box<CompletionArgs>>Completion arguments that will be used to generate assistant responses. Can be overridden at each message request.
guardrails: Option<Option<Vec<GuardrailConfig>>>§name: Option<Option<String>>§description: Option<Option<String>>§metadata: Option<Option<HashMap<String, Value>>>Custom type for metadata with embedded validation.
object: Option<Object>§id: String§created_at: String§updated_at: String§model: StringImplementations§
Trait Implementations§
Source§impl Clone for ModelConversation
impl Clone for ModelConversation
Source§fn clone(&self) -> ModelConversation
fn clone(&self) -> ModelConversation
Returns a duplicate 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 ModelConversation
impl Debug for ModelConversation
Source§impl Default for ModelConversation
impl Default for ModelConversation
Source§fn default() -> ModelConversation
fn default() -> ModelConversation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelConversation
impl<'de> Deserialize<'de> for ModelConversation
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
Source§impl PartialEq for ModelConversation
impl PartialEq for ModelConversation
Source§impl Serialize for ModelConversation
impl Serialize for ModelConversation
impl StructuralPartialEq for ModelConversation
Auto Trait Implementations§
impl Freeze for ModelConversation
impl RefUnwindSafe for ModelConversation
impl Send for ModelConversation
impl Sync for ModelConversation
impl Unpin for ModelConversation
impl UnsafeUnpin for ModelConversation
impl UnwindSafe for ModelConversation
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