(_input: object)
| 1913 | release = threading.Event() |
| 1914 | |
| 1915 | def blocking(_input: object) -> str: |
| 1916 | loop.call_soon_threadsafe(release.set) |
| 1917 | if not release.wait(timeout=2): |
| 1918 | raise RuntimeError("the event loop did not run while the tool blocked") |
| 1919 | return "released" |
| 1920 | |
| 1921 | events = FakeAsyncEvents(stream_events=[_custom_tool_use("ctu_1", "blocking", {}), _terminated()]) |
| 1922 |