TAgent
View on GitHubTAgent 是一个基于 Java 17、Spring Boot、Spring AI 和 DDD 分层构建的 AI Agent 工程实践项目。 它不是只封装一次模型调用,而是覆盖了一次 Agent 请求从接入、路由、运行时装配、规划执行、RAG、记忆、MCP 工具治理、人工审批、执行中干预,到 SSE 流式输出和全链路观测的完整过程。
A Java 17 and Spring AI agent framework covering routing, fixed/auto/flow execution, MCP tool governance, agentic RAG, layered memory, human approval, SSE intervention, and observability. Includes a runnable application and MCP server examples.
Use Cases
Build Java AI agents with fixed, autonomous, or DAG-based executionConnect agents to MCP tools with dynamic discovery and governanceAdd agentic RAG with semantic and BM25 retrievalImplement multi-layer conversation and long-term memoryStream agent runs over SSE with user intervention and human approvalObserve LLM, tool, and agent execution
Built With
- Language
- Java
- Frameworks
- Spring Boot · Spring AI · MCP SDK · MyBatis · Reactor · Resilience4j
Tags
AI agents · agent orchestration · MCP · RAG · agentic RAG · memory · human approval · SSE · observability · Java · DDD