pub struct ProxyMessage {
pub role: MessageRole,
pub content: String,
pub tool_calls: Option<Vec<ToolCall>>,
pub tool_call_id: Option<String>,
}Expand description
A single chat turn used by the LLM proxy.
Fields§
§role: MessageRole§content: String§tool_calls: Option<Vec<ToolCall>>§tool_call_id: Option<String>Trait Implementations§
Source§impl Clone for ProxyMessage
impl Clone for ProxyMessage
Source§fn clone(&self) -> ProxyMessage
fn clone(&self) -> ProxyMessage
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 ProxyMessage
impl Debug for ProxyMessage
Source§impl<'de> Deserialize<'de> for ProxyMessage
impl<'de> Deserialize<'de> for ProxyMessage
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 ProxyMessage
impl PartialEq for ProxyMessage
Source§impl Serialize for ProxyMessage
impl Serialize for ProxyMessage
impl StructuralPartialEq for ProxyMessage
Auto Trait Implementations§
impl Freeze for ProxyMessage
impl RefUnwindSafe for ProxyMessage
impl Send for ProxyMessage
impl Sync for ProxyMessage
impl Unpin for ProxyMessage
impl UnwindSafe for ProxyMessage
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