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 sse;
18mod stream;
19
20// Re-export the most commonly used items at the crate root.
21pub use client::{
22    Client, ConverseBuilder, ConverseInput, ConverseStreamBuilder, GenerateImageBuilder,
23    UploadFileBuilder,
24};
25pub use config::{Config, ConfigBuilder};
26pub use error::{Error, ErrorDetails};
27pub use stream::{ConverseStreamOutputHandle, StreamReceiver};
28pub use types::{
29    CachePointBlock, CachePointType, ContentBlock, ContentBlockDeltaEvent,
30    ContentBlockDeltaPayload, ContentBlockStartEvent, ContentBlockStartPayload,
31    ContentBlockStartToolUse, ContentBlockStopEvent, ConversationRole, ConverseOutput,
32    ConverseOutputEnum, ConverseStreamOutput, GenerateImageOutput, GeneratedImage, ImageBlock,
33    ImageFormat, ImageGenerationUsage, ImageSource, InferenceConfiguration, MediaResolution,
34    Message, MessageBuilder, MessageStartEvent, MessageStopEvent, MetadataEvent, Metrics,
35    StopReason, SystemContentBlock, TokenUsage, Tool, ToolChoice, ToolConfiguration,
36    ToolInputSchema, ToolResultBlock, ToolResultContent, ToolSpecification, ToolUseBlock,
37    UploadFileOutput, VideoBlock, VideoFormat, VideoSource,
38};