Skip to main content

Crate audacity_sdk

Crate audacity_sdk 

Source
Expand description

§audacity-sdk

Rust SDK for the Audacity Investments AI gateway. Exposes an Amazon Bedrock Converse–shaped API on top of the Audacity OpenAI-compatible chat completions endpoint, so that teams migrating off Bedrock can swap the client construction + API key and keep the rest of their code.

See the README for quickstart examples.

Re-exports§

pub use types::CachePointBlock;
pub use types::CachePointType;
pub use types::ContentBlock;
pub use types::ContentBlockDeltaEvent;
pub use types::ContentBlockDeltaPayload;
pub use types::ContentBlockStartEvent;
pub use types::ContentBlockStartPayload;
pub use types::ContentBlockStartToolUse;
pub use types::ContentBlockStopEvent;
pub use types::ConversationRole;
pub use types::ConverseOutput;
pub use types::ConverseOutputEnum;
pub use types::ConverseStreamOutput;
pub use types::GenerateImageOutput;
pub use types::GeneratedImage;
pub use types::ImageBlock;
pub use types::ImageFormat;
pub use types::ImageGenerationUsage;
pub use types::ImageSource;
pub use types::InferenceConfiguration;
pub use types::MediaResolution;
pub use types::Message;
pub use types::MessageBuilder;
pub use types::MessageStartEvent;
pub use types::MessageStopEvent;
pub use types::MetadataEvent;
pub use types::Metrics;
pub use types::StopReason;
pub use types::SystemContentBlock;
pub use types::TokenUsage;
pub use types::Tool;
pub use types::ToolChoice;
pub use types::ToolConfiguration;
pub use types::ToolInputSchema;
pub use types::ToolResultBlock;
pub use types::ToolResultContent;
pub use types::ToolSpecification;
pub use types::ToolUseBlock;
pub use types::UploadFileOutput;
pub use types::VideoBlock;
pub use types::VideoFormat;
pub use types::VideoSource;

Modules§

types
Types mirroring the Amazon Bedrock Converse SDK surface.

Structs§

ChatCompletions
client.chat_completions() — OpenAI-format pass-through (spec §9).
Client
The Audacity SDK client.
Config
Resolved SDK configuration.
ConfigBuilder
Builder for Config.
ConverseBuilder
Fluent builder for converse.
ConverseInput
The canonical input for both converse and converse_stream.
ConverseStreamBuilder
Fluent builder for converse_stream.
ConverseStreamOutputHandle
Handle returned by converse_stream().send().await.
ErrorDetails
Details carried by every server-derived error variant.
GenerateImageBuilder
Fluent builder for generate_image (spec §8).
Messages
client.messages() — Anthropic-format pass-through (spec §9).
RawEventStream
Stream of raw provider events returned by the §9 create_stream calls.
StreamReceiver
The receiving end of the stream channel.
UploadFileBuilder
Fluent builder for upload_file (spec §6).

Enums§

Error
The SDK error type — all variants mirror the spec §4 exception taxonomy.