codetether-agent 4.7.0-a-002.4

A2A-native AI coding agent for the CodeTether ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Token-truncation helpers for sub-agent context management.

#[path = "token_limits/constants.rs"]
mod constants;
#[path = "token_limits/estimation.rs"]
mod estimation;
#[path = "token_limits/message_truncation.rs"]
mod message_truncation;
#[path = "token_limits/summary.rs"]
mod summary;
#[path = "token_limits/truncation.rs"]
mod truncation;

pub use constants::{DEFAULT_CONTEXT_LIMIT, RESPONSE_RESERVE_TOKENS, TRUNCATION_THRESHOLD};
pub use estimation::{estimate_message_tokens, estimate_tokens, estimate_total_tokens};
pub use message_truncation::truncate_messages_to_fit;
pub use summary::summarize_removed_messages;
pub use truncation::{truncate_large_tool_results, truncate_single_result};