pub struct ReActOutputParser { /* private fields */ }Expand description
ReAct 输出解析器
解析格式:
Thought: 思考内容
Action: 工具名称
Action Input: 工具输入或
Thought: 思考内容
Final Answer: 最终答案Implementations§
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