MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / AgentError

Enum AgentError

crates/opencode-agent/src/executor.rs:13–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12#[derive(Debug, thiserror::Error)]
13pub enum AgentError {
14 #[error("Provider error: {0}")]
15 ProviderError(String),
16
17 #[error("Tool error: {0}")]
18 ToolError(String),
19
20 #[error("Max steps exceeded")]
21 MaxStepsExceeded,
22
23 #[error("No provider available")]
24 NoProvider,
25
26 #[error("Invalid response")]
27 InvalidResponse,
28}
29
30pub struct AgentExecutor {
31 agent: AgentInfo,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected