Releases: build-on-aws/swift-bedrock-library
1.8.0
This release introduces global cross-region inference capability for Claude v4.5 models, adds support for Claude Opus 4.5, and includes a new InvokeModel example.
What's Changed
Full Changelog: 1.7.0...1.8.0
1.7.0
This release adds support for the newly launched Service Tier.
Amazon Bedrock offers three service tiers for model inference: Priority, Standard, and Flex. The Priority tier delivers the fastest response times for a price premium over standard on-demand pricing. It is best suited for mission-critical applications like customer-facing chatbots and real-time language translation services. The Standard tier provides consistent performance for everyday AI tasks, ideal for content generation, text analysis, and routine document processing. For workloads that can handle longer processing times, the Flex tier offers cost-effective processing for a pricing discount, perfect for model evaluations, content summarization, agentic workflows.
New API
Converse
let bedrock = try await BedrockService(
region: .uswest2,
)
var builder = try ConverseRequestBuilder(with: .openai_gpt_oss_20b)
.withPrompt("Who are you?")
.withServiceTier(.priority)
var reply = try await bedrock.converse(with: builder)InvokeModel (text)
let bedrock = try await BedrockService(
region: .uswest2,
)
let textCompletion = try await bedrock.completeText(
"Who are you?",
with: .openai_gpt_oss_20b,
serviceTier: .default
)Changes
- Added support for AWS Bedrock service tier selection (
.default,.priority,.flex) for bothConverseandInvokeModelAPIs - New
ServiceTierparameter available inconverse()andcompleteText()methods - New
withServiceTier()builder method inConverseRequestBuilder - Enables control over request prioritization and cost optimization
References
Doc:
https://docs.aws.amazon.com/bedrock/latest/userguide/service-tiers-inference.html
What's Changed (automatically generated)
- Move the doc to Swift docc by @sebsto in #53
- Add docc on a github page by @sebsto in #54
- Fix error on doc action by @sebsto in #55
- Fix Doc GH Action by @sebsto in #56
- New Embedding Example by @sebsto in #57
- Add basic support for agent runtime by @sebsto in #58
- Bump glob from 10.4.5 to 10.5.0 in /Examples/web-playground/frontend by @dependabot[bot] in #59
- Add support for ServiceTier by @sebsto in #61
- Rework converse streaming files and add servicetier to streaming by @sebsto in #62
Full Changelog: 1.6.0...1.7.0
1.6.0
1.5.0
1.4.0
- Expose
UsageandMetricsin theResponseMetaData. These type were previously internal and not usable from client applications. - expose a new
InputIsTooLongerror based on Bedrock's ValidationError - expose some properties as public
- add functions to History
- add precondition checks on
ConverseRequestBuilder.withHistory()
What's Changed
- Expose usage and metrics in metadata by @sebsto in #48
- Add new error cases and fix properties access & history by @sebsto in #49
Full Changelog: 1.3.0...1.4.0
1.3.0
Expose max prompt size to the BedrockModel API.
This allows agent and client applications to track the size of the history sent to the model and to take action when we're getting close to the maximum prompt size supported.
What's Changed
Full Changelog: 1.2.0...1.3.0
1.2.0
While developing the AgentKit library, we realised that some API changes were required to make the life of developers easier.
-
Historyis not a type alias of[Message]anymore. It is promoted to its ownHistorytop-level struct.
All functions using[Messages]in their signature are marked deprecated and we have added new functions signatures withHistory. -
ConverseRequestBuilderis nowSendable. It allows user to pass it between isolation boundaries.
We took the occasion to iron out the JSON structure as well. It doesn't use Any (which is unsafe) anymore.
What's Changed
- Try to fix compiler crash when running JSONTest by @sebsto in #44
- [fix] JSON encoding did not remove the top level "value" by @sebsto in #45
- API Changes to create AgentKit by @sebsto in #46
Full Changelog: 1.1.1...1.2.0
1.1.1
1.1.0
What's Changed
- Add support for claude sonnet 4.5 by @sebsto in #42
- A couple of minor API changes around Sendable and Encodable by @sebsto in #41
- Bump next from 15.2.4 to 15.4.7 in /Examples/web-playground/frontend by @dependabot[bot] in #40
Full Changelog: 1.0.1...1.1.0