Docs.rs
otherone-context-0.3.0
otherone-context 0.3.0
Docs.rs crate page
MIT
27 June 2026
Links
Repository
crates.io
Source
Owners
wuyoujae
Dependencies
anyhow ^1
normal
async-trait ^0.1
normal
otherone-ai ^0.3.0
normal
otherone-storage ^0.3.0
normal
serde ^1
normal
serde_json ^1
normal
thiserror ^2
normal
tracing ^0.1
normal
Versions
54.29%
of the crate is documented
Go to latest version
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
Module compact
otherone_
context
0.3.0
Module compact
Module Items
Modules
Functions
In crate otherone_
context
otherone_context
Module
compact
Copy item path
Source
Modules
§
check_
threshold
estimate_
tokens
messages_
to_
sequence
prompts
Functions
§
compact_
messages
压缩上下文消息 作用:保留最新的消息,压缩旧的消息为一段摘要 关联:被 combine_context 调用,当 token 使用量超过阈值时触发 预期结果:返回压缩后的 messages 数组:[compacted_message, …messages_to_keep]