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

Function _make_interrupt_event

tests/unittests/runners/test_runner_node.py:73–86  ·  view source on GitHub ↗

Create an interrupt Event with a long-running function call.

(fc_name='get_input', fc_id='fc-1')

Source from the content-addressed store, hash-verified

71
72
73def _make_interrupt_event(fc_name='get_input', fc_id='fc-1'):
74 """Create an interrupt Event with a long-running function call."""
75 return Event(
76 content=types.Content(
77 parts=[
78 types.Part(
79 function_call=types.FunctionCall(
80 name=fc_name, args={}, id=fc_id
81 )
82 )
83 ]
84 ),
85 long_running_tool_ids={fc_id},
86 )
87
88
89def _make_resume_message(fc_name='get_input', fc_id='fc-1', response=None):

Callers 8

_run_implMethod · 0.85
_run_implMethod · 0.85
_run_implMethod · 0.85
_run_implMethod · 0.85
_run_implMethod · 0.85
_run_implMethod · 0.85
_run_implMethod · 0.85
_run_implMethod · 0.85

Calls 1

EventClass · 0.90

Tested by

no test coverage detected