pub struct Message {
pub message_id: String,
pub context_id: Option<String>,
pub task_id: Option<String>,
pub role: Role,
pub parts: Vec<Part>,
pub metadata: Option<String>,
pub extensions: Vec<String>,
pub reference_task_ids: Vec<String>,
}Expand description
A message between a client and an agent.
Fields§
§message_id: String§context_id: Option<String>§task_id: Option<String>§role: Role§parts: Vec<Part>§metadata: Option<String>§extensions: Vec<String>§reference_task_ids: Vec<String>Implementations§
Trait Implementations§
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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