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§
- Client
- The Audacity SDK client.
- Config
- Resolved SDK configuration.
- Config
Builder - Builder for
Config. - Converse
Builder - Fluent builder for
converse. - Converse
Input - The canonical input for both
converseandconverse_stream. - Converse
Stream Builder - Fluent builder for
converse_stream. - Converse
Stream Output Handle - Handle returned by
converse_stream().send().await. - Error
Details - Details carried by every server-derived error variant.
- Generate
Image Builder - Fluent builder for
generate_image(spec §8). - Stream
Receiver - The receiving end of the stream channel.
- Upload
File Builder - Fluent builder for
upload_file(spec §6).
Enums§
- Error
- The SDK error type — all variants mirror the spec §4 exception taxonomy.