Expand description
Claude Rust SDK
This SDK provides a way to interact with the Claude API using a simple builder pattern.
Structs§
- Claude
Request - Represents a complete request to the Claude API.
- Claude
Request Builder - Builder for creating a request to the Claude API.
- Claude
Response - Represents the response from the Claude API.
- Image
Source - Represents the source of an image in a message.
- Input
Schema - Represents the JSON-Schema input
- Message
- Represents a message in a conversation.
- Tool
- Represents a tool that can be used by the model.
- Tool
Result - Represents the result of a tool execution.
- ToolUse
- Represents the model’s use of a tool.
- Usage
- Represents the usage statistics for an API call.
Enums§
- Content
Type - Represents the type of content in a message.
- Model
- Available Claude Models.
- Role
- Represents the role of a message in a conversation.
- Stop
Reason - Represents the stopping reason in the API response.
- Tool
Choice - Represents how the model should use the provided tools.
Traits§
- Tool
Builder - Trait for creating a tool with a struct-based input schema.