pub struct TransformOptions {
pub strip_thinking: bool,
pub convert_tools: bool,
pub convert_images: bool,
pub merge_text: bool,
}Expand description
Message transformation between provider formats. Options that control how messages are transformed between providers.
Fields§
§strip_thinking: boolStrip thinking blocks entirely instead of converting them to text.
convert_tools: boolConvert tool calls / tool results (when false, tool calls are dropped).
convert_images: boolConvert image blocks (when false, images are dropped).
merge_text: boolMerge adjacent text blocks produced by the transformation.
Trait Implementations§
Source§impl Clone for TransformOptions
impl Clone for TransformOptions
Source§fn clone(&self) -> TransformOptions
fn clone(&self) -> TransformOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TransformOptions
impl Debug for TransformOptions
Auto Trait Implementations§
impl Freeze for TransformOptions
impl RefUnwindSafe for TransformOptions
impl Send for TransformOptions
impl Sync for TransformOptions
impl Unpin for TransformOptions
impl UnsafeUnpin for TransformOptions
impl UnwindSafe for TransformOptions
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