@turingpulse/sdk-bedrock
v1.3.0
Published
TuringPulse SDK integration for AWS Bedrock
Readme
@turingpulse/sdk-bedrock
TuringPulse SDK integration for AWS Bedrock (TypeScript) — automatic tracing for Bedrock Converse API.
Installation
npm install @turingpulse/sdk @turingpulse/sdk-bedrock @aws-sdk/client-bedrock-runtimeQuick Start
import { BedrockRuntimeClient, ConverseCommand } from '@aws-sdk/client-bedrock-runtime';
import { init } from '@turingpulse/sdk';
import { patchBedrock } from '@turingpulse/sdk-bedrock';
init({ apiKey: process.env.TP_API_KEY!, workflowName: 'my-project' });
patchBedrock({ name: 'my-project' });
const client = new BedrockRuntimeClient({ region: 'us-east-1' });
const response = await client.send(new ConverseCommand({
modelId: 'anthropic.claude-3-sonnet-20240229-v1:0',
messages: [{ role: 'user', content: [{ text: 'Hello!' }] }],
}));Documentation
Full documentation: turingpulse.ai/docs/sdk/bedrock
Requirements
- Node.js >= 18
- @turingpulse/sdk >= 1.0.0
