Skip to content

Conversation

@Ashutosh0x
Copy link

Summary

This PR adds ool_runner, parse, and stream method aliases to both Messages and AsyncMessages classes in the Bedrock beta module.

Motivation

Fixes #1106

The ool_runner API (client.beta.messages.tool_runner()) was not available on the AnthropicBedrock or AsyncAnthropicBedrock clients. This creates feature parity for enterprise AWS Bedrock users.

Changes

Added method aliases to src/anthropic/lib/bedrock/_beta_messages.py:

  • ool_runner - Automatic tool execution loop
  • parse - Structured output parsing
  • stream - Streaming message helpers

Checklist

  • Changes follow existing code patterns
  • No breaking changes
  • Commit follows conventional format

…sages

Adds method aliases for tool_runner, parse, and stream to both
Messages and AsyncMessages classes in the Bedrock beta module.

This provides feature parity between the first-party Anthropic client
and the AnthropicBedrock client, enabling enterprise AWS Bedrock users
to use:
- Automatic tool execution loops (tool_runner)
- Structured output parsing (parse)
- Streaming message helpers (stream)

Fixes anthropics#1106
@Ashutosh0x Ashutosh0x requested a review from a team as a code owner January 7, 2026 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add tool_runner support for AnthropicBedrock client

1 participant