pub struct AgentRunRecord {
pub run_id: RunId,
pub conversation: ConversationKey,
pub backend: String,
pub model: Option<String>,
pub tools: ToolPolicy,
pub usage: Option<TokenUsage>,
pub duration: Duration,
pub error: Option<String>,
pub started_at: Timestamp,
pub person: Option<String>,
}Expand description
One agent run, for the audit table.
Fields§
§run_id: RunIdRun id.
conversation: ConversationKeyConversation.
backend: StringBackend that produced the result (or the last one tried).
model: Option<String>Model, when known.
tools: ToolPolicyTool policy of the run.
usage: Option<TokenUsage>Token usage, when reported.
duration: DurationDuration.
error: Option<String>Error text, when the run failed.
started_at: TimestampWhen the run started.
person: Option<String>Who the run was for (person_key), counted against [limits]; None for runs nobody
asked for in chat.
Trait Implementations§
Source§impl Clone for AgentRunRecord
impl Clone for AgentRunRecord
Source§impl Debug for AgentRunRecord
impl Debug for AgentRunRecord
impl Eq for AgentRunRecord
Source§impl PartialEq for AgentRunRecord
impl PartialEq for AgentRunRecord
impl StructuralPartialEq for AgentRunRecord
Auto Trait Implementations§
impl Freeze for AgentRunRecord
impl RefUnwindSafe for AgentRunRecord
impl Send for AgentRunRecord
impl Sync for AgentRunRecord
impl Unpin for AgentRunRecord
impl UnsafeUnpin for AgentRunRecord
impl UnwindSafe for AgentRunRecord
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