Skip to content

[OMEGA-374] Use tools API to pass the list of tools to the LLM - #358

Open
vsbogd wants to merge 11 commits into
singnet:mainfrom
vsbogd:use-tools-api
Open

vsbogd wants to merge 11 commits into
singnet:mainfrom
vsbogd:use-tools-api

Conversation

@vsbogd

@vsbogd vsbogd commented Sep 21, 2026

Copy link
Copy Markdown
Member

Description

This PR is part of #349 which doesn't include loop and memory changes. It delivers the most massive code change: using tools API to get the list of tool calls from LLM. It obsoletes helper.balance_parenthesis function.

How Has This Been Tested?

This PR doesn't introduce any code logic change just migrates existing logic to the new API. Regression testing should be enough. This PR is checked using automatic regression testing and manual smoke check with each provider.

Checklist

  • PR contains autogenerated code
  • Self-review completed
  • Test scenarios above are passed with the version of the code from PR

Move provider specific logic into prepare_args method mostly. The only
exceptions are OpenAI because it uses completely different method to
call the API and TestMock which doesn't require most of the things.
Change the LLM call API to pass the list of tools to call and receive
the list of tool calls. Adapt loop.metta to this change. Fix unit tests.
The historical information is still returned via HISTORY paragraph of
the system prompt.
@vsbogd
vsbogd marked this pull request as ready for review September 23, 2026 09:03

This branch has not been deployed

No deployments
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