agent-lab-sdk 0.1.30__py3-none-any.whl → 0.1.32__py3-none-any.whl
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/llm/throttled.py +8 -10
- agent_lab_sdk/schema/input_types.py +1 -1
- {agent_lab_sdk-0.1.30.dist-info → agent_lab_sdk-0.1.32.dist-info}/METADATA +1 -1
- {agent_lab_sdk-0.1.30.dist-info → agent_lab_sdk-0.1.32.dist-info}/RECORD +7 -7
- {agent_lab_sdk-0.1.30.dist-info → agent_lab_sdk-0.1.32.dist-info}/WHEEL +0 -0
- {agent_lab_sdk-0.1.30.dist-info → agent_lab_sdk-0.1.32.dist-info}/licenses/LICENSE +0 -0
- {agent_lab_sdk-0.1.30.dist-info → agent_lab_sdk-0.1.32.dist-info}/top_level.txt +0 -0
agent_lab_sdk/llm/throttled.py
CHANGED
|
@@ -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)
|
|
@@ -228,7 +228,7 @@ def FileInput(title: str | None = None, file_extensions: str | None = None, grou
|
|
|
228
228
|
Type annotation for file input field
|
|
229
229
|
"""
|
|
230
230
|
return WithJsonSchema({
|
|
231
|
-
"type": "
|
|
231
|
+
"type": "file",
|
|
232
232
|
"title": title,
|
|
233
233
|
"fileExtensions": file_extensions,
|
|
234
234
|
"group": group,
|
|
@@ -5,16 +5,16 @@ agent_lab_sdk/llm/__init__.py,sha256=Yo9MbYdHS1iX05A9XiJGwWN1Hm4IARGav9mNFPrtDeA
|
|
|
5
5
|
agent_lab_sdk/llm/agw_token_manager.py,sha256=_bPPI8muaEa6H01P8hHQOJHiiivaLd8N_d3OT9UT_80,4787
|
|
6
6
|
agent_lab_sdk/llm/gigachat_token_manager.py,sha256=nlOxHcwJovsmM4cpI4fwMrYjoSeMjelDaHTipXsrUuA,8282
|
|
7
7
|
agent_lab_sdk/llm/llm.py,sha256=HIp97-rs8Xcxokgptgh6bCfkIx7UJUFOYdGbpi7SsSg,1949
|
|
8
|
-
agent_lab_sdk/llm/throttled.py,sha256=
|
|
8
|
+
agent_lab_sdk/llm/throttled.py,sha256=wkZGw2lYjcg8yqfGxM4IEP2dcEf85bskRxINtrR5cn8,7530
|
|
9
9
|
agent_lab_sdk/metrics/__init__.py,sha256=G4VSlzKwupPMM4c6vZaF1rnd0KusKarezDMjli9pVFw,57
|
|
10
10
|
agent_lab_sdk/metrics/metrics.py,sha256=_XTT9vMG7T0u_D2pL371wm8GoBU5fodJ45D2RACnBJw,3439
|
|
11
11
|
agent_lab_sdk/schema/__init__.py,sha256=bHSyXQYkcB9fWBlziWodXR_IzC5nKrdKzrCpyVWNY9o,521
|
|
12
|
-
agent_lab_sdk/schema/input_types.py,sha256=
|
|
12
|
+
agent_lab_sdk/schema/input_types.py,sha256=e75nRW7Dz_RHk5Yia8DkFfbqMafsLQsQrJPfzQhpIBw,9123
|
|
13
13
|
agent_lab_sdk/schema/log_message.py,sha256=nadi6lZGRuDSPmfbYs9QPpRJUT9Pfy8Y7pGCvyFF5Mw,638
|
|
14
14
|
agent_lab_sdk/storage/__init__.py,sha256=ik1_v1DMTwehvcAEXIYxuvLuCjJCa3y5qAuJqoQpuSA,81
|
|
15
15
|
agent_lab_sdk/storage/storage.py,sha256=ELpt7GRwFD-aWa6ctinfA_QwcvzWLvKS0Wz8FlxVqAs,2075
|
|
16
|
-
agent_lab_sdk-0.1.
|
|
17
|
-
agent_lab_sdk-0.1.
|
|
18
|
-
agent_lab_sdk-0.1.
|
|
19
|
-
agent_lab_sdk-0.1.
|
|
20
|
-
agent_lab_sdk-0.1.
|
|
16
|
+
agent_lab_sdk-0.1.32.dist-info/licenses/LICENSE,sha256=_TRXHkF3S9ilWBPdZcHLI_S-PRjK0L_SeOb2pcPAdV4,417
|
|
17
|
+
agent_lab_sdk-0.1.32.dist-info/METADATA,sha256=6Ks914ais24-2peMHR9QM8RsWhh9zBmfl-PriW3u96s,17884
|
|
18
|
+
agent_lab_sdk-0.1.32.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
19
|
+
agent_lab_sdk-0.1.32.dist-info/top_level.txt,sha256=E1efqkJ89KNmPBWdLzdMHeVtH0dYyCo4fhnSb81_15I,14
|
|
20
|
+
agent_lab_sdk-0.1.32.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|