Structs§
Constants§
- CHARS_
PER_ TOKEN - IMAGE_
CHAR_ EQUIVALENT - IMAGE_
TOKEN_ ESTIMATE - LEGACY_
SUMMARY_ PREFIX - MIN_
SUMMARY_ TOKENS - PRUNED_
TOOL_ PLACEHOLDER - SUMMARY_
PREFIX - SUMMARY_
RATIO - SUMMARY_
TOKENS_ CEILING
Functions§
- append_
text_ to_ content - content_
has_ images - content_
length_ for_ budget - content_
text_ for_ contains - count_
image_ tokens - estimate_
message_ chars - estimate_
messages_ tokens_ rough - estimate_
tokens_ rough - mask_
token - redact_
query_ string - redact_
sensitive_ text - strip_
historical_ media - strip_
image_ parts_ from_ parts - strip_
images_ from_ content - summarize_
tool_ result - truncate_
tool_ call_ args_ json