pub struct ModelCallContext {
pub call_id: String,
pub step_number: u32,
pub model: ModelIdentity,
pub function_id: Option<String>,
}Expand description
Context of a model call handed to Telemetry::execute_language_model_call.
Fields§
§call_id: StringCall id.
step_number: u32Zero-based step index.
model: ModelIdentityThe model.
function_id: Option<String>Function id from the telemetry options.
Trait Implementations§
Source§impl Clone for ModelCallContext
impl Clone for ModelCallContext
Source§fn clone(&self) -> ModelCallContext
fn clone(&self) -> ModelCallContext
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 ModelCallContext
impl RefUnwindSafe for ModelCallContext
impl Send for ModelCallContext
impl Sync for ModelCallContext
impl Unpin for ModelCallContext
impl UnsafeUnpin for ModelCallContext
impl UnwindSafe for ModelCallContext
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