pub struct MaterializedPromptInput {
pub kind: PromptInputKind,
pub content_id_sha256: String,
pub consumer_signature_sha256: String,
pub original_bytes: u64,
pub final_bytes: u64,
pub model_budget_bytes: Option<u64>,
pub inline_budget_bytes: Option<u64>,
pub representation: PromptInputRepresentation,
pub reason: PromptMaterializationReason,
}Expand description
Canonical, reducer-visible record of prompt input materialization.
This records what the downstream prompt template will embed (inline vs file reference), along with stable identifiers so the reducer can dedupe repeated attempts in the event loop.
Fields§
§kind: PromptInputKind§content_id_sha256: String§consumer_signature_sha256: String§original_bytes: u64§final_bytes: u64§model_budget_bytes: Option<u64>§inline_budget_bytes: Option<u64>§representation: PromptInputRepresentation§reason: PromptMaterializationReasonTrait Implementations§
Source§impl Clone for MaterializedPromptInput
impl Clone for MaterializedPromptInput
Source§fn clone(&self) -> MaterializedPromptInput
fn clone(&self) -> MaterializedPromptInput
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 MaterializedPromptInput
impl Debug for MaterializedPromptInput
Source§impl<'de> Deserialize<'de> for MaterializedPromptInput
impl<'de> Deserialize<'de> for MaterializedPromptInput
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 PartialEq for MaterializedPromptInput
impl PartialEq for MaterializedPromptInput
Source§impl Serialize for MaterializedPromptInput
impl Serialize for MaterializedPromptInput
impl Eq for MaterializedPromptInput
impl StructuralPartialEq for MaterializedPromptInput
Auto Trait Implementations§
impl Freeze for MaterializedPromptInput
impl RefUnwindSafe for MaterializedPromptInput
impl Send for MaterializedPromptInput
impl Sync for MaterializedPromptInput
impl Unpin for MaterializedPromptInput
impl UnwindSafe for MaterializedPromptInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more