anthropic-types 0.1.42

Type definitions for Anthropic API communication
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Anthropic API Types Library
//
// This crate provides type definitions for interacting with the Anthropic API
// and is intended to be used by Theater actors that need to communicate with Claude.

pub mod errors;
pub mod messages;
pub mod models;
pub mod tool_choice;

// Re-export main types for convenience
pub use errors::AnthropicError;
pub use messages::{
    AnthropicRequest, AnthropicResponse, CompletionRequest, CompletionResponse, Message,
    MessageContent, ResponseStatus, Usage,
};
pub use models::{ModelInfo, ModelPricing};
pub use tool_choice::ToolChoice;