mlrs-core 0.1.0

Core RLM engine — recursive LLM inference via Rhai scripting
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

#[derive(Debug, Error)]
pub enum RlmError {
    #[error("max depth {0} exceeded")]
    MaxDepthExceeded(usize),

    #[error("max iterations {0} exceeded without calling done()")]
    MaxIterationsExceeded(usize),

    #[error("script error: {0}")]
    ScriptError(String),

    #[error("provider error: {0}")]
    ProviderError(#[source] anyhow::Error),
}