Expand description
Foundational shared types used across every API resource.
| Type | Purpose |
|---|---|
ModelId | String-newtype for model identifiers; common models as associated constants |
Role | user / assistant message role |
Usage | Token counts returned with every Message response |
StopReason | Why the model stopped generating (end_turn, max_tokens, tool_use, …) |
ServiceTier | standard / priority / batch service tier on the response |
Structs§
- Cache
Creation Breakdown - Per-TTL breakdown of cache-creation tokens.
- ModelId
- Identifier for a Claude model.
- Server
Tool UseUsage - Counters for server-side tool invocations billed on this request.
- Usage
- Token usage and related counters returned on every response.
Enums§
- Role
- Conversation role for a message.
- Service
Tier - Service tier reported on a response.
- Stop
Reason - Why the model stopped producing output.