Skip to main content

1. Configure Bedrock in Freeplay App

Configure Bedrock as a provider in your Freeplay account by going to Models -> Toggle on Bedrock -> Deploy a prompt with Bedrock

2. Import Anthropic Bedrock Client

Anthropic offers a specific Bedrock client in their SDK

3. Create a Bedrock Client

Instantiate your Bedrock client using the anthropic SDK

4. Fetch and Format Prompt

Retrieve a formatted prompt from freeplay

5. Call Bedrock Model

Call your Bedrock model

6. Record to Freeplay

Record the interaction back to freeplay

Examples