Skip to content

feat(agents): add Bedrock provider to AIAgent proto#2402

Merged
alenkacz merged 1 commit intomasterfrom
av/bedrock-agent-provider
Apr 21, 2026
Merged

feat(agents): add Bedrock provider to AIAgent proto#2402
alenkacz merged 1 commit intomasterfrom
av/bedrock-agent-provider

Conversation

@alenkacz
Copy link
Copy Markdown
Contributor

Summary

  • Add Bedrock message to AIAgent.Provider oneof in v1alpha3 AI agent proto
  • Fields: region (required), access_key_id_secret_ref (optional), secret_access_key_secret_ref (optional)
  • When credentials are omitted, the agent falls back to the AWS default credential chain
  • Frontend: add Bedrock to provider type unions, PROVIDER_INFO, model presets, LLM_PROVIDER_TYPE_TO_FORM_ID

Test plan

  • proto:generate clean
  • type-check passes
  • cloudv2 consumes new BSR SHA and compiles

🤖 Generated with Claude Code

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>
@github-actions
Copy link
Copy Markdown
Contributor

The latest Buf updates on your PR. Results from workflow Buf CI / validate (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedApr 21, 2026, 11:31 AM

@alenkacz alenkacz requested a review from simon0191 April 21, 2026 11:34
@alenkacz alenkacz merged commit ac42d14 into master Apr 21, 2026
27 checks passed
@alenkacz alenkacz deleted the av/bedrock-agent-provider branch April 21, 2026 11:48
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.
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.

3 participants