pub struct ModelInvocation {
pub id: String,
pub scope: AuthorizedScope,
pub conversation_id: String,
pub request_window_id: String,
pub model: String,
pub provider: String,
pub state: ModelInvocationState,
pub response: Option<Value>,
pub error_code: Option<String>,
pub usage: Value,
pub created_at_ms: i64,
pub completed_at_ms: Option<i64>,
}Expand description
Audit record for the exact request snapshot supplied to one model call.
Fields§
§id: String§scope: AuthorizedScope§conversation_id: String§request_window_id: String§model: String§provider: String§state: ModelInvocationState§response: Option<Value>§error_code: Option<String>§usage: Value§created_at_ms: i64§completed_at_ms: Option<i64>Trait Implementations§
Source§impl Clone for ModelInvocation
impl Clone for ModelInvocation
Source§fn clone(&self) -> ModelInvocation
fn clone(&self) -> ModelInvocation
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 moreSource§impl Debug for ModelInvocation
impl Debug for ModelInvocation
Source§impl<'de> Deserialize<'de> for ModelInvocation
impl<'de> Deserialize<'de> for ModelInvocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ModelInvocation
impl PartialEq for ModelInvocation
Source§impl Serialize for ModelInvocation
impl Serialize for ModelInvocation
impl StructuralPartialEq for ModelInvocation
Auto Trait Implementations§
impl Freeze for ModelInvocation
impl RefUnwindSafe for ModelInvocation
impl Send for ModelInvocation
impl Sync for ModelInvocation
impl Unpin for ModelInvocation
impl UnsafeUnpin for ModelInvocation
impl UnwindSafe for ModelInvocation
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