Refactor Agent Orchestrator#3
Conversation
Co-authored-by: pravin-python <90672341+pravin-python@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Refactored the WorkSynapse LangChain orchestrator into a dynamic, modular, and testable architecture.
Key changes:
backend/app/agents/:runtime,orchestrator,providers,tools,rag,memory,prompts,testing.ProviderRouterfor dynamic LLM provider selection.PromptBuilderfor dynamic prompt construction from templates and database.ExecutionLoopusing LangGraph with proper state management (Annotated[list, add_messages]) and MCP tool support.AgentOrchestratorwith security checks and memory integration.AgentRuntimeto handle agent execution requests, fetching configurations and permissions from the database.ToolsandMemoryinto modular components.RAGintoRetriever,EmbeddingService, andDocumentLoader.AgentTester,ToolTester, andProviderTester.PR created automatically by Jules for task 13252202557393851395 started by @pravin-python