agent-lab-sdk 0.1.29__tar.gz → 0.1.31__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of agent-lab-sdk might be problematic. Click here for more details.
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/PKG-INFO +1 -1
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/llm/throttled.py +16 -10
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk.egg-info/PKG-INFO +1 -1
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/pyproject.toml +1 -1
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/LICENSE +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/README.md +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/__init__.py +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/langgraph/checkpoint/__init__.py +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/langgraph/checkpoint/agw_saver.py +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/llm/__init__.py +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/llm/agw_token_manager.py +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/llm/gigachat_token_manager.py +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/llm/llm.py +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/metrics/__init__.py +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/metrics/metrics.py +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/schema/__init__.py +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/schema/input_types.py +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/schema/log_message.py +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/storage/__init__.py +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/storage/storage.py +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk.egg-info/SOURCES.txt +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk.egg-info/dependency_links.txt +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk.egg-info/requires.txt +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk.egg-info/top_level.txt +0 -0
- {agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/setup.cfg +0 -0
|
@@ -113,16 +113,15 @@ class ThrottledGigaChatEmbeddings(GigaChatEmbeddings):
|
|
|
113
113
|
_base_kwargs: dict = PrivateAttr(default={})
|
|
114
114
|
|
|
115
115
|
def __init__(self, *args, manage_access_token=True, **kwargs):
|
|
116
|
-
|
|
117
|
-
self._manage_access_token = manage_access_token
|
|
118
|
-
self._base_kwargs = dict(kwargs)
|
|
119
|
-
|
|
120
|
-
if self._manage_access_token and "access_token" not in kwargs:
|
|
116
|
+
if manage_access_token and "access_token" not in kwargs:
|
|
121
117
|
token = GigaChatTokenManager.get_token()
|
|
122
118
|
super().__init__(access_token=token, **kwargs)
|
|
123
119
|
else:
|
|
124
120
|
super().__init__(**kwargs)
|
|
125
121
|
|
|
122
|
+
self._manage_access_token = manage_access_token
|
|
123
|
+
self._base_kwargs = dict(kwargs)
|
|
124
|
+
|
|
126
125
|
def _fresh(self) -> GigaChatEmbeddings:
|
|
127
126
|
if self._manage_access_token:
|
|
128
127
|
return GigaChatEmbeddings(access_token=GigaChatTokenManager.get_token(), **self._base_kwargs)
|
|
@@ -151,16 +150,15 @@ class ThrottledGigaChat(GigaChat):
|
|
|
151
150
|
_base_kwargs: dict = PrivateAttr(default={})
|
|
152
151
|
|
|
153
152
|
def __init__(self, *args, manage_access_token=True, **kwargs):
|
|
154
|
-
|
|
155
|
-
self._manage_access_token = manage_access_token
|
|
156
|
-
self._base_kwargs = dict(kwargs)
|
|
157
|
-
|
|
158
|
-
if self._manage_access_token and "access_token" not in kwargs:
|
|
153
|
+
if manage_access_token and "access_token" not in kwargs:
|
|
159
154
|
token = GigaChatTokenManager.get_token()
|
|
160
155
|
super().__init__(access_token=token, **kwargs)
|
|
161
156
|
else:
|
|
162
157
|
super().__init__(**kwargs)
|
|
163
158
|
|
|
159
|
+
self._manage_access_token = manage_access_token
|
|
160
|
+
self._base_kwargs = dict(kwargs)
|
|
161
|
+
|
|
164
162
|
def _fresh(self) -> GigaChat:
|
|
165
163
|
if self._manage_access_token:
|
|
166
164
|
return GigaChat(access_token=GigaChatTokenManager.get_token(), **self._base_kwargs)
|
|
@@ -197,6 +195,14 @@ class ThrottledGigaChat(GigaChat):
|
|
|
197
195
|
async def abatch(self, *args, **kwargs):
|
|
198
196
|
async with _semaphores["chat"]:
|
|
199
197
|
return await self._fresh().abatch(*args, **kwargs)
|
|
198
|
+
|
|
199
|
+
def upload_file(self, *args, **kwargs):
|
|
200
|
+
with _semaphores["chat"]:
|
|
201
|
+
return self._fresh().upload_file(*args, **kwargs)
|
|
202
|
+
|
|
203
|
+
async def aupload_file(self, *args, **kwargs):
|
|
204
|
+
async with _semaphores["chat"]:
|
|
205
|
+
return await self._fresh().aupload_file(*args, **kwargs)
|
|
200
206
|
|
|
201
207
|
def batch_as_completed(self, *args, **kwargs):
|
|
202
208
|
with _semaphores["chat"]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/langgraph/checkpoint/__init__.py
RENAMED
|
File without changes
|
{agent_lab_sdk-0.1.29 → agent_lab_sdk-0.1.31}/agent_lab_sdk/langgraph/checkpoint/agw_saver.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|