feat(ai): replace agent search with skills system#16513
Conversation
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
There was a problem hiding this comment.
1 issue found across 21 files
Prompt for AI agents (all 1 issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="packages/twenty-server/src/engine/core-modules/skills/skills.service.ts">
<violation number="1" location="packages/twenty-server/src/engine/core-modules/skills/skills.service.ts:5">
P2: The `Skill` type duplicates `SkillDefinition` from `./skill-definitions`. Consider reusing the existing type to avoid maintenance issues if the shape changes.</violation>
</file>
Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR
|
|
||
| import { SKILL_DEFINITIONS } from './skill-definitions'; | ||
|
|
||
| export type Skill = { |
There was a problem hiding this comment.
P2: The Skill type duplicates SkillDefinition from ./skill-definitions. Consider reusing the existing type to avoid maintenance issues if the shape changes.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/twenty-server/src/engine/core-modules/skills/skills.service.ts, line 5:
<comment>The `Skill` type duplicates `SkillDefinition` from `./skill-definitions`. Consider reusing the existing type to avoid maintenance issues if the shape changes.</comment>
<file context>
@@ -0,0 +1,43 @@
+
+import { SKILL_DEFINITIONS } from './skill-definitions';
+
+export type Skill = {
+ name: string;
+ label: string;
</file context>
|
🚀 Preview Environment Ready! Your preview environment is available at: http://bore.pub:4386 This environment will automatically shut down when the PR is closed or after 5 hours. |
- Add skills module with predefined skill definitions (workflow-building, data-manipulation, dashboard-building, metadata-building, research) - Replace agent_search tool with load_skill tool for explicit skill loading - Remove specialized agents, keep only helper agent - Add skill catalog to system prompt with names and descriptions - Add recordReferences to workflow creation for chip linking
fa6b5ae to
c7744d2
Compare
c7744d2 to
737ccf9
Compare
|
Hey @FelixMalfait! After you've done the QA of your Pull Request, you can mark it as done here. Thank you! |
# Introduction In this pullrequest have been migrated to the flat standard entities: Role, Agent and RoleTargets. ## What happens - Removed createStandardMorph tool util in favor of dynamic typing of `createMorphOrRelationStandardField` - Implemented a command to remove standard agents and their role that has been removed in #16513 also added a default role target to data manipulator role to the only remaining agent - Implemented an agent deleteMany service handler
Summary
skillsmodule with predefined skill definitions that the AI can load on demandrecordReferencesto workflow creation tool for chip linking in the UIChanges
New Skills Module
skill-definitions.ts- Contains 5 skill definitions with detailed instructionsskills.service.ts- Service to get skills by nameload-skill.tool.ts- Tool for AI to load skills explicitlyRemoved
agent-search.tool.ts- Replaced by skill loadingUpdated
recordReferencesfor UI linkingTest plan
load_skilltool