v2.7.4 (#579)
Co-authored-by: Clément Sirieix <clement.sirieix@mistral.ai> Co-authored-by: Kim-Adeline Miguel <kimadeline.miguel@mistral.ai> Co-authored-by: Lucas Marandat <31749711+lucasmrdt@users.noreply.github.com> Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com> Co-authored-by: Paul Cacheux <paul.cacheux@mistral.ai> Co-authored-by: Peter Evers <pevers90@gmail.com> Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai> Co-authored-by: Pierre Rossinès <pierre.rossines@protonmail.com> Co-authored-by: Quentin <quentin.torroba@mistral.ai> Co-authored-by: Simon Van de Kerckhove <simon.vandekerckhove@mistral.ai> Co-authored-by: Val <102326092+vdeva@users.noreply.github.com> Co-authored-by: Vincent G <10739306+VinceOPS@users.noreply.github.com> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
90763daf81
commit
e9a9217cc8
113 changed files with 7202 additions and 541 deletions
|
|
@ -613,8 +613,8 @@ async def test_parallel_tool_calls_with_approval_callback(
|
|||
|
||||
@pytest.mark.asyncio
|
||||
async def test_parallel_approvals_can_run_concurrently() -> None:
|
||||
"""The core does not serialize approval callbacks — that is a CLI-layer concern.
|
||||
Parallel tool calls may invoke the approval callback concurrently.
|
||||
"""Approval callbacks are serialized by _approval_lock so that an 'always allow'
|
||||
grant from the first call is visible to subsequent parallel calls.
|
||||
"""
|
||||
concurrency = 0
|
||||
max_concurrency = 0
|
||||
|
|
@ -642,7 +642,7 @@ async def test_parallel_approvals_can_run_concurrently() -> None:
|
|||
|
||||
await act_and_collect_events(agent_loop, "Go")
|
||||
|
||||
assert max_concurrency > 1
|
||||
assert max_concurrency == 1
|
||||
assert agent_loop.stats.tool_calls_agreed == 3
|
||||
assert agent_loop.stats.tool_calls_succeeded == 3
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue