pub struct ContextBuilder { /* private fields */ }Implementations§
Source§impl ContextBuilder
impl ContextBuilder
pub fn new(budget: ContextBudget) -> Self
pub fn with_tool_schemas(self, tool_schemas: Value) -> Self
pub fn build( &self, session: &Session, store: &EventStore, workspace: &Workspace, ) -> Result<String, ContextError>
pub const fn max_output_tokens(&self) -> u32
pub fn remaining_input_bytes(&self, fixed_context: &str) -> usize
Trait Implementations§
Source§impl Clone for ContextBuilder
impl Clone for ContextBuilder
Source§fn clone(&self) -> ContextBuilder
fn clone(&self) -> ContextBuilder
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 moreAuto Trait Implementations§
impl Freeze for ContextBuilder
impl RefUnwindSafe for ContextBuilder
impl Send for ContextBuilder
impl Sync for ContextBuilder
impl Unpin for ContextBuilder
impl UnsafeUnpin for ContextBuilder
impl UnwindSafe for ContextBuilder
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