Status: 429
Type: unknown_api_error
Message: Failed after 3 attempts. Last error: 429 status code (no body)
Raw Error:
{
"url": "<http://localhost:9000/v1/cerebras/0ed72c90-cea3-490b-ac3c-d04843dc2fb0/chat/completions>",
"statusCode": 429,
"isRetryable": true,
"responseBody": {
"error": {
"message": "429 status code (no body)",
"type": "unknown_api_error"
}
}
}```
Read-only live mirror of Archestra.AI Slack
πJoin the discussion withAI enthusiasts!Status: 429
Type: unknown_api_error
Message: Failed after 3 attempts. Last error: 429 status code (no body)
Raw Error:
{
"url": "<http://localhost:9000/v1/cerebras/0ed72c90-cea3-490b-ac3c-d04843dc2fb0/chat/completions>",
"statusCode": 429,
"isRetryable": true,
"responseBody": {
"error": {
"message": "429 status code (no body)",
"type": "unknown_api_error"
}
}
}```
context-compaction.ts β that's key. Let me look at that and the LLM request building. I have a clear picture now. The main token consumers are: system prompt, tool schemas, conversation history, tool results, and file attachments. Let me check the tool-related consumption since that's often the biggest lever. I have enough to give concrete, codebase-grounded advice. The key insight: Archestra has *dynamic tool discovery (searchtools/runtool) and auto-compaction β the biggest token consumers are tool schemas and conversation history. Let me write up findings. Confirmed. Here's my reply. Reply to post in thread: > Dug into the codebase. Biggest token drivers per request: tool schemas, conversation history, tool results, and file attachments (see context-window-breakdown.ts). > > What you can do: > β’ Trim tools β if the agent has "access all tools" on, every tool schema is sent each turn. Turn it off + rely on dynamic search_tools/run_tool, or exclude unused tools. Usually the single biggest saving. > β’ Shorten the system prompt β it's sent every turn. > β’ Start fresh conversations β history is resent each turn; auto-compaction only kicks in at 80% of the context window. > β’ Avoid dumping large files/tool outputs* into context. > > The Context Window Visualizer in the UI shows exactly what's eating your budget β check it to target the worst offender first. Want me to post that to the thread, or check anything more specific (like your agent's tool config)? π€ Slack Agent