v1

latestOpenAPI 3.1.02026-08-04134182237.9 KB
Compression-Agentic

Compress Tool Output Stream

post/api/compress/tool-output/stream

Headers

X-API-Keystring required

Request body

querystring nullable

User's query for context-aware compression (required for GemFilter, prohibited for Lingua)

tool_namestring required

Name of the tool that produced the output

compression_model_namestring required

Compression model to use (e.g., 'toc_latte' or 'toc_americano')

target_compression_rationumber

Target compression ratio: 0-1 (strength) or >1 for factor. Max 200. Default: 0.5

source'demo' | 'extension' | 'sdk:python' | 'sdk:typescript' | 'sdk:curl' | 'gateway:unknown' | 'gateway:anthropic' | 'gateway:openai' | 'gateway:gemini' | 'integration:litellm' | 'integration:hermes'

Source of an API request.

Format: source[:detail]

  • demo, extension: no detail needed
  • sdk:python, sdk:typescript, sdk:curl
  • gateway:anthropic, gateway:openai, gateway:gemini
  • integration:litellm, integration:hermes

Response

Successful Response

{"stackTrail":"paths:/api/compress/tool-output/stream:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}