pub struct StrOutputParser;Expand description
Parser that returns raw text unchanged.
This is the simplest output parser, useful when no structured parsing is needed and the model’s raw text output is sufficient.
§Examples
use synwire_core::output_parsers::{OutputParser, StrOutputParser};
let parser = StrOutputParser;
let result = parser.parse("Hello, world!").unwrap();
assert_eq!(result, "Hello, world!");Trait Implementations§
Source§impl OutputParser for StrOutputParser
impl OutputParser for StrOutputParser
Auto Trait Implementations§
impl Freeze for StrOutputParser
impl RefUnwindSafe for StrOutputParser
impl Send for StrOutputParser
impl Sync for StrOutputParser
impl Unpin for StrOutputParser
impl UnsafeUnpin for StrOutputParser
impl UnwindSafe for StrOutputParser
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