AWS: Refactor provider to use Bedrock Converse API#171
Draft
Conversation
Agent-Logs-Url: https://github.com/ClickerMonkey/aeye/sessions/f9ae043b-e57a-411d-a2b1-6a78c7e125df Co-authored-by: ClickerMonkey <421233+ClickerMonkey@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ClickerMonkey/aeye/sessions/f9ae043b-e57a-411d-a2b1-6a78c7e125df Co-authored-by: ClickerMonkey <421233+ClickerMonkey@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor AWS package to use Converse API for model calls
AWS: Refactor provider to use Bedrock Converse API
Mar 31, 2026
…alls Agent-Logs-Url: https://github.com/ClickerMonkey/aeye/sessions/d86cdff7-5cb9-48b8-a837-5dbac543aaf1 Co-authored-by: ClickerMonkey <421233+ClickerMonkey@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The AWS provider had three separate model-family-specific implementations (Anthropic/Claude, Llama/Mistral, Cohere), each with their own request/response format. The Converse API provides a unified interface across all Bedrock chat models.
Changes
Unified chat execution (
aws.ts)executeAnthropicModel,executeLlamaStyleModel,executeCohereModel(and their streaming counterparts + all helper methods) with a singleexecuteWithConverse()/streamWithConverse()pairconvertRequestToConverse()pipeline rather than three divergent pathsInvokeModelCommand | InvokeModelWithResponseStreamCommand→ConverseCommand | ConverseStreamCommandanthropic-specific config block (version,beta,emptyMessage) — not applicable to the Converse APIisModelInfofrom wrong path, unusedhttpmodule, Anthropic SDK types)reasoningContentblocks natively via Converse API eventsCapability detection (
common.ts)toolscapability to Llama 3.1+, Mistral Large, and Cohere Command R — models that support tool use via the Converse API but were previously excludedRemoved dependency
@anthropic-ai/sdkdevDependency dropped; Anthropic-specific SDK types are no longer needed