MCPcopy Index your code
hub / github.com/google/adk-python / NodeInterruptedError

Class NodeInterruptedError

src/google/adk/workflow/_errors.py:20–32  ·  view source on GitHub ↗

Internal: raised when a dynamic node interrupts (HITL). Used exclusively by ``ctx.run_node()`` to signal that the dynamic child has unresolved interrupt IDs. The parent's NodeRunner catches this and reads the interrupt IDs from the parent's ctx (set by ``ctx.run_node()`` before raising).

Source from the content-addressed store, hash-verified

18
19
20class NodeInterruptedError(BaseException):
21 """Internal: raised when a dynamic node interrupts (HITL).
22
23 Used exclusively by ``ctx.run_node()`` to signal that the dynamic
24 child has unresolved interrupt IDs. The parent's NodeRunner catches
25 this and reads the interrupt IDs from the parent's ctx (set by
26 ``ctx.run_node()`` before raising).
27
28 This is a ``BaseException`` so user code cannot accidentally catch
29 it with ``except Exception``.
30
31 Internal to the framework — not part of the public API.
32 """
33
34
35class NodeTimeoutError(Exception):

Callers 1

run_nodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected