pub struct ModelInvocation {Show 20 fields
pub id: InvocationId,
pub scope: TenantProjectScope,
pub runtime_identity_id: RuntimeIdentityId,
pub relations: ResourceRelations,
pub agent_id: Option<AgentId>,
pub requested_model_id: String,
pub resolved_model_id: String,
pub credential_source: ModelCredentialSource,
pub profile_id: ModelProfileId,
pub profile_revision: u64,
pub api_family: ModelApiFamily,
pub channel: InvocationChannel,
pub state: InvocationState,
pub request_digest: String,
pub provider_request_id: Option<String>,
pub usage: Option<TokenUsage>,
pub finish_reason: Option<String>,
pub error_code: Option<String>,
pub created_at: DateTime<Utc>,
pub completed_at: Option<DateTime<Utc>>,
}Fields§
§id: InvocationId§scope: TenantProjectScope§runtime_identity_id: RuntimeIdentityId§relations: ResourceRelations§agent_id: Option<AgentId>§requested_model_id: String§resolved_model_id: String§credential_source: ModelCredentialSource§profile_id: ModelProfileId§profile_revision: u64§api_family: ModelApiFamily§channel: InvocationChannel§state: InvocationState§request_digest: String§provider_request_id: Option<String>§usage: Option<TokenUsage>§finish_reason: Option<String>§error_code: Option<String>§created_at: DateTime<Utc>§completed_at: Option<DateTime<Utc>>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