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

Function make_async_thread

tests/lib/threads/helpers.py:80–82  ·  view source on GitHub ↗

A thread on the async client; `model` and `max_tokens` default to values no test depends on.

(**fields: Any)

Source from the content-addressed store, hash-verified

78
79
80def make_async_thread(**fields: Any) -> BetaAsyncMessageThread[Any]:
81 """A thread on the async client; `model` and `max_tokens` default to values no test depends on."""
82 return make_async_client().beta.messages.thread(**_thread_fields(fields))
83
84
85def _thread_fields(fields: dict[str, Any]) -> dict[str, Any]:

Calls 3

_thread_fieldsFunction · 0.85
make_async_clientFunction · 0.70
threadMethod · 0.45