Skip to content

feat: upgrade finance assistant models and fix deploy scripts#56

Merged
lucaslangwagenbinbash merged 5 commits intomasterfrom
feat/finance-assistant-model-upgrade-and-fixes
Mar 30, 2026
Merged

feat: upgrade finance assistant models and fix deploy scripts#56
lucaslangwagenbinbash merged 5 commits intomasterfrom
feat/finance-assistant-model-upgrade-and-fixes

Conversation

@Alx-binbash
Copy link
Copy Markdown
Contributor

What?

  • Upgrade orchestrator model from Claude Sonnet 4.5 to Nova 2 Lite for faster routing and reduced Bedrock throttling
  • Upgrade budget agent model from Claude Sonnet 4.5 to Claude Sonnet 4.6 for improved financial analysis
  • Fix deploy script bugs that caused wrong agent ARN in SSM Parameter Store
  • Add stale agent cleanup to prevent .bedrock_agentcore.yaml residual entries
  • Fix deprecated [tool.uv] dev-dependencies format in pyproject.toml

Why?

  • The previous all-Sonnet-4.5 setup caused ServiceUnavailableException: Too many connections throttling when orchestrator and sub-agents competed for Bedrock connections
  • Using Nova 2 Lite for orchestration reduces concurrent Claude connections while maintaining routing quality
  • post_agent_deploy.py was publishing the wrong agent ARN to SSM (stale main entry instead of finance_personal_assistant) because it used next(iter()) instead of respecting default_agent
  • launch.sh used system python3 (missing pyyaml) instead of uv run python from the project virtualenv
  • configure.sh didn't clean up residual agent entries from previous agentcore configure runs with different names

References

Migrate to PEP 735 dependency groups format which uv now expects,
removing the deprecation warning on every uv command.
- launch.sh: use `uv run python` instead of system `python3` so pyyaml
  is available from the project virtualenv
- post_agent_deploy.py: use `default_agent` from YAML to select the
  correct agent ARN instead of blindly taking the first dict entry,
  which picked a stale 'main' agent over 'finance_personal_assistant'
The agentcore CLI appends new agent entries but never removes old ones.
A previous run with a different name (e.g. default 'main') would leave
residual entries that confused post-deploy SSM publishing. configure.sh
now removes any agent entry that doesn't match the expected agent name.
…t agent

- Add NOVA_2_LITE and CLAUDE_SONNET_46 to BedrockModelCatalog with
  verified inference profile IDs from Bedrock
- Orchestrator (main.py): switch from Claude Sonnet 4.5 to Nova 2 Lite
  for faster routing and reduced Bedrock throttling
- Budget agent: switch from Claude Sonnet 4.5 to Claude Sonnet 4.6
  for improved reasoning on financial analysis
- Restore finance_personal_assistant entry in agents.yaml (was removed)
- Sync pending chat-agent and UI app changes
@lucaslangwagenbinbash lucaslangwagenbinbash merged commit a70c112 into master Mar 30, 2026
4 checks passed
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.

2 participants