mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-24 21:38:09 +02:00
chore: linting
This commit is contained in:
parent
cea8618aed
commit
bdb97a0888
4 changed files with 16 additions and 3 deletions
|
|
@ -98,6 +98,7 @@ def _compute_turn_cancelling_retry_delay(attempt: int) -> int:
|
|||
|
||||
def _first_interrupt_value(state: Any) -> dict[str, Any] | None:
|
||||
"""Return the first LangGraph interrupt payload across all snapshot tasks."""
|
||||
|
||||
def _extract_interrupt_value(candidate: Any) -> dict[str, Any] | None:
|
||||
if isinstance(candidate, dict):
|
||||
value = candidate.get("value", candidate)
|
||||
|
|
|
|||
|
|
@ -564,4 +564,6 @@ async def test_interrupt_request_uses_task_that_contains_interrupt(
|
|||
|
||||
interrupts = _of_type(payloads, "data-interrupt-request")
|
||||
assert len(interrupts) == 1
|
||||
assert interrupts[0]["data"]["action_requests"][0]["name"] == "create_calendar_event"
|
||||
assert (
|
||||
interrupts[0]["data"]["action_requests"][0]["name"] == "create_calendar_event"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue