-
Notifications
You must be signed in to change notification settings - Fork 86
feat(agent): complementation features by RAG for users #850
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
* feat(agent): the complementation feature * logic implementations * logic completion * logic complete 2 * Update packages/agent/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceSchemas.ts Co-authored-by: Copilot <[email protected]> * Update packages/agent/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousPrismaSchemas.ts Co-authored-by: Copilot <[email protected]> * Update packages/agent/src/orchestrate/common/structures/IAutoBePreliminaryGetPreviousInterfaceOperations.ts Co-authored-by: Copilot <[email protected]> * Update packages/agent/src/orchestrate/common/internal/createPreliminaryCollection.ts Co-authored-by: Copilot <[email protected]> * separate and modularize previous prompts * also logic of `validatePreliminary()` * also enhance `complementPreliminaryCollection()` * complete `fixPreliminaryApplication()` * fix style --------- Co-authored-by: Copilot <[email protected]>
* feat(agent): documentation on RAG features * Update packages/agent/src/orchestrate/common/AutoBePreliminaryController.ts Co-authored-by: Copilot <[email protected]> * styling --------- Co-authored-by: Copilot <[email protected]>
* feat(agent): logic of `orchestratePreliminary` * Update packages/agent/src/orchestrate/common/orchestratePreliminary.ts Co-authored-by: Copilot <[email protected]> * Update packages/agent/src/orchestrate/common/orchestratePreliminary.ts Co-authored-by: Copilot <[email protected]> * Update packages/agent/src/orchestrate/common/orchestratePreliminary.ts Co-authored-by: Copilot <[email protected]> * make logic easier * enhance `complementPreliminaryCollection()` * enhance `complementPreliminaryCollection()` again to support realize modularization * fix vunlerables * fix complementPreliminaryCollection again * fix typo * Update packages/agent/src/orchestrate/common/internal/complementPreliminaryCollection.ts Co-authored-by: Copilot <[email protected]> * fix typo * complete --------- Co-authored-by: Copilot <[email protected]>
* feat(agent): description comments of agents * Update packages/agent/src/structures/IAutoBeOrchestrateHistory.ts Co-authored-by: Copilot <[email protected]> * Update packages/agent/src/utils/divideArray.ts Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
* feat(agent): adjust previous RAG to every agents * fixing type errors * fix compilation errors * exact interface function calling schemas * exact prisma function calling schemas * exact analyze function calling schemas * fix analyze logics * fix prisma logics * fix interface logics * fix interface histories * fix prompts * exact description about previous RAG assets * fix one more time * fix prompts * Analyze information from RAG * fix transformPreliminaryHistory * fix prompts again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request introduces comprehensive RAG (Retrieval-Augmented Generation) support for incremental context loading in the AutoBE agent system, enabling agents to reference previously implemented artifacts during complementation cycles. The main enhancement is the addition of "previous" artifact tracking (previousAnalysisFiles, previousPrismaSchemas, previousInterfaceOperations, previousInterfaceSchemas) alongside improved orchestration logic and documentation.
Key Changes:
- Added support for loading previous iteration artifacts to prevent duplication during incremental feature development
- Enhanced AutoBePreliminaryController with dynamic schema adjustment to exclude unavailable "previous" types
- Updated roadmap timelines to reflect completed modularization and complementation phases
Reviewed changes
Copilot reviewed 139 out of 139 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/interface/src/typings/AutoBePreliminaryKind.ts | Added four new preliminary kinds for previous artifacts |
| packages/agent/src/context/AutoBeState.ts | Added previous* fields to track prior phase executions |
| packages/agent/src/factory/createAutoBeState.ts | Implemented logic to extract previous phase histories |
| packages/agent/src/orchestrate/common/AutoBePreliminaryController.ts | Added fixApplication method for dynamic schema adjustment and comprehensive JSDoc |
| packages/agent/src/orchestrate/common/internal/fixPrelminaryApplication.ts | Implemented runtime schema manipulation to remove unavailable previous types |
| packages/agent/src/orchestrate/common/structures/* | Added four new preliminary request types for previous artifacts with detailed documentation |
| packages/agent/src/orchestrate/common/internal/complementPreliminaryCollection.ts | Enhanced to handle previous artifact types and realize modularizations |
| packages/agent/src/orchestrate/common/orchestratePreliminary.ts | Added orchestration handlers for previous artifacts |
| packages/agent/src/orchestrate/common/histories/transformPreliminaryHistory.ts | Updated to generate appropriate system/assistant messages for previous artifacts |
| packages/agent/src/orchestrate/prisma/* | Integrated previousAnalysisFiles and previousPrismaSchemas support |
| packages/agent/src/orchestrate/interface/* | Integrated all four previous artifact types across interface orchestrators |
| packages/agent/src/orchestrate/analyze/* | Added previousAnalysisFiles support to analysis orchestrators |
| packages/agent/src/utils/* | Added comprehensive JSDoc documentation for utility functions |
| packages/agent/src/utils/arrayToRecord.ts | Removed unused utility function |
| packages/agent/prompts/* | Updated prompts to reference "previous version" for step numbering consistency |
| website/src/template/diagrams/AutoBeGammaRoadmap.mdx | Updated roadmap with completed phases and extended recruitment |
| test/src/features/utils/test_predicate_state_message.ts | Added previousPhase fields to test state initialization |
Comments suppressed due to low confidence (1)
packages/agent/src/orchestrate/analyze/structures/IAutoBeAnalyzeScenarioApplication.ts:1
- Corrected spelling of 'accomplished' to 'accomplish'.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This pull request introduces significant improvements to the preliminary context loading and orchestration system in the agent package. The main focus is on enhancing the handling of previously implemented artifacts (analysis files, API operations, TypeScript schemas, and Prisma models) for incremental context loading, improving anti-duplication logic, and making the orchestration controller more robust and well-documented.
The most important changes are:
Preliminary Context Loading and History Handling
previousAnalysisFiles,previousInterfaceOperations, etc.) in the orchestration controller and history transformation logic, enabling the agent to distinguish between already implemented features and new requirements. [1] [2] [3]Controller API and Documentation
AutoBePreliminaryControllerto include comprehensive JSDoc comments for all public methods and constructor properties, improving code clarity and maintainability. [1] [2] [3]Orchestration Pipeline
Project Timeline Update
README.mdto reflect new active dates and extended recruitment period for the AutoBE Developer role.