Skip to content

[Enhancement]: Swift Bedrock code examples #7337

Open
@sebsto

Description

@sebsto

Background story

I'm a Developer Advocate, working with @DennisTraub and mentoring a student @monadierickx that currently works building a swift code library, on top of the AWS SDK for Swift to make it easier for Swift developers to use the Bedrock API.

Based on this work, we will submit Swift SDK code samples to be added to the documentation.

Here is our priority / list of samples

  • InvokeModel and InvokeModelWithResonseStream API for recent version of Claude (3.7 Sonnet) and Nova (Canvas and Reel) . Text and Image modality
  • Converse and ConverseStream API with text and image. (same model)

Questions

  • is there other API that should be top priority ?
  • is there other model that should be stop priority

What does this example accomplish?

Demonstrate how to use latest generation model for text and image generation, using either the InvokeModel or the Converse API

Which AWS service(s)?

Amazon Bedrock

Which AWS SDKs or tools?

  • All languages
  • .NET
  • C++
  • Go (v2)
  • Java
  • Java (v2)
  • JavaScript
  • JavaScript (v3)
  • Kotlin
  • PHP
  • Python
  • Ruby
  • Rust
  • Swift
  • Not applicable

Are there existing code examples to leverage?

We're working on a small library that would make easier for developers to use Bedrock models in Swift.

The proposed code sample for the doc will be based on the raw AWS SDK Swift constructs provided.
https://github.com/build-on-aws/swift-fm-playground

Do you have any reference code?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions