pub struct ProposalOrigin {
pub model: String,
pub sampling: Vec<(String, String)>,
pub prompt: Digest,
}Expand description
Where a proposal came from.
Enough to trace a work order back to exactly what produced it. The prompt itself is referenced by digest rather than inlined, so the ledger stays small and the prompt stays retrievable from the content-addressed store.
Fields§
§model: StringThe model that produced this, e.g. claude-opus-5.
sampling: Vec<(String, String)>Sampling parameters, recorded so a run can be reproduced.
prompt: DigestDigest of the exact prompt sent.
Implementations§
Trait Implementations§
Source§impl Clone for ProposalOrigin
impl Clone for ProposalOrigin
Source§impl Debug for ProposalOrigin
impl Debug for ProposalOrigin
Source§impl<'de> Deserialize<'de> for ProposalOrigin
impl<'de> Deserialize<'de> for ProposalOrigin
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
impl Eq for ProposalOrigin
Source§impl PartialEq for ProposalOrigin
impl PartialEq for ProposalOrigin
Source§impl Serialize for ProposalOrigin
impl Serialize for ProposalOrigin
impl StructuralPartialEq for ProposalOrigin
Auto Trait Implementations§
impl Freeze for ProposalOrigin
impl RefUnwindSafe for ProposalOrigin
impl Send for ProposalOrigin
impl Sync for ProposalOrigin
impl Unpin for ProposalOrigin
impl UnsafeUnpin for ProposalOrigin
impl UnwindSafe for ProposalOrigin
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
Source§impl<T> Canonical for T
impl<T> Canonical for T
Source§fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
fn canonical_bytes(&self) -> Result<Vec<u8>, CanonicalError>
The canonical CBOR encoding of this value.