pub struct TraceRecord {
pub version: String,
pub id: Uuid,
pub timestamp: DateTime<Utc>,
pub vcs: Option<VcsInfo>,
pub tool: Option<ToolInfo>,
pub files: Vec<TraceFile>,
pub metadata: Option<TraceMetadata>,
}Expand description
A complete Agent Trace record tracking AI contributions to code.
This is the fundamental unit of Agent Trace - a snapshot of attribution data for files changed in a specific revision.
Fields§
§version: StringAgent Trace specification version (e.g., “0.1.0”).
id: UuidUnique identifier for this trace record (UUID v4).
timestamp: DateTime<Utc>RFC 3339 timestamp when trace was recorded.
vcs: Option<VcsInfo>Version control system information for this trace.
tool: Option<ToolInfo>The tool that generated this trace.
files: Vec<TraceFile>Array of files with attributed ranges.
metadata: Option<TraceMetadata>Additional metadata for implementation-specific or vendor-specific data.
Implementations§
Source§impl TraceRecord
impl TraceRecord
Sourcepub fn for_git_revision(revision: impl Into<String>) -> Self
pub fn for_git_revision(revision: impl Into<String>) -> Self
Create a trace record for a specific git revision.
Sourcepub fn has_attributions(&self) -> bool
pub fn has_attributions(&self) -> bool
Check if the trace has any attributed ranges.
Trait Implementations§
Source§impl Clone for TraceRecord
impl Clone for TraceRecord
Source§fn clone(&self) -> TraceRecord
fn clone(&self) -> TraceRecord
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 moreSource§impl Debug for TraceRecord
impl Debug for TraceRecord
Source§impl Default for TraceRecord
impl Default for TraceRecord
Source§impl<'de> Deserialize<'de> for TraceRecord
impl<'de> Deserialize<'de> for TraceRecord
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 JsonSchema for TraceRecord
impl JsonSchema for TraceRecord
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TraceRecord
impl PartialEq for TraceRecord
Source§impl Serialize for TraceRecord
impl Serialize for TraceRecord
impl StructuralPartialEq for TraceRecord
Auto Trait Implementations§
impl Freeze for TraceRecord
impl RefUnwindSafe for TraceRecord
impl Send for TraceRecord
impl Sync for TraceRecord
impl Unpin for TraceRecord
impl UnwindSafe for TraceRecord
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