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
{
  "type": "usage",
  "usage": {
    "completion_tokens": 256,
    "prompt_tokens": 1024,
    "total_tokens": 1280
  }
}