You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""A class for managing threads in a specific domain.
22
+
"""A class for managing threads. It is a part of Assistants API.
23
23
24
-
This class provides methods to create, retrieve, and list threads. It acts as a foundation for
25
-
thread implementations and requires a specific thread type to be defined.
24
+
This class provides methods to create, retrieve, and list threads.
26
25
"""
27
26
_thread_impl: type[ThreadTypeT]
28
27
@@ -45,7 +44,7 @@ async def _create(
45
44
:param labels: a set of labels for the thread.
46
45
:param ttl_days: time-to-live in days for the thread.
47
46
:param expiration_policy: expiration policy for the file.
48
-
Assepts for passing ``static`` or ``since_last_active`` `strings <https://yandex.cloud/docs/foundation-models/threads/api-ref/Message/create#yandex.cloud.ai.common.ExpirationConfig>`_. Should be defined if ``ttl_days`` has been defined, otherwise both parameters should be undefined.
47
+
Assepts for passing ``static`` or ``since_last_active`` strings. Should be defined if ``ttl_days`` has been defined, otherwise both parameters should be undefined.
49
48
:param timeout: timeout for the service call in seconds.
50
49
Defaults to 60 seconds.
51
50
"""
@@ -80,7 +79,7 @@ async def _get(
80
79
) ->ThreadTypeT:
81
80
"""Retrieve a thread by its id.
82
81
83
-
This method fetches a thread using its unique identifier.
82
+
This method fetches an already created thread using its unique identifier.
84
83
85
84
:param thread_id: the unique identifier of the thread to retrieve.
86
85
:param timeout: timeout for the service call in seconds.
@@ -108,7 +107,7 @@ async def _list(
108
107
) ->AsyncIterator[ThreadTypeT]:
109
108
"""List threads in the specified folder.
110
109
111
-
This method retrieves a list of threads, paginated by the specified page size. It continues
110
+
This method retrieves a list of threads. It continues
112
111
to fetch threads until there are no more available.
113
112
114
113
:param page_size: the maximum number of threads to return per page.
0 commit comments