pub enum TurnError {
Model(ModelError),
ToolDenied {
name: String,
},
Read(ReadError),
RepositoryRequired,
ToolCallLimit {
limit: usize,
},
}Expand description
Failure returned by a complete harness turn.
Variants§
Model(ModelError)
Provider request, response decoding, or terminal validation failed.
ToolDenied
The model requested a tool unavailable under the configured policy.
Read(ReadError)
A repository read failed.
RepositoryRequired
Repository-scoped tools were enabled without a repository root.
ToolCallLimit
The model exceeded the bounded number of calls in one turn.
Trait Implementations§
Source§impl Error for TurnError
impl Error for TurnError
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<ModelError> for TurnError
impl From<ModelError> for TurnError
Source§fn from(source: ModelError) -> Self
fn from(source: ModelError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TurnError
impl !UnwindSafe for TurnError
impl Freeze for TurnError
impl Send for TurnError
impl Sync for TurnError
impl Unpin for TurnError
impl UnsafeUnpin for TurnError
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