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::{Client, ConverseBuilder, ConverseInput, ConverseStreamBuilder};
22pub use config::{Config, ConfigBuilder};
23pub use error::{Error, ErrorDetails};
24pub use stream::{ConverseStreamOutputHandle, StreamReceiver};
25pub use types::{
26    CachePointBlock, CachePointType, ContentBlock, ContentBlockDeltaEvent,
27    ContentBlockDeltaPayload, ContentBlockStartEvent, ContentBlockStartPayload,
28    ContentBlockStartToolUse, ContentBlockStopEvent, ConversationRole, ConverseOutput,
29    ConverseOutputEnum, ConverseStreamOutput, ImageBlock, ImageFormat, ImageSource,
30    InferenceConfiguration, Message, MessageBuilder, MessageStartEvent, MessageStopEvent,
31    MetadataEvent, Metrics, StopReason, SystemContentBlock, TokenUsage, Tool, ToolChoice,
32    ToolConfiguration, ToolInputSchema, ToolResultBlock, ToolResultContent, ToolSpecification,
33    ToolUseBlock,
34};