Create an interrupt Event with a long-running function call.
(fc_name='get_input', fc_id='fc-1')
| 71 | |
| 72 | |
| 73 | def _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 | |
| 89 | def _make_resume_message(fc_name='get_input', fc_id='fc-1', response=None): |