pub struct TaskQuote {
pub task_id: String,
pub provider: Address,
pub price: u128,
pub estimated_duration_secs: u64,
pub model_id: String,
pub confidence: u8,
pub expires_at: u64,
pub notes: Option<String>,
pub provider_attestation: Option<String>,
pub provider_reputation_proof: Option<ReputationProof>,
}Expand description
A quote for a task from a provider agent
Fields§
§task_id: StringThe task being quoted
provider: AddressProvider agent address
price: u128Quoted price in TNZO micro-units
estimated_duration_secs: u64Estimated time to complete (seconds)
model_id: StringModel the provider will use
confidence: u8Provider’s confidence score (0-100)
expires_at: u64Quote expiry (Unix timestamp)
notes: Option<String>Optional notes from the provider
provider_attestation: Option<String>Optional TEE attestation bound to this quote (base64-encoded attestation report), so the poster can prefer attested providers (Stage 2, P3).
provider_reputation_proof: Option<ReputationProof>Optional Merkle proof that the provider’s ERC-8004 reputation is at or above a threshold, avoiding an RPC round-trip to the registry (P3).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskQuote
impl<'de> Deserialize<'de> for TaskQuote
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 TaskQuote
impl StructuralPartialEq for TaskQuote
Auto Trait Implementations§
impl Freeze for TaskQuote
impl RefUnwindSafe for TaskQuote
impl Send for TaskQuote
impl Sync for TaskQuote
impl Unpin for TaskQuote
impl UnsafeUnpin for TaskQuote
impl UnwindSafe for TaskQuote
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