pub struct ChatClientOptions { /* private fields */ }Expand description
Per-call defaults for constructing a ChatClient.
Implementations§
Source§impl ChatClientOptions
impl ChatClientOptions
Sourcepub fn with_system_prompt(self, system_prompt: impl Into<String>) -> Self
pub fn with_system_prompt(self, system_prompt: impl Into<String>) -> Self
Add a default system prompt that will be injected into requests built by the client.
Sourcepub fn system_prompt(&self) -> Option<&str>
pub fn system_prompt(&self) -> Option<&str>
Returns the configured default system prompt.
Trait Implementations§
Source§impl Clone for ChatClientOptions
impl Clone for ChatClientOptions
Source§fn clone(&self) -> ChatClientOptions
fn clone(&self) -> ChatClientOptions
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 ChatClientOptions
impl Debug for ChatClientOptions
impl Eq for ChatClientOptions
Source§impl PartialEq for ChatClientOptions
impl PartialEq for ChatClientOptions
Source§fn eq(&self, other: &ChatClientOptions) -> bool
fn eq(&self, other: &ChatClientOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChatClientOptions
Auto Trait Implementations§
impl Freeze for ChatClientOptions
impl RefUnwindSafe for ChatClientOptions
impl Send for ChatClientOptions
impl Sync for ChatClientOptions
impl Unpin for ChatClientOptions
impl UnsafeUnpin for ChatClientOptions
impl UnwindSafe for ChatClientOptions
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