Skip to content

Tool rework - #5

Open
SimolSem wants to merge 20 commits into
DmitrL-dev:mainfrom
SimolSem:tool-rework
Open

SimolSem wants to merge 20 commits into
DmitrL-dev:mainfrom
SimolSem:tool-rework

Conversation

@SimolSem

Copy link
Copy Markdown

Привет
Сделал иной вариант работы с tool. Оформлен пока отдеьно не затирая стрый переключается по TOOLCALL_LEGACY

Если используется новый TOOLCALL_LEGACY=0, то еще учиытвается новый параметр TOOLCALL_INVALID_MODE

также добавил парметр PROVIDER_ACCESS_PAUSE, уз очень при тестирвоании устал сничать блокировку

Новый метод с tool описан в документации

SimolSem and others added 3 commits October 13, 2026 01:50
Valid tool_calls blocks run wherever they stand; abstract samples stay text; unknown tools and schema failures get one pointed correction or a raw-reply bridge notice. Tool results go to the provider bare. Offline-verified only.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep main-era tools in api.py / tool_protocol.py (default LEGACY=1). LEGACY=0
uses api_new / tool_protocol_new for every provider: demote mistagged
tool_calls, multi-block validate, pointed format repair, and
TOOLCALL_INVALID_MODE. Support ChatGBot Claude at /en/chat in the browser
scripts. Add PROVIDER_ACCESS_PAUSE (default on); 0 skips durable access
pauses for local testing at the operator's risk.

Co-authored-by: Cursor <cursoragent@cursor.com>
Combine main's conversation rollover/legacy scopes with tool-rework browser compact results and LEGACY dispatch.

Co-authored-by: Cursor <cursoragent@cursor.com>
@SimolSem

SimolSem commented Oct 13, 2026 •

Copy link
Copy Markdown
Author

Проверь новый метод на дипсик и если ок, то маявкуй и старый выпилим

@SimolSem

SimolSem commented Oct 16, 2026 •

Copy link
Copy Markdown
Author

Ничего особо не меняешь а появляется вал ошибок.
Ощущение что тесты какеито случайые данные берут и то проходят, то не проходлят.
вон коммит fіx error 2 все ічистил и опять вал ошибок

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