Skip to content

feat: update version to 2.4.3 and enhance tool loading mechanism with… - #96

Merged
AnkanSaha merged 1 commit into
mainfrom
maintainer/ankan
Jul 28, 2026
Merged

feat: update version to 2.4.3 and enhance tool loading mechanism with…#96
AnkanSaha merged 1 commit into
mainfrom
maintainer/ankan

Conversation

@AnkanSaha

Copy link
Copy Markdown
Member

This pull request introduces a new "tool discovery" workflow for the EdgeBalancer provisioning agent, optimizing how tool schemas are loaded and reducing the token cost per agent run. The main change is that only the find_tools schema is sent on the initial model call; all other tools are loaded dynamically as needed, based on the user's request. The system prompt and tests have also been updated to reflect this workflow.

Tool binding and workflow improvements:

  • Only the find_tools tool is bound on the first model call; other tools are loaded dynamically by calling find_tools with their names, and are only bound once loaded (server/src/modules/ai/services/agent.service.ts, server/src/modules/ai/services/tools.service.ts) [1] [2] [3] [4] [5] [6].
  • The ToolContext and buildTools now include an unlocked set to track which tools have been loaded and should be available to the agent (server/src/modules/ai/services/tools.service.ts) [1] [2] [3].

Prompt and documentation updates:

  • The system prompt (SYSTEM_PROMPT) is updated to clarify the new workflow: only find_tools is bound at first, and all other tools are loaded with it as needed. The prompt also clarifies scope, workflow, and plain-text output requirements (server/src/modules/ai/config/systemPrompt.ts).

Testing improvements:

  • Added a unit test to verify that only find_tools is bound initially, and other tools are bound after being loaded, ensuring the new workflow is correctly implemented (server/src/__tests__/unit/ai/agent.test.ts, server/src/__tests__/unit/ai/tools.test.ts) [1] [2].

Other:

  • Bumped the server package version to 2.4.3 (server/package.json).

These changes make the agent more efficient by sending only the schemas needed for each run, and ensure the workflow is clearly communicated to both the model and developers.

@AnkanSaha AnkanSaha self-assigned this Jul 28, 2026
@AnkanSaha
AnkanSaha merged commit 4562e39 into main Jul 28, 2026
5 checks passed
@AnkanSaha
AnkanSaha deleted the maintainer/ankan branch July 28, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant