rai-sdk 0.2.0

Rust AI SDK — unified client for OpenAI, Anthropic, and OpenRouter with typed models, structured output, tool calling, and streaming
Documentation
1
2
3
4
5
6
7
8
9
{
  "error": {
    "kind": "rate_limit",
    "message": "rate limit exceeded for anthropic: too many requests",
    "provider": "anthropic",
    "retryable": true
  },
  "type": "error"
}