aether-llm 0.8.1

Multi-provider LLM abstraction layer for the Aether AI agent framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

use super::Tokens;

/// One agent's context window after its most recent LLM call.
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize, JsonSchema)]
#[serde(default)]
pub struct ContextUsage {
    /// `input_tokens` as a fraction of `context_limit`, when the limit is known.
    pub usage_ratio: Option<f64>,
    pub context_limit: Option<Tokens>,
    /// Input tokens on the most recent call, i.e. the current size of the context.
    pub input_tokens: Tokens,
}