pub enum InteractionContent {
Message {
body: String,
blocks: Option<Vec<ContentBlock>>,
},
Request {
intent: String,
params: Value,
},
Response {
in_reply_to: InteractionId,
status: ResponseStatus,
result: Value,
},
}Expand description
Simplified interaction content for the core agent loop.
This is an adapter type — CommsContent in meerkat-comms has richer types
(MessageIntent, CommsStatus, etc.). The comms runtime converts at the boundary.
Variants§
Message
A simple text message.
Request
A request for the agent to perform an action.
Response
A response to a previous request.
Trait Implementations§
Source§impl Clone for InteractionContent
impl Clone for InteractionContent
Source§fn clone(&self) -> InteractionContent
fn clone(&self) -> InteractionContent
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 InteractionContent
impl Debug for InteractionContent
Source§impl<'de> Deserialize<'de> for InteractionContent
impl<'de> Deserialize<'de> for InteractionContent
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 InteractionContent
impl PartialEq for InteractionContent
Source§impl Serialize for InteractionContent
impl Serialize for InteractionContent
impl StructuralPartialEq for InteractionContent
Auto Trait Implementations§
impl Freeze for InteractionContent
impl RefUnwindSafe for InteractionContent
impl Send for InteractionContent
impl Sync for InteractionContent
impl Unpin for InteractionContent
impl UnsafeUnpin for InteractionContent
impl UnwindSafe for InteractionContent
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