agent-lab-sdk 0.1.45__py3-none-any.whl → 0.1.46__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.

@@ -1,4 +1,4 @@
1
- from typing import List, Optional, Any
1
+ from typing import List, Optional, Any, Literal
2
2
  from enum import Enum
3
3
  from pydantic import BaseModel
4
4
  from pydantic.json_schema import WithJsonSchema
@@ -250,7 +250,8 @@ def SwitchInput(title: str | None = None, group: str | None = None, description:
250
250
 
251
251
 
252
252
  def FileInput(title: str | None = None, file_extensions: str | None = None, group: str | None = None,
253
- hidden: bool | None = False, depends: str | None = None, visibility: str | Visibility = Visibility.ALWAYS) -> type:
253
+ hidden: bool | None = False, depends: str | None = None, view: Literal["button", "dropzone"] | None = None,
254
+ visibility: str | Visibility = Visibility.ALWAYS) -> type:
254
255
  """
255
256
  Factory function for creating a single file input type.
256
257
 
@@ -260,6 +261,7 @@ def FileInput(title: str | None = None, file_extensions: str | None = None, grou
260
261
  group: Group name for organizing inputs in the UI
261
262
  hidden: Whether the input should be hidden in the UI
262
263
  depends: Specifies the parameter that this value depends on or is derived from.
264
+ view: View mode for the file input ("button" or "dropzone")
263
265
  visibility: Visibility state of the field (default: "always")
264
266
 
265
267
  Returns:
@@ -272,12 +274,14 @@ def FileInput(title: str | None = None, file_extensions: str | None = None, grou
272
274
  "group": group,
273
275
  "hidden": hidden,
274
276
  "depends": depends,
277
+ "view": view,
275
278
  "visibility": visibility.value if isinstance(visibility, Visibility) else visibility,
276
279
  })
277
280
 
278
281
 
279
282
  def FilesInput(title: str | None = None, file_extensions: str | None = None, group: str | None = None,
280
- hidden: bool | None = False, depends: str | None = None, limit: int | None = 10, visibility: str | Visibility = Visibility.ALWAYS) -> type:
283
+ hidden: bool | None = False, depends: str | None = None, limit: int | None = 10,
284
+ view: Literal["button", "dropzone"] | None = None, visibility: str | Visibility = Visibility.ALWAYS) -> type:
281
285
  """
282
286
  Factory function for creating a multiple files input type.
283
287
 
@@ -288,6 +292,7 @@ def FilesInput(title: str | None = None, file_extensions: str | None = None, gro
288
292
  hidden: Whether the input should be hidden in the UI
289
293
  depends: Specifies the parameter that this value depends on or is derived from.
290
294
  limit: Limit count files.
295
+ view: View mode for the files input ("button" or "dropzone")
291
296
  visibility: Visibility state of the field (default: "always")
292
297
 
293
298
  Returns:
@@ -301,5 +306,6 @@ def FilesInput(title: str | None = None, file_extensions: str | None = None, gro
301
306
  "hidden": hidden,
302
307
  "depends": depends,
303
308
  "limit": limit,
309
+ "view": view,
304
310
  "visibility": visibility.value if isinstance(visibility, Visibility) else visibility,
305
- })
311
+ })
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agent-lab-sdk
3
- Version: 0.1.45
3
+ Version: 0.1.46
4
4
  Summary: SDK для работы с Agent Lab
5
5
  Author-email: Andrew Ohurtsov <andermirik@yandex.com>
6
6
  License: Proprietary and Confidential — All Rights Reserved
@@ -315,31 +315,33 @@ class AgentState(BaseModel):
315
315
  # Загрузка одного файла
316
316
  document: Annotated[str, FileInput(
317
317
  title="Документ",
318
- file_extensions=".pdf,.docx,.txt"
318
+ file_extensions=".pdf,.docx,.txt",
319
+ view="button" # или "dropzone" для drag-and-drop
319
320
  )]
320
-
321
+
321
322
  # Загрузка нескольких файлов
322
323
  attachments: Annotated[List[str], FilesInput(
323
324
  title="Прикрепленные файлы",
324
325
  file_extensions=".pdf,.csv,.xlsx",
325
- group="Файлы"
326
+ group="Файлы",
327
+ view="dropzone" # область перетаскивания файлов
326
328
  )]
