feat(agents): add Bedrock provider to AIAgent proto#2402
Merged
Conversation
Add AWS Bedrock as a provider option for AI agents. The Bedrock message includes region (required), and optional access_key_id_secret_ref and secret_access_key_secret_ref fields that accept secret references. When credentials are omitted, the agent falls back to the AWS default credential chain. Frontend changes: - Add 'bedrock' to all provider type unions and switch statements - Add Bedrock entry to PROVIDER_INFO and MODEL_OPTIONS_BY_PROVIDER - Enable Bedrock in LLM_PROVIDER_TYPE_TO_FORM_ID mappings - Add LLM_PROVIDER_TYPE_OPENAI_COMPATIBLE to enum maps (BSR drift) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
The latest Buf updates on your PR. Results from workflow Buf CI / validate (pull_request).
|
birdayz
approved these changes
Apr 21, 2026
simon0191
approved these changes
Apr 21, 2026
birdayz
added a commit
that referenced
this pull request
Apr 22, 2026
PR #2402 added Bedrock to the dataplane proto and the provider dropdown, but the create-page onSubmit switch was never updated. When the user picked a Bedrock-typed LLM gateway provider, the form's `provider` field was set to 'bedrock' via LLM_PROVIDER_TYPE_TO_FORM_ID, fell through to `default // openai`, and shipped `provider:{openai:{}}` with a Bedrock model ID. The aiagent then blew up with "unsupported OpenAI model: anthropic.claude-opus-4-7". Add a bedrock branch that pulls the region off the selected LLMProvider's bedrockConfig (the dataplane proto marks AIAgent.Provider.Bedrock.region as required) and builds the right oneof variant. Gateway-only for now. Direct (non-gateway) Bedrock would need its own region field in the form.
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.
Summary
Bedrockmessage toAIAgent.Provideroneof in v1alpha3 AI agent protoregion(required),access_key_id_secret_ref(optional),secret_access_key_secret_ref(optional)Test plan
proto:generateclean🤖 Generated with Claude Code