pub struct NoOpFormatter;Trait Implementations§
Source§impl Debug for NoOpFormatter
impl Debug for NoOpFormatter
Source§impl Default for NoOpFormatter
impl Default for NoOpFormatter
Source§impl OAIPromptFormatter for NoOpFormatter
impl OAIPromptFormatter for NoOpFormatter
fn supports_add_generation_prompt(&self) -> bool
fn render(&self, req: &dyn OAIChatLikeRequest) -> Result<String>
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.
Source§fn media_message_order(
&self,
_request: &dyn OAIChatLikeRequest,
) -> Option<Vec<usize>>
fn media_message_order( &self, _request: &dyn OAIChatLikeRequest, ) -> Option<Vec<usize>>
Source message indices in rendered media order;
None preserves arrival order.
An explicit order must be a permutation of all source-message indices.
Parts within each message retain their original order.fn render_prompt(&self, req: &dyn OAIChatLikeRequest) -> Result<RenderedPrompt>
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.Auto Trait Implementations§
impl Forget for NoOpFormatter
impl Freeze for NoOpFormatter
impl Move for NoOpFormatter
impl RefUnwindSafe for NoOpFormatter
impl Send for NoOpFormatter
impl Sync for NoOpFormatter
impl Unpin for NoOpFormatter
impl UnsafeUnpin for NoOpFormatter
impl UnwindSafe for NoOpFormatter
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> 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