pub struct SessionContextBuilder { /* private fields */ }Implementations§
Source§impl SessionContextBuilder
impl SessionContextBuilder
pub fn new() -> Self
pub fn environment(self, environment: EnvironmentContext) -> Self
pub fn project(self, project: ProjectContext) -> Self
pub fn base_system_prompt(self, prompt: impl Into<String>) -> Self
pub fn tools(self, tools: &[Tool]) -> Self
pub fn budget(self, budget: ContextBudget) -> Self
pub fn build(self) -> SessionContext
Trait Implementations§
Source§impl Clone for SessionContextBuilder
impl Clone for SessionContextBuilder
Source§fn clone(&self) -> SessionContextBuilder
fn clone(&self) -> SessionContextBuilder
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 SessionContextBuilder
impl Debug for SessionContextBuilder
Source§impl Default for SessionContextBuilder
impl Default for SessionContextBuilder
Source§fn default() -> SessionContextBuilder
fn default() -> SessionContextBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SessionContextBuilder
impl RefUnwindSafe for SessionContextBuilder
impl Send for SessionContextBuilder
impl Sync for SessionContextBuilder
impl Unpin for SessionContextBuilder
impl UnsafeUnpin for SessionContextBuilder
impl UnwindSafe for SessionContextBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request