|
| absl::StatusOr< std::string > | a11::sdk::llm_context::CompactJson (std::string_view text, size_t max_bytes=8 *1024 *1024, size_t max_depth=128) |
| | Return JSON with representation whitespace removed, preserving all tokens.
|
| |
| absl::StatusOr< std::string > | a11::sdk::llm_context::Encode (std::string_view text, std::string_view format, size_t max_bytes=8 *1024 *1024) |
| | Encode repeated lines or JSON key lexemes in a reversible JSON envelope.
|
| |
| absl::StatusOr< std::string > | a11::sdk::llm_context::Expand (std::string_view encoded, size_t max_bytes=8 *1024 *1024) |
| | Expand a context encoding, enforcing the expanded byte limit.
|
| |
| size_t | a11::sdk::llm_context::EstimateTokens (std::string_view text) |
| | Estimate tokens from UTF-8 bytes; this is not a provider tokenizer.
|
| |