Open
Conversation
There was a problem hiding this comment.
Pull request overview
This PR extends the "create agent" flow to leverage AI-generated configuration when a purpose field is supplied. It also enriches the AI prompt context with available API call tools and folder embed fields so the AI can produce a fully pre-configured agent.
Changes:
- AI-context enrichment: When
purposeis provided, available API call functions (tools) and folder embed fields are now fetched and included as variables sent to the AI middleware. - AI-driven agent creation: The AI response is used directly as the agent configuration (model, service, name, fall_back, gpt_memory, etc.) instead of extracting a small subset of fields as before.
- Minor cleanup: Removed an extraneous blank line in
aiCall.utils.js.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
src/controllers/agentConfig.controller.js |
Core logic change: fetches API call tools, passes enriched variables to AI, and uses the full AI response to populate the createAgent call when purpose is set. |
src/services/utils/aiCall.utils.js |
Trivial whitespace removal (blank line deleted). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ccd5a51 to
7faf054
Compare
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.
No description provided.