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

Enum AgentError

crates/opencode-agent/src/agent.rs:165–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163
164#[derive(Debug, thiserror::Error)]
165pub enum AgentError {
166 #[error("Provider error: {0}")]
167 ProviderError(#[from] opencode_provider::ProviderError),
168
169 #[error("Failed to parse generated config: {0}")]
170 ParseError(String),
171
172 #[error("No default model available")]
173 NoDefaultModel,
174}
175
176impl AgentInfo {
177 pub fn from_builtin(builtin: BuiltinAgent) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected