fix(tools): validate arguments with jsonschema without coercion (#6648)

Co-authored-by: xiong-wei1 <2318942410@qq.com>
This commit is contained in:
chengyongruandxiong-wei1 authored and GitHub committed 2026-11-13 13:32:12 +08:00
1 parent 25ed91ffeb
commit 8cce73465b
27 files changed
+689 -614

No files matched your search

+3 -2
View File
@@ -406,11 +406,12 @@ def test_exec_session_wait_for_searches_before_response_truncation():
assert len(result.partition("\n")[0]) == 10_000
def test_exec_one_shot_accepts_max_output_tokens_alias(tmp_path):
@pytest.mark.parametrize("limit", [1000, 1000.0])
def test_exec_one_shot_accepts_max_output_tokens_alias(tmp_path, limit):
async def run() -> str:
tool = ExecTool(working_dir=str(tmp_path), timeout=5)
command = _python_command("print('A' * 2000)")
return await tool.execute(command=command, max_output_tokens=1000, yield_time_ms=10000)
return await tool.execute(command=command, max_output_tokens=limit, yield_time_ms=10000)
result = asyncio.run(run())