pub struct Record {Show 22 fields
pub schema: u32,
pub key: ReuseKey,
pub eval_def_hash: DefinitionHash,
pub fingerprints: BTreeMap<ArtifactName, Fingerprint>,
pub artifact_kinds: BTreeMap<ArtifactName, ArtifactKind>,
pub verdict: ExecutionStatus,
pub eval_id: EvalId,
pub run_id: RunId,
pub request_id: RequestId,
pub execution_id: ExecutionId,
pub profile: StoredProfile,
pub options: ExecutionOptions,
pub execution_paths: Pins,
pub result: ExecutionResult,
pub usage: Option<Vec<Attempt>>,
pub reviewer: Option<ReviewerId>,
pub producer: Option<Producer>,
pub started_at: Timestamp,
pub completed_at: Timestamp,
pub execution: Option<Box<Execution>>,
pub publisher: Option<TokenName>,
pub published_at: Option<Timestamp>,
}Expand description
One record of a reuse key’s history; the store keeps every record and returns the latest.
A summary carries no argv, captured output or repository path. A full record additionally
carries the saved execution as is; one an earlier artifactize published may still hold
its toolCalls, which readers ignore. The server stamps publisher
and publishedAt.
Fields§
§schema: u32§key: ReuseKey§eval_def_hash: DefinitionHash§fingerprints: BTreeMap<ArtifactName, Fingerprint>Each Artifact the key covers, with its fingerprint.
artifact_kinds: BTreeMap<ArtifactName, ArtifactKind>§verdict: ExecutionStatus§eval_id: EvalId§run_id: RunId§request_id: RequestId§execution_id: ExecutionId§profile: StoredProfile§options: ExecutionOptions§execution_paths: PinsAn Agent result’s tool executionPaths pins.
result: ExecutionResult§usage: Option<Vec<Attempt>>§reviewer: Option<ReviewerId>§producer: Option<Producer>§started_at: Timestamp§completed_at: Timestamp§execution: Option<Box<Execution>>§publisher: Option<TokenName>§published_at: Option<Timestamp>Implementations§
Source§impl Record
impl Record
Sourcepub fn new(execution: &Execution, full: bool) -> Result<Self, String>
pub fn new(execution: &Execution, full: bool) -> Result<Self, String>
Project a completed local GREEN/RED result with a key; full keeps the execution.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
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
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.