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::ImageBlock;
pub use types::ImageFormat;
pub use types::ImageSource;
pub use types::InferenceConfiguration;
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;

Modules§

types
Types mirroring the Amazon Bedrock Converse SDK surface.

Structs§

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.
StreamReceiver
The receiving end of the stream channel.

Enums§

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