AWS: Refactor provider to use Bedrock Converse API#171
Merged
ClickerMonkey merged 21 commits intomainfrom Apr 4, 2026
Merged
Conversation
Closed
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
…ptions Agent-Logs-Url: https://github.com/ClickerMonkey/aeye/sessions/572e69b6-be85-4ee7-a3e5-9c179468a7f4 Co-authored-by: ClickerMonkey <421233+ClickerMonkey@users.noreply.github.com>
…es from suspend event Agent-Logs-Url: https://github.com/ClickerMonkey/aeye/sessions/05b72ef8-96ec-4c3f-8866-9a77784d8189 Co-authored-by: ClickerMonkey <421233+ClickerMonkey@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ClickerMonkey/aeye/sessions/cc5a0ce5-7c4f-4bce-bdb6-648d5c6281e2 Co-authored-by: ClickerMonkey <421233+ClickerMonkey@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ClickerMonkey/aeye/sessions/cc5a0ce5-7c4f-4bce-bdb6-648d5c6281e2 Co-authored-by: ClickerMonkey <421233+ClickerMonkey@users.noreply.github.com>
…use-resume feat(core): Add PromptSuspend for prompt pause/resume at tool call boundaries
…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>
Agent-Logs-Url: https://github.com/ClickerMonkey/aeye/sessions/12b2bfb3-4075-4b31-b582-dd3e11e222c3 Co-authored-by: ClickerMonkey <421233+ClickerMonkey@users.noreply.github.com>
…ADME Agent-Logs-Url: https://github.com/ClickerMonkey/aeye/sessions/8342bde8-a543-4014-922e-54b8d7406121 Co-authored-by: ClickerMonkey <421233+ClickerMonkey@users.noreply.github.com>
Agent-Logs-Url: https://github.com/ClickerMonkey/aeye/sessions/7172b177-599a-4440-a3f7-981dd87aaff5 Co-authored-by: ClickerMonkey <421233+ClickerMonkey@users.noreply.github.com>
…-root-core-ai Update root, core, and ai package READMEs with correct types and examples
Agent-Logs-Url: https://github.com/ClickerMonkey/aeye/sessions/f9ae043b-e57a-411d-a2b1-6a78c7e125df Co-authored-by: ClickerMonkey <421233+ClickerMonkey@users.noreply.github.com>
…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>
…ithub.com/ClickerMonkey/aeye into copilot/refactor-aws-package-converse-api
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