feat(orchestrator): Implement real API orchestration and production networking standards#10
Open
ravindraogg wants to merge 2 commits intoreactome:mainfrom
Open
feat(orchestrator): Implement real API orchestration and production networking standards#10ravindraogg wants to merge 2 commits intoreactome:mainfrom
ravindraogg wants to merge 2 commits intoreactome:mainfrom
Conversation
Replaces the simulated response layer with a functional adapter that interacts directly with the Reactome Content and Analysis REST APIs. Key improvements: - Implemented eal_adapter.py using Python's standard urllib.request. - Added production networking standards: User-Agent headers, 15s timeouts, and comprehensive error handling for API request failures. - Updated executor.py to wire the planning logic into live services. - Refined demo.py to provide a complete trace of real-world biological tasks (search, enrichment, and pathway lookup). - Maintained a zero-dependency architecture for low-friction setup. This change moves the orchestration layer from a conceptual prototype to a functional tool for multi-step biological query execution.
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 PR upgrades the experimental orchestration layer from a mock-based prototype to a functional system that executes multi-step biological queries against the live Reactome REST APIs. This enables the orchestration of real-world biological workflows (Search -> Analysis -> Detailed Lookup) using only the Python standard library.
Key Changes
real_adapter.py: Added a production-ready adapter that interfaces with the Reactome Content Service and Analysis Service.urllib.requestto ensure the orchestrator remains lightweight and has no external dependencies (likerequests), keeping the barrier to entry low for bioinformatics users.reactome-mcp-orchestrator/1.0) for server-side traffic monitoring.executor.pyto use the real adapter as the default, transforming thedemo.pyfrom a simulation into a live diagnostic tool.Verification
I have verified that the
orchestrator/demo.pysuccessfully plans and executes the following patterns against live data:Testing
Run the diagnostic demo to verify live connectivity: