Functions§
- compress_
tool_ result - Proxy compression funnel: routes a tool result to the right compressor.
- compress_
tool_ result_ for - compress_
tool_ result_ gateway compress_tool_resultfor the/v1/compressgateway contract (#702): identical compression, but a lossy result advertises its retrieval hash in LiteLLM’s regex-lockedhash=<24hex>form, so a gateway running the headroom-guardrail CCR loop (BerriAI/litellm#31681) can inject its retrieve tool and resolve the original viaGET /v1/retrieve/{hash}.- compress_
tool_ result_ gateway_ for - compress_
tool_ result_ gateway_ with_ policy - Gateway variant of
compress_tool_result_with_policy. - compress_
tool_ result_ with_ policy - Compresses a tool result under a task-aware policy.
- shape_
command_ output - Shape the output of a host-native shell command whose exact command line is
known (
ctx_shape, fed by a host mod after the native tool ran). Unlike the wire funnel, the real command reaches the engine, so its command-gated policies (protected/verbatim commands, build/test guards, per-tool patterns) apply exactly as forctx_shell. With a knownexit_codethe outcome-aware path runs (success compresses, failure keeps its diagnostics); without one the engine’s unknown-outcome guard applies. Lossy results carry the same deterministic CCR recovery handle (#482, #498). - shape_
tool_ output compress_tool_resultfor a caller that is no request of this proxy: the output of a host-native tool handed in after it ran (ctx_shape, every tool whose command line is not known).