pub struct ReActOutputParser { /* private fields */ }Expand description
ReAct output parser
Parsed format:
Thought: thought content
Action: tool name
Action Input: tool inputor
Thought: thought content
Final Answer: final answerImplementations§
Source§impl ReActOutputParser
impl ReActOutputParser
Sourcepub fn parse(&self, text: &str) -> Result<AgentOutput, AgentError>
pub fn parse(&self, text: &str) -> Result<AgentOutput, AgentError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReActOutputParser
impl RefUnwindSafe for ReActOutputParser
impl Send for ReActOutputParser
impl Sync for ReActOutputParser
impl Unpin for ReActOutputParser
impl UnsafeUnpin for ReActOutputParser
impl UnwindSafe for ReActOutputParser
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