From 6dd992dfad414679257ec2b196a31fd84822ac2d Mon Sep 17 00:00:00 2001 From: anor Date: Wed, 18 Nov 2026 21:34:18 +1000 Subject: [PATCH] =?UTF-8?q?fix(=D0=BA=D0=BE=D0=BD=D1=82=D1=80=D0=B0=D0=BA?= =?UTF-8?q?=D1=82):=20=D0=BF=D1=80=D0=BE=D0=B3=D0=BE=D0=BD=20=D0=B4=D0=B0?= =?UTF-8?q?=D1=91=D1=82=20=D0=BC=D0=BE=D0=B4=D0=B5=D0=BB=D0=B8=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BB=D0=BD=D1=83=D1=8E=20=D1=81=D1=85=D0=B5=D0=BC=D1=83?= =?UTF-8?q?=20=D0=B8=D0=BD=D1=81=D1=82=D1=80=D1=83=D0=BC=D0=B5=D0=BD=D1=82?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Пустая схема без свойств — модель отвечала текстом вместо вызова, и шаг краснел не по делу. Теперь у инструмента есть query с описанием и обязательностью. Co-Authored-By: Claude Code --- scripts/arm_contract_run.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/arm_contract_run.py b/scripts/arm_contract_run.py index 000133e..2d8ba80 100644 --- a/scripts/arm_contract_run.py +++ b/scripts/arm_contract_run.py @@ -230,8 +230,13 @@ def scenario(base: str, user: str, password: str, app_version: str, "подходящий инструмент [tool]"}], "tool_choice": tool_choice, "tools": [{"type": "function", "function": { - "name": "find_base_price", "description": "цена", - "parameters": {"type": "object"}}}]}, + "name": "find_base_price", + "description": "Найти цену ресурса по коду расценки", + "parameters": {"type": "object", + "properties": {"query": { + "type": "string", + "description": "код, например 1-14-1"}}, + "required": ["query"]}}}]}, dict(device, **{"X-Review-Id": str(tool_review)})) events, done, error = parse_sse(body) fragments = [frag for event in events for chunk in (event.get("choices") or [])