feat: Cognito Agent Phase 4 - Extension System#6
Merged
Conversation
- Implemented a runtime extension system using Python files. - Added `ExtensionAPI` for registering tools, backends, and intent routes. - Added `ExtensionRegistry` and `loader` for discovery at Global, Configured, and Project-local levels. - Implemented `HookedTool` to allow extensions to subscribe to `before_tool_call` (with veto power) and `after_tool_call`. - Enhanced `ProjectTrustStore` to support granular trust for extensions. - Modified `BackendRouter` and `SemanticOrchestrator` to be extensible at runtime. - Integrated hooks for `session_start` and `message_end` in the agent loop. - Comprehensive test suite for the extension system. - Added example extension and updated README. Co-authored-by: Axlfc <14998495+Axlfc@users.noreply.github.com>
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.
ExtensionAPIfor registering tools, backends, and intent routes.ExtensionRegistryandloaderfor discovery at Global, Configured, and Project-local levels.HookedToolto allow extensions to subscribe tobefore_tool_call(with veto power) andafter_tool_call.ProjectTrustStoreto support granular trust for extensions.BackendRouterandSemanticOrchestratorto be extensible at runtime.session_startandmessage_endin the agent loop.