Repository navigation
Stateful Graph DSL, CrewAI Agentic Metaphors, Secure Enterprise Toolb… - #10
Open
Shekharmaheswari85 wants to merge 2 commits into
Open
Shekharmaheswari85 wants to merge 2 commits into
Shekharmaheswari85 wants to merge 2 commits into
Conversation
…elt & Virtual Thread Orchestration
This branch has not been deployed
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.
🎯 Purpose and Scope
This PR introduces enterprise-scale enhancements to the
relay-orchestratorlibrary, competing directly with Python-heavy frameworks (CrewAI, LangGraph, and LangChain) while remaining idiomatic to Spring Boot, Spring AI, and Java patterns. It adds a stateful graph workflow DSL, a multi-agent hierarchy system, pre-packaged secure enterprise tools, virtual-thread concurrency, Actuator diagnostics, and complete documentation.🚀 Key Implementations
1. Stateful Graph DSL (LangGraph-style)
StateGraph<S>and thread-safeCompiledGraph<S>execution machines running node transitions on Java 21 Virtual Threads (Project Loom)..addEdge), and dynamic runtime routing via conditional edges (.addConditionalEdge).GraphInterceptor<S>andDefaultDbSavingInterceptor<S>which serializes node execution state changes using Jackson to support time-travel state rollbacks and historical checkpoints."WAIT_FOR_APPROVAL") with a.resume(state)portal.2. Agentic Metaphors (CrewAI-style)
RelayAgent(with role, goal, backstory, and tools properties),RelayTask, andRelayCrewsequential/parallel kickoff orchestrators returning reactive streams.AgentPersonaAdvisorto compile agent goals and backstories automatically, injecting them into Spring AIChatClientsystem prompts.3. Production-Grade Enterprise Toolbelt
JdbcTemplateas an optional dependency and implements a security guardrail allowing only read-onlySELECTqueries to prevent SQL injection mutations.HttpClient, ensuring zero external dependency overhead.System.getProperty("user.dir").4. Process Engine & Diagnostics
HierarchicalProcessEngineto execute tasks concurrently on Java Virtual Threads.GraphDiagnosticsCollectorexposed under Spring Actuator (/actuator/relaydiagnostics) to track node latencies, traversal counts, and token telemetry metrics.5. Documentation
🧪 Verification & Testing
All modules compile cleanly and the test suite passes successfully:
mvn clean test