pub struct WireMessagePart {
pub id: Option<String>,
pub session_id: Option<String>,
pub message_id: Option<String>,
pub part_type: Option<String>,
pub text: Option<String>,
pub tool: Option<String>,
pub args: Option<Value>,
pub state: Option<String>,
pub result: Option<Value>,
pub error: Option<String>,
}Fields§
§id: Option<String>§session_id: Option<String>§message_id: Option<String>§part_type: Option<String>§text: Option<String>§tool: Option<String>§args: Option<Value>§state: Option<String>§result: Option<Value>§error: Option<String>Implementations§
Source§impl WireMessagePart
impl WireMessagePart
pub fn text(session_id: &str, message_id: &str, text: impl Into<String>) -> Self
pub fn tool_invocation( session_id: &str, message_id: &str, tool: impl Into<String>, args: Value, ) -> Self
pub fn tool_result( session_id: &str, message_id: &str, tool: impl Into<String>, args: Option<Value>, result: Value, ) -> Self
Trait Implementations§
Source§impl Clone for WireMessagePart
impl Clone for WireMessagePart
Source§fn clone(&self) -> WireMessagePart
fn clone(&self) -> WireMessagePart
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 WireMessagePart
impl Debug for WireMessagePart
Source§impl<'de> Deserialize<'de> for WireMessagePart
impl<'de> Deserialize<'de> for WireMessagePart
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 WireMessagePart
impl PartialEq for WireMessagePart
Source§impl Serialize for WireMessagePart
impl Serialize for WireMessagePart
impl StructuralPartialEq for WireMessagePart
Auto Trait Implementations§
impl Freeze for WireMessagePart
impl RefUnwindSafe for WireMessagePart
impl Send for WireMessagePart
impl Sync for WireMessagePart
impl Unpin for WireMessagePart
impl UnsafeUnpin for WireMessagePart
impl UnwindSafe for WireMessagePart
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