pub enum ActionParseError {
InvalidJson(Error),
MissingField(String),
UnknownType(String),
}Expand description
Errors that can occur when parsing an AgentAction from LLM output.
Variants§
InvalidJson(Error)
The input could not be parsed as valid JSON.
MissingField(String)
A required field is missing from the JSON object.
UnknownType(String)
The type field contains an unrecognised variant.
Trait Implementations§
Source§impl Debug for ActionParseError
impl Debug for ActionParseError
Source§impl Display for ActionParseError
impl Display for ActionParseError
Source§impl Error for ActionParseError
impl Error for ActionParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ActionParseError
impl !RefUnwindSafe for ActionParseError
impl Send for ActionParseError
impl Sync for ActionParseError
impl Unpin for ActionParseError
impl UnsafeUnpin for ActionParseError
impl !UnwindSafe for ActionParseError
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