Crate tyrell

Source
Expand description

Claude Rust SDK

This SDK provides a way to interact with the Claude API using a simple builder pattern.

Structs§

ClaudeRequest
Represents a complete request to the Claude API.
ClaudeRequestBuilder
Builder for creating a request to the Claude API.
ClaudeResponse
Represents the response from the Claude API.
ImageSource
Represents the source of an image in a message.
InputSchema
Represents the JSON-Schema input
Message
Represents a message in a conversation.
Tool
Represents a tool that can be used by the model.
ToolResult
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§

ContentType
Represents the type of content in a message.
Model
Available Claude Models.
Role
Represents the role of a message in a conversation.
StopReason
Represents the stopping reason in the API response.
ToolChoice
Represents how the model should use the provided tools.

Traits§

ToolBuilder
Trait for creating a tool with a struct-based input schema.