pub struct NormalizedChat {
pub system: Option<String>,
pub messages: Vec<NormalizedMessage>,
pub tools: Vec<ToolSpec>,
}Expand description
A provider-facing conversation.
Fields§
§system: Option<String>Anthropic, Gemini and OpenAI Responses accept system instructions outside the normal message list. OpenAI Chat can prepend this as a system message.
messages: Vec<NormalizedMessage>Every normalized message, in order.
tools: Vec<ToolSpec>Tool specifications passed through from the request unchanged.
Trait Implementations§
Source§impl Clone for NormalizedChat
impl Clone for NormalizedChat
Source§impl Debug for NormalizedChat
impl Debug for NormalizedChat
Source§impl PartialEq for NormalizedChat
impl PartialEq for NormalizedChat
impl StructuralPartialEq for NormalizedChat
Auto Trait Implementations§
impl Freeze for NormalizedChat
impl RefUnwindSafe for NormalizedChat
impl Send for NormalizedChat
impl Sync for NormalizedChat
impl Unpin for NormalizedChat
impl UnsafeUnpin for NormalizedChat
impl UnwindSafe for NormalizedChat
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