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 Forget for Record
impl Freeze for Recordwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<ArtifactName, Fingerprint> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(ArtifactName, Fingerprint)>>: Freeze,
*const LeafNode<ArtifactName, ArtifactKind> is !null: Freeze,
PhantomData<Box<(ArtifactName, ArtifactKind)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<MutexTag>: Freeze,
*const LeafNode<ExecutionPinName, BTreeMap<LogicalPath, Sha256Digest>> is !null: Freeze,
PhantomData<Box<(ExecutionPinName, BTreeMap<LogicalPath, Sha256Digest>)>>: Freeze,
PhantomData<AgentIssue>: Freeze,
PhantomData<HumanIssue>: Freeze,
PhantomData<RuntimeIssue>: Freeze,
PhantomData<Attempt>: Freeze,
NonZero<i32>: Freeze,
*const Execution is !null: Freeze,
PhantomData<Execution>: Freeze,
impl Move for Record
impl RefUnwindSafe for Record
impl Send for Recordwhere
RawVecInner: Send,
NodeRef<Owned, ArtifactName, Fingerprint, LeafOrInternal>: Send,
BoxRaw<(ArtifactName, Fingerprint)>: Send,
NodeRef<Owned, ArtifactName, ArtifactKind, LeafOrInternal>: Send,
BoxRaw<(ArtifactName, ArtifactKind)>: Send,
NodeRef<Owned, ExecutionPinName, BTreeMap<LogicalPath, Sha256Digest>, LeafOrInternal>: Send,
BoxRaw<(ExecutionPinName, BTreeMap<LogicalPath, Sha256Digest>)>: Send,
NodeRef<Owned, String, u64, LeafOrInternal>: Send,
BoxRaw<(String, u64)>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
NonZero<i32>: Send,
BoxRaw<Execution>: Send,
impl Sync for Recordwhere
RawVecInner: Sync,
NodeRef<Owned, ArtifactName, Fingerprint, LeafOrInternal>: Sync,
BoxRaw<(ArtifactName, Fingerprint)>: Sync,
NodeRef<Owned, ArtifactName, ArtifactKind, LeafOrInternal>: Sync,
BoxRaw<(ArtifactName, ArtifactKind)>: Sync,
NodeRef<Owned, ExecutionPinName, BTreeMap<LogicalPath, Sha256Digest>, LeafOrInternal>: Sync,
BoxRaw<(ExecutionPinName, BTreeMap<LogicalPath, Sha256Digest>)>: Sync,
NodeRef<Owned, String, u64, LeafOrInternal>: Sync,
BoxRaw<(String, u64)>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
NonZero<i32>: Sync,
BoxRaw<Execution>: Sync,
impl Unpin for Recordwhere
*const u8 is !null: Unpin,
*const LeafNode<ArtifactName, Fingerprint> is !null: Unpin,
Box<(ArtifactName, Fingerprint)>: Unpin,
*const LeafNode<ArtifactName, ArtifactKind> is !null: Unpin,
Box<(ArtifactName, ArtifactKind)>: Unpin,
*const LeafNode<ExecutionPinName, BTreeMap<LogicalPath, Sha256Digest>> is !null: Unpin,
Box<(ExecutionPinName, BTreeMap<LogicalPath, Sha256Digest>)>: Unpin,
*const LeafNode<String, u64> is !null: Unpin,
Box<(String, u64)>: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
NonZero<i32>: Unpin,
Box<Execution>: Unpin,
impl UnsafeUnpin for Recordwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<ArtifactName, Fingerprint> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(ArtifactName, Fingerprint)>>: UnsafeUnpin,
*const LeafNode<ArtifactName, ArtifactKind> is !null: UnsafeUnpin,
PhantomData<Box<(ArtifactName, ArtifactKind)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<MutexTag>: UnsafeUnpin,
*const LeafNode<ExecutionPinName, BTreeMap<LogicalPath, Sha256Digest>> is !null: UnsafeUnpin,
PhantomData<Box<(ExecutionPinName, BTreeMap<LogicalPath, Sha256Digest>)>>: UnsafeUnpin,
PhantomData<AgentIssue>: UnsafeUnpin,
PhantomData<HumanIssue>: UnsafeUnpin,
PhantomData<RuntimeIssue>: UnsafeUnpin,
PhantomData<Attempt>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
*const Execution is !null: UnsafeUnpin,
PhantomData<Execution>: UnsafeUnpin,
impl UnwindSafe for Recordwhere
RawVecInner: UnwindSafe,
BTreeMap<ArtifactName, Fingerprint>: UnwindSafe,
BTreeMap<ArtifactName, ArtifactKind>: UnwindSafe,
BTreeMap<ExecutionPinName, BTreeMap<LogicalPath, Sha256Digest>>: UnwindSafe,
BTreeMap<String, u64>: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
NonZero<i32>: UnwindSafe,
BoxRaw<Execution>: UnwindSafe,
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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.