mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-13 17:52:38 +02:00
Carry thinkingStepId on tool output and extend builder and parity tests.
This commit is contained in:
parent
32092c0b65
commit
1761b60c16
3 changed files with 156 additions and 1 deletions
|
|
@ -111,8 +111,10 @@ def test_complete_active_thinking_step_mirrors_closure_semantics() -> None:
|
|||
svc = MagicMock()
|
||||
svc.format_thinking_step.return_value = "done-frame"
|
||||
completed: set[str] = set()
|
||||
relay_state = AgentEventRelayState.for_invocation()
|
||||
|
||||
frame, new_id = complete_active_thinking_step(
|
||||
state=relay_state,
|
||||
streaming_service=svc,
|
||||
content_builder=None,
|
||||
last_active_step_id="thinking-1",
|
||||
|
|
@ -125,6 +127,7 @@ def test_complete_active_thinking_step_mirrors_closure_semantics() -> None:
|
|||
assert "thinking-1" in completed
|
||||
|
||||
frame2, id2 = complete_active_thinking_step(
|
||||
state=relay_state,
|
||||
streaming_service=svc,
|
||||
content_builder=None,
|
||||
last_active_step_id="thinking-1",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue