pub struct Agent<C: Completion> {
pub client: C,
pub model: String,
pub temperature: Option<f64>,
pub stream: Option<bool>,
pub max_tokens: Option<u64>,
pub tools: ToolSet,
/* private fields */
}Fields§
§client: C§model: String§temperature: Option<f64>§stream: Option<bool>§max_tokens: Option<u64>§tools: ToolSetImplementations§
Auto Trait Implementations§
impl<C> Freeze for Agent<C>where
C: Freeze,
impl<C> !RefUnwindSafe for Agent<C>
impl<C> Send for Agent<C>where
C: Send,
impl<C> Sync for Agent<C>where
C: Sync,
impl<C> Unpin for Agent<C>where
C: Unpin,
impl<C> !UnwindSafe for Agent<C>
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