Fix: Centralize BasePrompt and resolve import issues across notebooks#33
Open
ManojRamani wants to merge 2 commits intoaws-samples:mainfrom
Open
Fix: Centralize BasePrompt and resolve import issues across notebooks#33ManojRamani wants to merge 2 commits intoaws-samples:mainfrom
ManojRamani wants to merge 2 commits intoaws-samples:mainfrom
Conversation
added 2 commits
February 18, 2026 20:33
This commit addresses issue aws-samples#21 by fixing the BasePrompt import issues and improving the notebook infrastructure. Changes: - Centralized BasePrompt: All notebooks now import from agentic_platform.core.models.prompt_models instead of local utils - Added missing methods to central BasePrompt: * to_bedrock_messages() for message formatting * to_bedrock_system() for system prompt formatting - Removed deprecated labs/module2/notebooks/utils/base_prompt.py - Fixed import order in agentcore_tool_browser notebook - Added nova-act>=0.1.0 dependency to pyproject.toml - Updated module4 README with API key setup instructions for Tavily and Nova Act - Added .gitattributes for nbstripout to handle notebook metadata - Fixed ActResult handling in browser tool for proper result extraction Notebooks updated: - labs/module2/notebooks/3_routing.ipynb - labs/module2/notebooks/4_parallelization.ipynb - labs/module2/notebooks/5_orchestrator.ipynb - labs/module2/notebooks/6_evaluator_optimizer.ipynb - labs/module4/notebooks/2_multi-agent-delegation.ipynb - labs/module4/notebooks/5_agentcore_tool_browser.ipynb
This was referenced Feb 19, 2026
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.
This commit addresses issue #21 by fixing the BasePrompt import issues and improving the notebook infrastructure.
Changes:
Notebooks updated:
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.