feat: AgentCore tool search plugin for Strands Agents#494
Merged
Conversation
notgitika
previously requested changes
May 27, 2026
Contributor
notgitika
left a comment
There was a problem hiding this comment.
thanks for contributing! added some comments
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #494 +/- ##
=======================================
Coverage ? 89.65%
=======================================
Files ? 90
Lines ? 7977
Branches ? 1185
=======================================
Hits ? 7152
Misses ? 524
Partials ? 301
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
8165cda to
287ed95
Compare
efcf4da to
00427b9
Compare
jariy17
previously approved these changes
May 28, 2026
- Rename DefaultIntentProvider to StrandsIntentProvider - Filter to user-only messages to prevent PII leakage - Add configurable system_prompt parameter - Add existing tool check to prevent overwriting static tools - Add missing __init__.py at gateway/integrations/ and gateway/integrations/strands/ - Add module docstrings for ruff compliance
jariy17
previously approved these changes
May 28, 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.
Description of changes:
This pull request introduces the AgentCore Tool Search Plugin for Strands Agents, enabling dynamic semantic tool discovery from AgentCore Gateway based on conversation intent.
AgentCore Tool Search Plugin:
AgentCoreToolSearchPluginthat hooks intobefore_invocationto derive user intent from conversation history, search the gateway viax_amz_bedrock_agentcore_search, and dynamically register matching tools into the agent. (src/bedrock_agentcore/gateway/integrations/strands/plugins/agentcore_tool_search/plugin.py)IntentProviderabstract interface for pluggable intent derivation strategies. (src/bedrock_agentcore/gateway/integrations/strands/plugins/agentcore_tool_search/intent_providers/intent_provider.py)DefaultIntentProviderwhich uses an LLM to classify the last N messages into a concise intent string, with support for explicit model override or automatic reuse of the agent's model. (src/bedrock_agentcore/gateway/integrations/strands/plugins/agentcore_tool_search/intent_providers/default_intent_provider.py)Documentation and Examples:
src/bedrock_agentcore/gateway/integrations/strands/plugins/agentcore_tool_search/README.md)Testing and Validation:
tests/bedrock_agentcore/gateway/integrations/strands/test_agentcore_tool_search_plugin.py,tests/bedrock_agentcore/gateway/integrations/strands/test_intent_providers.py)tests_integ/gateway/integrations/test_agentcore_tool_search_plugin.py,tests_integ/gateway/integrations/lambda_function/lambda_function.py)By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.