MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / finish

Function finish

tests/lib/threads/test_beta_threads.py:2267–2270  ·  view source on GitHub ↗

Await `result` if it is the coroutine of an async thread's `send()` or `parse()`, which runs nothing until then.

(result: object)

Source from the content-addressed store, hash-verified

2265
2266
2267def finish(result: object) -> None:
2268 """Await `result` if it is the coroutine of an async thread's `send()` or `parse()`, which runs nothing until then."""
2269 if inspect.iscoroutine(result):
2270 asyncio.run(result)

Calls 1

runMethod · 0.45

Tested by

no test coverage detected