pub struct FeedbackContext {
pub agent_wallet: Option<WalletAddress>,
pub chain_id: Option<NonZeroU64>,
pub endpoint: Option<FeedbackContextEndpoint>,
pub model_id: Option<String>,
pub payment_intent_id: Option<String>,
pub provider: Option<String>,
pub receipt: Option<FeedbackContextReceipt>,
pub request_id: Option<String>,
pub run_id: Option<String>,
pub sdk: Option<FeedbackContextSdk>,
pub workflow_wallet: Option<WalletAddress>,
}Expand description
FeedbackContext
JSON schema
{
"type": "object",
"properties": {
"agentWallet": {
"$ref": "#/components/schemas/WalletAddress"
},
"chainId": {
"type": "integer",
"minimum": 1.0
},
"endpoint": {
"type": "object",
"properties": {
"method": {
"type": "string"
},
"path": {
"type": "string"
},
"url": {
"type": "string"
}
},
"additionalProperties": false
},
"modelId": {
"type": "string"
},
"paymentIntentId": {
"type": "string"
},
"provider": {
"type": "string"
},
"receipt": {
"type": "object",
"properties": {
"finalAmountWei": {
"$ref": "#/components/schemas/AtomicAmount"
},
"network": {
"$ref": "#/components/schemas/ChainNetwork"
},
"txHash": {
"type": "string"
}
},
"additionalProperties": false
},
"requestId": {
"type": "string"
},
"runId": {
"type": "string"
},
"sdk": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
}
},
"additionalProperties": false
},
"workflowWallet": {
"$ref": "#/components/schemas/WalletAddress"
}
},
"additionalProperties": false
}Fields§
§agent_wallet: Option<WalletAddress>§chain_id: Option<NonZeroU64>§endpoint: Option<FeedbackContextEndpoint>§model_id: Option<String>§payment_intent_id: Option<String>§provider: Option<String>§receipt: Option<FeedbackContextReceipt>§request_id: Option<String>§run_id: Option<String>§sdk: Option<FeedbackContextSdk>§workflow_wallet: Option<WalletAddress>Implementations§
Source§impl FeedbackContext
impl FeedbackContext
pub fn builder() -> FeedbackContext
Trait Implementations§
Source§impl Clone for FeedbackContext
impl Clone for FeedbackContext
Source§fn clone(&self) -> FeedbackContext
fn clone(&self) -> FeedbackContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FeedbackContext
impl Debug for FeedbackContext
Source§impl Default for FeedbackContext
impl Default for FeedbackContext
Source§impl<'de> Deserialize<'de> for FeedbackContext
impl<'de> Deserialize<'de> for FeedbackContext
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 From<FeedbackContext> for FeedbackContext
impl From<FeedbackContext> for FeedbackContext
Source§fn from(value: FeedbackContext) -> Self
fn from(value: FeedbackContext) -> Self
Converts to this type from the input type.
Source§impl Serialize for FeedbackContext
impl Serialize for FeedbackContext
Source§impl TryFrom<FeedbackContext> for FeedbackContext
impl TryFrom<FeedbackContext> for FeedbackContext
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: FeedbackContext) -> Result<Self, ConversionError>
fn try_from(value: FeedbackContext) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for FeedbackContext
impl RefUnwindSafe for FeedbackContext
impl Send for FeedbackContext
impl Sync for FeedbackContext
impl Unpin for FeedbackContext
impl UnsafeUnpin for FeedbackContext
impl UnwindSafe for FeedbackContext
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