pub struct RunContext<Deps> {
pub run_id: String,
pub deps: Arc<Deps>,
pub model: Arc<dyn Model>,
pub usage: RunUsage,
pub prompt: Option<Arc<Vec<UserContent>>>,
pub messages: Arc<Vec<ModelMessage>>,
pub tool_call_id: Option<String>,
pub tool_name: Option<String>,
}Fields§
§run_id: String§deps: Arc<Deps>§model: Arc<dyn Model>§usage: RunUsage§prompt: Option<Arc<Vec<UserContent>>>§messages: Arc<Vec<ModelMessage>>§tool_call_id: Option<String>§tool_name: Option<String>Implementations§
Source§impl<Deps> RunContext<Deps>
impl<Deps> RunContext<Deps>
pub fn for_tool_call(&self, tool_call_id: String, tool_name: String) -> Self
Trait Implementations§
Source§impl<Deps: Clone> Clone for RunContext<Deps>
impl<Deps: Clone> Clone for RunContext<Deps>
Source§fn clone(&self) -> RunContext<Deps>
fn clone(&self) -> RunContext<Deps>
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 moreAuto Trait Implementations§
impl<Deps> Freeze for RunContext<Deps>
impl<Deps> !RefUnwindSafe for RunContext<Deps>
impl<Deps> Send for RunContext<Deps>
impl<Deps> Sync for RunContext<Deps>
impl<Deps> Unpin for RunContext<Deps>
impl<Deps> !UnwindSafe for RunContext<Deps>
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