Skip to content

Say when a model never calls tools - #76

Merged
Seungpyo1007 merged 1 commit into
developfrom
fix/tool-support-notice
Aug 7, 2026
Merged

Say when a model never calls tools#76
Seungpyo1007 merged 1 commit into
developfrom
fix/tool-support-notice

Conversation

@Seungpyo1007

Copy link
Copy Markdown
Member

Leftover from the provider work in #72.

Small local models either don't support tool calling or accept the tool definitions and answer in prose anyway. When that happens the agent talks and changes nothing, which looks like the app being broken rather than the model being unable.

Telling the user on every tool-less turn would be noise — most questions ("what does this function do?") need no tools. So two things have to hold: the provider has never once made a tool call, and three consecutive turns went out with tools and came back with none. Then it says so, once per provider. Turns sent without tools aren't counted at all, since they prove nothing either way.

The decision lives in src/ai/toolSupport.ts as pure functions — 10 tests, including the case where a model starts using tools later and the streak resets.

Checked against a stub server that receives the tool definitions and never calls anything: silent on turns 1 and 2, one notice on turn 3, silent again on 4 and 5.

로컬 모델 붙이고 나서 생긴 문제. tool use 못 하는 작은 모델은 도구 정의를
받고도 그냥 말로만 답해서, 작업하기를 눌러도 파일이 하나도 안 바뀐다.
앱이 고장난 줄 알기 딱 좋다.

턴마다 경고하면 시끄럽다 — 도구 필요 없는 질문이 더 많으니까. 그래서
한 번이라도 도구를 부른 적 있으면 그냥 넘어가고, 그런 적 없으면서 연속
3턴 비었을 때만 한 번 알린다.
@Seungpyo1007 Seungpyo1007 added this to the v0.3 (2026-09-30) milestone Aug 7, 2026
@Seungpyo1007 Seungpyo1007 added the enhancement New feature or request label Aug 7, 2026
@Seungpyo1007 Seungpyo1007 self-assigned this Aug 7, 2026
@Seungpyo1007
Seungpyo1007 merged commit 0c098a7 into develop Aug 7, 2026
1 check passed
@Seungpyo1007
Seungpyo1007 deleted the fix/tool-support-notice branch August 7, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant