pub struct SendMessageRequest {
pub message: Message,
pub task_id: Option<String>,
pub context_id: Option<String>,
pub metadata: Option<Value>,
}Expand description
Request to send a message to the remote agent.
Fields§
§message: MessageThe message to send.
task_id: Option<String>Existing task ID to continue (optional — omit to create a new task).
context_id: Option<String>Context ID to group related tasks.
metadata: Option<Value>Optional metadata.
Trait Implementations§
Source§impl Clone for SendMessageRequest
impl Clone for SendMessageRequest
Source§fn clone(&self) -> SendMessageRequest
fn clone(&self) -> SendMessageRequest
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 SendMessageRequest
impl Debug for SendMessageRequest
Source§impl Default for SendMessageRequest
impl Default for SendMessageRequest
Auto Trait Implementations§
impl Freeze for SendMessageRequest
impl RefUnwindSafe for SendMessageRequest
impl Send for SendMessageRequest
impl Sync for SendMessageRequest
impl Unpin for SendMessageRequest
impl UnsafeUnpin for SendMessageRequest
impl UnwindSafe for SendMessageRequest
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