pub struct UnableRecord {
pub reason: String,
pub missing: Vec<String>,
pub category: String,
}Expand description
Structured “I can’t” payload from an agent with a T | Unable return
type. Canonical wire envelope is { "unable": { reason, missing, category } };
this record is the payload after the envelope key is stripped.
category is kept as a free-form String at the SDK layer so forward
compat on category names doesn’t require an SDK release. The core enum
akribes_types::value::UnableCategory lists the current five canonical
buckets (input_missing, input_ambiguous, input_conflicts,
capability, other); consumers can parse into that enum if they want
strict typing.
Fields§
§reason: String§missing: Vec<String>§category: StringTrait Implementations§
Source§impl Clone for UnableRecord
impl Clone for UnableRecord
Source§fn clone(&self) -> UnableRecord
fn clone(&self) -> UnableRecord
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 UnableRecord
impl Debug for UnableRecord
Source§impl<'de> Deserialize<'de> for UnableRecord
impl<'de> Deserialize<'de> for UnableRecord
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 UnableRecord
Source§impl PartialEq for UnableRecord
impl PartialEq for UnableRecord
Source§fn eq(&self, other: &UnableRecord) -> bool
fn eq(&self, other: &UnableRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UnableRecord
impl Serialize for UnableRecord
impl StructuralPartialEq for UnableRecord
Auto Trait Implementations§
impl Freeze for UnableRecord
impl RefUnwindSafe for UnableRecord
impl Send for UnableRecord
impl Sync for UnableRecord
impl Unpin for UnableRecord
impl UnsafeUnpin for UnableRecord
impl UnwindSafe for UnableRecord
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.