mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-19 18:45:15 +02:00
chore: linting
This commit is contained in:
parent
219a5977b7
commit
c187b04e82
25 changed files with 102 additions and 108 deletions
|
|
@ -151,8 +151,7 @@ async def test_preserves_state_interrupts_traversal_order():
|
|||
state_order = [
|
||||
i.value["tool_call_id"]
|
||||
for i in state.interrupts
|
||||
if isinstance(getattr(i, "value", None), dict)
|
||||
and "tool_call_id" in i.value
|
||||
if isinstance(getattr(i, "value", None), dict) and "tool_call_id" in i.value
|
||||
]
|
||||
|
||||
assert inspector_order == state_order, (
|
||||
|
|
|
|||
|
|
@ -70,7 +70,9 @@ def _tool_start(*, name: str, run_id: str) -> dict[str, Any]:
|
|||
}
|
||||
|
||||
|
||||
async def _drain_step_ids(events: list[dict[str, Any]], *, step_prefix: str) -> set[str]:
|
||||
async def _drain_step_ids(
|
||||
events: list[dict[str, Any]], *, step_prefix: str
|
||||
) -> set[str]:
|
||||
"""Run ``_stream_agent_events`` once and return every emitted thinking-step ID."""
|
||||
agent = _FakeAgent(events)
|
||||
service = VercelStreamingService()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue