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

Function make_thread

tests/lib/threads/helpers.py:75–77  ·  view source on GitHub ↗

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

(**fields: Any)

Source from the content-addressed store, hash-verified

73
74
75def make_thread(**fields: Any) -> BetaMessageThread[Any]:
76 """A thread on the sync client; `model` and `max_tokens` default to values no test depends on."""
77 return make_client().beta.messages.thread(**_thread_fields(fields))
78
79
80def make_async_thread(**fields: Any) -> BetaAsyncMessageThread[Any]:

Calls 3

_thread_fieldsFunction · 0.85
make_clientFunction · 0.70
threadMethod · 0.45