oino-core 1.0.0

Coding-agent runtime for Oino: AgentSession, extension runner, compaction, retry
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Compaction errors (plain errors with these texts).

use thiserror::Error;

/// Failure of a compaction summary.
#[derive(Clone, Debug, PartialEq, Eq, Error)]
pub enum CompactionError {
    /// The provider returned an error or hit the token cap (`getSummarizationFailure`
    /// text, e.g. `Summarization failed: …`).
    #[error("{0}")]
    Summarization(String),
    /// The model called a tool instead of answering (label, e.g. `Summarization`).
    #[error("{0} attempted to call a tool")]
    ToolCall(&'static str),
    /// The preparation's first kept entry has no id.
    #[error("First kept entry has no UUID - session may need migration")]
    MissingFirstKept,
}