pub struct MistralFormatter { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for MistralFormatter
impl Clone for MistralFormatter
Source§impl Debug for MistralFormatter
impl Debug for MistralFormatter
Source§impl OAIPromptFormatter for MistralFormatter
impl OAIPromptFormatter for MistralFormatter
Source§fn media_message_order(
&self,
req: &dyn OAIChatLikeRequest,
) -> Option<Vec<usize>>
fn media_message_order( &self, req: &dyn OAIChatLikeRequest, ) -> Option<Vec<usize>>
Tool results are reordered by call order, and their images with them.
fn supports_add_generation_prompt(&self) -> bool
Source§fn renders_continuation_natively(&self) -> bool
fn renders_continuation_natively(&self) -> bool
Whether this formatter leaves a final assistant turn open by itself
when
OAIChatLikeRequest::should_add_generation_prompt is false.
Callers must then skip their marker-and-truncate emulation of
continue_final_message.fn render(&self, req: &dyn OAIChatLikeRequest) -> Result<String>
fn render_prompt(&self, req: &dyn OAIChatLikeRequest) -> Result<RenderedPrompt>
Source§fn supports_native_tools(&self, _request: &dyn OAIChatLikeRequest) -> bool
fn supports_native_tools(&self, _request: &dyn OAIChatLikeRequest) -> bool
Older/native formatters keep flattened tools unless they opt into this shape.
Auto Trait Implementations§
impl Forget for MistralFormatter
impl Freeze for MistralFormatter
impl Move for MistralFormatter
impl RefUnwindSafe for MistralFormatter
impl Send for MistralFormatter
impl Sync for MistralFormatter
impl Unpin for MistralFormatter
impl UnsafeUnpin for MistralFormatter
impl UnwindSafe for MistralFormatter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more