pub struct MagicInstantiateParameters {
pub model_settings: ModelSettings,
pub instructions: String,
pub messages_history: Vec<ChatCompletionRequestMessage>,
}
Expand description
A wrapper around all the arguments needed to instantiate a value.
Fields§
§model_settings: ModelSettings
§instructions: String
The user’s instructions for how they want the value to be instantiated.
messages_history: Vec<ChatCompletionRequestMessage>
User-provided chat history if it would give the model needed context to generate a value.
It is possible to use this crate without ever providing messages_history
and just using instructions
to
provide the context, however just providing messages_history
can be more erognomic for some users.
Trait Implementations§
Source§impl Clone for MagicInstantiateParameters
impl Clone for MagicInstantiateParameters
Source§fn clone(&self) -> MagicInstantiateParameters
fn clone(&self) -> MagicInstantiateParameters
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 MagicInstantiateParameters
impl Debug for MagicInstantiateParameters
Auto Trait Implementations§
impl Freeze for MagicInstantiateParameters
impl RefUnwindSafe for MagicInstantiateParameters
impl Send for MagicInstantiateParameters
impl Sync for MagicInstantiateParameters
impl Unpin for MagicInstantiateParameters
impl UnwindSafe for MagicInstantiateParameters
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