Skip to main content

AWS Bedrock provider for AgentForge — Anthropic, Titan, Cohere on Bedrock

Project description

agentforge-bedrock

AWS Bedrock provider for AgentForge.

Implements the LLMClient and EmbeddingClient contracts from agentforge-core over the AWS Bedrock Converse and embeddings APIs.

Install

uv add agentforge-bedrock

Quickstart

from agentforge import Agent

# Cross-region inference profile — recommended for production.
async with Agent(model="bedrock:us.anthropic.claude-haiku-4-5-20251001-v1:0") as agent:
    result = await agent.run("Summarise the AgentForge project in one sentence.")
    print(result.output)

Credentials follow the standard boto3 chain (env vars, ~/.aws/credentials, IAM role). Pass aws_profile= to override.

Model identifiers

Three forms are supported, all passed through to Bedrock unchanged:

Form Example
Region-pinned bedrock:anthropic.claude-3-5-sonnet-20240620-v1:0
Cross-region (geo) bedrock:us.anthropic.claude-haiku-4-5-20251001-v1:0
Cross-region (global) bedrock:global.anthropic.claude-sonnet-4-5-20250929-v1:0

Cross-region profiles route requests across destination regions automatically, smoothing throttling and improving availability. See Bedrock cross-region inference.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentforge_bedrock-0.2.1-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file agentforge_bedrock-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for agentforge_bedrock-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c94365417f7ded35b7be34e8a661cb172d0d9b4e13ce29dfc658df2d221b37ed
MD5 8624e5c407a54add217acc40f2938d79
BLAKE2b-256 1e93d37f9e04ebe0554ec0a314c79f972c9b8e0754a4479d8a5c1e218d439310

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page