pub struct Instructions {
pub content: String,
pub provider_options: Option<ProviderOptions>,
}Expand description
System instructions: text with optional provider options.
Fields§
§content: StringThe instruction text.
provider_options: Option<ProviderOptions>Provider-specific options for the system message.
Implementations§
Source§impl Instructions
impl Instructions
Sourcepub fn with_provider_options(self, options: ProviderOptions) -> Self
pub fn with_provider_options(self, options: ProviderOptions) -> Self
Sets provider options.
Sourcepub fn into_message(self) -> SystemMessage
pub fn into_message(self) -> SystemMessage
Converts into a system message.
Trait Implementations§
Source§impl Clone for Instructions
impl Clone for Instructions
Source§fn clone(&self) -> Instructions
fn clone(&self) -> Instructions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Instructions
impl Debug for Instructions
Source§impl Default for Instructions
impl Default for Instructions
Source§fn default() -> Instructions
fn default() -> Instructions
Returns the “default value” for a type. Read more
impl Eq for Instructions
Source§impl From<&str> for Instructions
impl From<&str> for Instructions
Source§impl From<String> for Instructions
impl From<String> for Instructions
Source§impl From<SystemMessage> for Instructions
impl From<SystemMessage> for Instructions
Source§fn from(message: SystemMessage) -> Self
fn from(message: SystemMessage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Instructions
impl PartialEq for Instructions
impl StructuralPartialEq for Instructions
Auto Trait Implementations§
impl Freeze for Instructions
impl RefUnwindSafe for Instructions
impl Send for Instructions
impl Sync for Instructions
impl Unpin for Instructions
impl UnsafeUnpin for Instructions
impl UnwindSafe for Instructions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.