Skip to content

Replace hardcoded sub-agent prompt with dynamic registry-driven prompt#1337

Open
vibhup wants to merge 1 commit intoawslabs:mainfrom
vibhup:update-discovery-invocation-notebook
Open

Replace hardcoded sub-agent prompt with dynamic registry-driven prompt#1337
vibhup wants to merge 1 commit intoawslabs:mainfrom
vibhup:update-discovery-invocation-notebook

Conversation

@vibhup
Copy link
Copy Markdown

@vibhup vibhup commented Apr 14, 2026

Summary

  • Replaced the hardcoded sub-agent system prompt in the discovery-and-invocation-at-runtime notebook with a dynamic prompt that builds tool descriptions from Registry records at runtime
  • The previous prompt hardcoded specific tool names (get_order_status, update_order, pricing_agent, customer_support_agent), contradicting the notebook's core premise of zero-hardcoded discovery
  • Renamed "AgentCore Registry" to "AWS Agent Registry" in the boto3 version check output

Test plan

  • Verified the dynamic prompt correctly builds tool descriptions from discovered registry records
  • Tested end-to-end: orchestrator discovers and routes to the correct tools/agents without hardcoded names

The orchestrator's inner agent system prompt hardcoded specific tool names
(get_order_status, update_order, pricing_agent, customer_support_agent),
which contradicted the notebook's core premise of zero-hardcoded discovery.

The prompt now builds tool descriptions dynamically from the Registry
records returned at runtime, so newly registered tools/agents are
automatically included without code changes.

Also renamed "AgentCore Registry" to "AWS Agent Registry" in the boto3
version check output.
@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions Bot added the 01-tutorials 01-tutorials label Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

01-tutorials 01-tutorials

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant