Skip to content

Releases: build-on-aws/swift-bedrock-library

1.8.0

26 Nov 10:34
cbb5e47

Choose a tag to compare

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

  • Add Global Cross-Region Inference and Claude Opus 4.5 Support by @sebsto in #63

Full Changelog: 1.7.0...1.8.0

1.7.0

24 Nov 13:50
1ddfa78

Choose a tag to compare

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 both Converse and InvokeModel APIs
  • New ServiceTier parameter available in converse() and completeText() methods
  • New withServiceTier() builder method in ConverseRequestBuilder
  • Enables control over request prioritization and cost optimization

References

Doc:
https://docs.aws.amazon.com/bedrock/latest/userguide/service-tiers-inference.html

Launch:
https://aws.amazon.com/blogs/aws/new-amazon-bedrock-service-tiers-help-you-match-ai-workload-performance-with-cost/

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

21 Oct 07:51
b3a7fb7

Choose a tag to compare

Add support for embeddings, with Titan Embeddings v2 model.
All the infrastructure is now in place to add other embeddings models easily (Cohere,...)

1.5.0

13 Oct 08:11
4b66fb3

Choose a tag to compare

What's Changed

  • Add an error case to handle InvalidGrant exception by @sebsto in #50

Full Changelog: 1.4.0...1.5.0

1.4.0

12 Oct 22:54
eb4abea

Choose a tag to compare

  • Expose Usage and Metrics in the ResponseMetaData. These type were previously internal and not usable from client applications.
  • expose a new InputIsTooLong error 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

12 Oct 18:09
ad70683

Choose a tag to compare

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

  • Expose max prompt size to the model API by @sebsto in #47

Full Changelog: 1.2.0...1.3.0

1.2.0

12 Oct 12:12
f2f1583

Choose a tag to compare

While developing the AgentKit library, we realised that some API changes were required to make the life of developers easier.

  • History is not a type alias of [Message] anymore. It is promoted to its own History top-level struct.
    All functions using [Messages] in their signature are marked deprecated and we have added new functions signatures with History.

  • ConverseRequestBuilder is now Sendable. 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

30 Sep 15:23
abad720

Choose a tag to compare

What's Changed

  • Improve JSON by removing Any? by @sebsto in #43
  • fix CI test suite

Full Changelog: 1.1.0...1.1.1

1.1.0

29 Sep 20:50
8c38668

Choose a tag to compare

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

1.0.1

20 Aug 20:38
8088ade

Choose a tag to compare

What's Changed

  • Fix iOS demo by updating project.pbxproj with correct dependencies by @sebsto in #39

Full Changelog: 1.0.0...1.0.1