JuliusBrussee/caveman · error
cachebench: unsupported trace provider %q
Error message
cachebench: unsupported trace provider %q
What it means
Error "cachebench: unsupported trace provider %q" thrown in JuliusBrussee/caveman.
Source
Thrown at cacheengine/cachebench/trace.go:167
messages = append(messages, bedrockMessage(message))
}
body = map[string]any{
"system": []any{map[string]any{"text": systemText}},
"toolConfig": map[string]any{"tools": []any{map[string]any{"toolSpec": map[string]any{"name": "workspace", "description": toolsText, "inputSchema": map[string]any{"json": map[string]any{"type": "object"}}}}}},
"messages": messages, "inferenceConfig": map[string]any{"maxTokens": 256},
}
case "gemini":
contents := make([]any, 0, len(history))
for _, message := range history {
contents = append(contents, geminiMessage(message))
}
body = map[string]any{
"systemInstruction": map[string]any{"parts": []any{map[string]any{"text": systemText}}},
"tools": []any{map[string]any{"functionDeclarations": []any{map[string]any{"name": "workspace", "description": toolsText, "parameters": map[string]any{"type": "object"}}}}},
"contents": contents, "generationConfig": map[string]any{"maxOutputTokens": 256},
}
default:
return nil, fmt.Errorf("cachebench: unsupported trace provider %q", provider.Provider)
}
return json.Marshal(body)
}
func anthropicMessage(message agentMessage) map[string]any {
switch message.Kind {
case "assistant_tool":
return map[string]any{"role": "assistant", "content": []any{map[string]any{
"type": "tool_use", "id": fmt.Sprintf("call-%03d", message.Turn), "name": "workspace", "input": map[string]any{},
}}}
case "tool_result":
return map[string]any{"role": "user", "content": []any{map[string]any{
"type": "tool_result", "tool_use_id": fmt.Sprintf("call-%03d", message.Turn), "content": message.Text,
}}}
default:
return map[string]any{"role": "user", "content": message.Text}
}
}View on GitHub (pinned to 27d5a3981a)
Solutions
- Use a supported trace provider.
When it happens
Trigger: Thrown at cacheengine/cachebench/trace.go:167 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of JuliusBrussee/caveman@27d5a3981a (2026-08-15).
Data as JSON: /api/errors/12403fb0dcf86d1a.
Report an issue: GitHub.