327
329
  ```
328
330
 
329
331
  #### Доступные фабричные функции
330
332
 
331
- | Тип | Описание | Основные параметры |
332
- |--------------------------|-----------------------------------|-----------------------------------------------------------------------------------|
333
- | `MainInput` | Основное поле ввода | `placeholder`, `visibility` |
334
- | `StringInput` | Текстовое поле | `default`, `title`, `description`, `hidden`, `depends`, `visibility` |
335
- | `StringArrayInput` | Массив строк | `placeholder`, `title`, `description`, `group`, `hidden`, `depends`, `visibility` |
336
- | `StringArrayInputInline` | Массив строк в одной строке ввода | `placeholder`, `title`, `description`, `group`, `hidden`, `depends`, `visibility` |
337
- | `NumberInput` | Числовое поле | `default`, `title`, `description`, `hidden`, `depends`, `visibility` |
338
- | `SelectInput` | Выпадающий список | `items`, `title`, `group`, `default`, `hidden`, `depends`, `visibility` |
339
- | `CheckboxInput` | Чекбокс | `title`, `group`, `description`, `default`, `hidden`, `depends`, `visibility` |
340
- | `SwitchInput` | Switch | `title`, `group`, `description`, `default`, `hidden`, `depends`, `visibility` |
341
- | `FileInput` | Загрузка одного файла | `title`, `file_extensions`, `group`, `hidden`, `depends`, `visibility` |
342
- | `FilesInput` | Загрузка нескольких файлов | `title`, `file_extensions`, `group`, `hidden`, `depends`, `limit`, `visibility` |
333
+ | Тип | Описание | Основные параметры |
334
+ |--------------------------|-----------------------------------|--------------------------------------------------------------------------------------------|
335
+ | `MainInput` | Основное поле ввода | `placeholder`, `visibility` |
336
+ | `StringInput` | Текстовое поле | `default`, `title`, `description`, `hidden`, `depends`, `visibility` |
337
+ | `StringArrayInput` | Массив строк | `placeholder`, `title`, `description`, `group`, `hidden`, `depends`, `visibility` |
338
+ | `StringArrayInputInline` | Массив строк в одной строке ввода | `placeholder`, `title`, `description`, `group`, `hidden`, `depends`, `visibility` |
339
+ | `NumberInput` | Числовое поле | `default`, `title`, `description`, `hidden`, `depends`, `visibility` |
340
+ | `SelectInput` | Выпадающий список | `items`, `title`, `group`, `default`, `hidden`, `depends`, `visibility` |
341
+ | `CheckboxInput` | Чекбокс | `title`, `group`, `description`, `default`, `hidden`, `depends`, `visibility` |
342
+ | `SwitchInput` | Switch | `title`, `group`, `description`, `default`, `hidden`, `depends`, `visibility` |
343
+ | `FileInput` | Загрузка одного файла | `title`, `file_extensions`, `group`, `hidden`, `depends`, `view`, `visibility` |
344
+ | `FilesInput` | Загрузка нескольких файлов | `title`, `file_extensions`, `group`, `hidden`, `depends`, `limit`, `view`, `visibility` |
343
345
 
344
346
  #### Группировка полей
345
347
 
@@ -10,13 +10,13 @@ agent_lab_sdk/llm/throttled.py,sha256=faccDXiKkmFFfZkVrxFQDHxHutAAivsKDEpYlygfuq
10
10
  agent_lab_sdk/metrics/__init__.py,sha256=G4VSlzKwupPMM4c6vZaF1rnd0KusKarezDMjli9pVFw,57
11
11
  agent_lab_sdk/metrics/metrics.py,sha256=_XTT9vMG7T0u_D2pL371wm8GoBU5fodJ45D2RACnBJw,3439
12
12
  agent_lab_sdk/schema/__init__.py,sha256=cDVmQG5eYd2qO7DtDTt_YCISQyUXjLprUZ6KvKESKtU,554
13
- agent_lab_sdk/schema/input_types.py,sha256=ziazdlwmOXQv7d8syaT5D1wulgHEpxaQAThGxwHwU2k,11630
13
+ agent_lab_sdk/schema/input_types.py,sha256=0Nwm3R8P-PGqOjshXuPiX0HQA73Obdir1kHgaqFlzPA,11952
14
14
  agent_lab_sdk/schema/log_message.py,sha256=nadi6lZGRuDSPmfbYs9QPpRJUT9Pfy8Y7pGCvyFF5Mw,638
15
15
  agent_lab_sdk/storage/__init__.py,sha256=HAtUoqg3k0irqPMewayadVA9aXJOmYSxRr6a5J1scT0,174
16
16
  agent_lab_sdk/storage/storage.py,sha256=ELpt7GRwFD-aWa6ctinfA_QwcvzWLvKS0Wz8FlxVqAs,2075
17
17
  agent_lab_sdk/storage/storage_v2.py,sha256=ONseynX59xzWK17dfzxZvnii2rpz3Oo2Zo9Ck-lcGnw,1997
18
- agent_lab_sdk-0.1.45.dist-info/licenses/LICENSE,sha256=_TRXHkF3S9ilWBPdZcHLI_S-PRjK0L_SeOb2pcPAdV4,417
19
- agent_lab_sdk-0.1.45.dist-info/METADATA,sha256=yG9kDYbpWPtiLfSHPhoPZYHL2Bx1_l8M2RNW3f_cS_0,22820
20
- agent_lab_sdk-0.1.45.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
- agent_lab_sdk-0.1.45.dist-info/top_level.txt,sha256=E1efqkJ89KNmPBWdLzdMHeVtH0dYyCo4fhnSb81_15I,14
22
- agent_lab_sdk-0.1.45.dist-info/RECORD,,
18
+ agent_lab_sdk-0.1.46.dist-info/licenses/LICENSE,sha256=_TRXHkF3S9ilWBPdZcHLI_S-PRjK0L_SeOb2pcPAdV4,417
19
+ agent_lab_sdk-0.1.46.dist-info/METADATA,sha256=dHOVuTzjCB5mBJrju8rrZzBGDV265kxFgPpX0GDZ3eQ,23074
20
+ agent_lab_sdk-0.1.46.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
21
+ agent_lab_sdk-0.1.46.dist-info/top_level.txt,sha256=E1efqkJ89KNmPBWdLzdMHeVtH0dYyCo4fhnSb81_15I,14
22
+ agent_lab_sdk-0.1.46.dist-info/RECORD,,