@namzu/bedrock
v5.1.0
Published
AWS Bedrock LLM provider for @namzu/sdk. Provides Converse API (chat + streaming) with full tool-use support.
Readme
The Bedrock model driver for Namzu.
Install · Usage · Documentation
Implements the kernel's LLMProvider interface over AWS Bedrock, carrying
the region and credential semantics natively rather than as a base-URL
override. Installed only if you use it — the kernel has no preferred vendor
and no driver is a dependency of it.
Install
pnpm add @namzu/sdk @namzu/bedrock@namzu/sdk is a peer dependency. Install both.
Usage
import { ProviderRegistry } from '@namzu/sdk'
import { registerBedrock } from '@namzu/bedrock'
registerBedrock() // once, at startup
const { provider } = ProviderRegistry.create({
type: 'bedrock',
region: 'us-east-1',
})
for await (const chunk of provider.chatStream({
model: 'us.anthropic.claude-sonnet-4-5-20250929-v1:0',
messages: [{ role: 'user', content: 'Hello' }],
})) {
if (chunk.delta.content) process.stdout.write(chunk.delta.content)
}chatStream is the only model entry point; a non-streaming call is that
stream collected. In practice the kernel's run loop calls it and hands you
events.
Documentation
License
FSL-1.1-MIT, converting to MIT two years after each release.
