pub enum SdkError {
Show 14 variants
Agent(AgentError),
Build(String),
Config(String),
ProviderInit(String),
StoreInit(String),
SkillInit(String),
McpServerStart {
server_id: String,
source: McpError,
},
SessionNotFound(String),
SessionLoad(String),
SessionSave(String),
NoPendingQuestion,
InvalidResponse(String),
Unsupported(String),
Io(Error),
}Expand description
Errors surfaced by the bamboo_sdk facade.
Variants§
Agent(AgentError)
A run/resume of the underlying agent loop failed. Wraps the runtime’s
own typed error so ? composes across Agent::run* and the newer
facade methods in a function returning Result<_, SdkError>.
Build(String)
AgentBuilder::build() failed — the wrapped engine builder rejected an
incomplete or inconsistent dependency set (e.g. a required dependency
was never supplied).
Config(String)
with_defaults_for_data_dir failed to read/parse config.json.
ProviderInit(String)
with_defaults_for_data_dir failed to construct the configured LLM
provider — commonly a missing/invalid API key. See
AgentBuilder::api_key and
AgentBuilder::provider_name.
StoreInit(String)
with_defaults_for_data_dir failed to open the session store at the
given data directory.
SkillInit(String)
with_defaults_for_data_dir failed to initialize the skill manager.
McpServerStart
An MCP server failed to start (see
AgentBuilder::mcp_server).
SessionNotFound(String)
The requested session does not exist.
SessionLoad(String)
Loading a session from storage failed.
SessionSave(String)
Persisting a session failed.
NoPendingQuestion
Agent::answer was called on a session with no
pending question / approval to respond to.
InvalidResponse(String)
The response passed to Agent::answer did not
match one of the pending question’s fixed options (and it does not
allow a custom response).
Unsupported(String)
A capability that requires with_defaults_for_data_dir (e.g. session
listing, which needs the concrete session-index handle) was called on
an Agent assembled from manually-injected dependencies.
Io(Error)
Underlying I/O failure (session store reads/writes, etc).
Trait Implementations§
Source§impl Error for SdkError
impl Error for SdkError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()