feat(agent): Add open-source BaseAgent utilizing MCP Executor composition#209
Open
Dev-Scodes5 wants to merge 1 commit intoIBM:mainfrom
Open
feat(agent): Add open-source BaseAgent utilizing MCP Executor composition#209Dev-Scodes5 wants to merge 1 commit intoIBM:mainfrom
Dev-Scodes5 wants to merge 1 commit intoIBM:mainfrom
Conversation
…outing Signed-off-by: Sheraz Arshad <vectorvitalityfit@gmail.com>
edffdf5 to
9511a6b
Compare
Collaborator
|
@Dev-Scodes5 I have revised the git issue. It brings more clarity on what we now call a base agent. |
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.
Fixes #196
Adds the foundational architecture for standalone open-source agents.
Instead of directly inheriting from
workflow.Executor(which is tightly coupled toPlanSteplogic), this approach uses composition. TheBaseAgentwraps the executor to handle the underlying MCPstdioconnections and tool routing. This leaves the agent completely independent to implement its own autonomous reasoning loop (e.g., ReAct, Claude Code).Changes:
Created
src/agent/base_agent.pycontaining theBaseAgentclass and acall_tool()wrapper.Added
src/agent/README.mdto guide users on how to inherit from this base class and add their own components.Testing:
Ran
uv run pytest src/ -v -k "not integration". All base tests pass. (Note: the 1 failure inTestHistoryis just my local environment missing the CouchDB Docker fixture, entirely isolated from this module).