Skip to main content

audacity_sdk/
lib.rs

1//! # audacity-sdk
2//!
3//! Rust SDK for the Audacity Investments AI gateway.
4//! Exposes an **Amazon Bedrock Converse–shaped API** on top of the Audacity
5//! OpenAI-compatible chat completions endpoint, so that teams migrating off
6//! Bedrock can swap the client construction + API key and keep the rest of
7//! their code.
8//!
9//! See the [README](https://portal.audacityinvestments.com) for quickstart examples.
10
11pub mod types;
12
13mod client;
14mod config;
15mod error;
16mod mapping;
17mod passthrough;
18mod sse;
19mod stream;
20
21// Re-export the most commonly used items at the crate root.
22pub use client::{
23    Client, ConverseBuilder, ConverseInput, ConverseStreamBuilder, GenerateImageBuilder,
24    UploadFileBuilder,
25};
26pub use config::{Config, ConfigBuilder};
27pub use error::{Error, ErrorDetails};
28pub use passthrough::{ChatCompletions, Messages, RawEventStream};
29pub use stream::{ConverseStreamOutputHandle, StreamReceiver};
30pub use types::{
31    CachePointBlock, CachePointType, ContentBlock, ContentBlockDeltaEvent,
32    ContentBlockDeltaPayload, ContentBlockStartEvent, ContentBlockStartPayload,
33    ContentBlockStartToolUse, ContentBlockStopEvent, ConversationRole, ConverseOutput,
34    ConverseOutputEnum, ConverseStreamOutput, GenerateImageOutput, GeneratedImage, ImageBlock,
35    ImageFormat, ImageGenerationUsage, ImageSource, InferenceConfiguration, MediaResolution,
36    Message, MessageBuilder, MessageStartEvent, MessageStopEvent, MetadataEvent, Metrics,
37    StopReason, SystemContentBlock, TokenUsage, Tool, ToolChoice, ToolConfiguration,
38    ToolInputSchema, ToolResultBlock, ToolResultContent, ToolSpecification, ToolUseBlock,
39    UploadFileOutput, VideoBlock, VideoFormat, VideoSource,
40};