pub enum CodingAgentError {
Agent(AgentError),
WorkspaceEscape(PathBuf),
Template(String),
}Expand description
Why a turn or a session operation failed.
Variants§
Agent(AgentError)
The engine or the provider failed, including a turn that exceeded
the step budget (AgentError::MaxIterations).
WorkspaceEscape(PathBuf)
A path resolved outside the workspace root. Inside a turn this
surfaces as an in-band is_error tool result instead (SPEC.md §4);
the variant exists for callers validating paths outside the tool
loop.
Template(String)
The system-prompt template failed to render — bad syntax, unknown filter — with the template position when known. The agent refuses to start on a prompt it cannot fully render.
Trait Implementations§
Source§impl Debug for CodingAgentError
impl Debug for CodingAgentError
Source§impl Display for CodingAgentError
impl Display for CodingAgentError
impl Eq for CodingAgentError
Source§impl Error for CodingAgentError
impl Error for CodingAgentError
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()
Source§impl From<AgentError> for CodingAgentError
impl From<AgentError> for CodingAgentError
Source§fn from(source: AgentError) -> Self
fn from(source: AgentError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CodingAgentError
impl From<Error> for CodingAgentError
Source§impl PartialEq for CodingAgentError
impl PartialEq for CodingAgentError
impl StructuralPartialEq for CodingAgentError
Auto Trait Implementations§
impl Freeze for CodingAgentError
impl RefUnwindSafe for CodingAgentError
impl Send for CodingAgentError
impl Sync for CodingAgentError
impl Unpin for CodingAgentError
impl UnsafeUnpin for CodingAgentError
impl UnwindSafe for CodingAgentError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.