Skip to main content

lc_agents/deep_research/
error.rs

1// lc-agents/src/deep_research/error.rs
2//! Error types for deep research operations.
3
4/// Error types for deep research operations.
5#[derive(Debug, thiserror::Error)]
6#[non_exhaustive]
7pub enum ResearchError {
8    /// LLM invocation error.
9    #[error("LLM error: {0}")]
10    Llm(String),
11
12    /// Search tool execution error.
13    #[error("search error: {0}")]
14    Search(String),
15
16    /// No search results were found for any query.
17    #[error("no results found")]
18    NoResults,
19}