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

@@ -52,6 +52,31 @@ def StringArrayInput(placeholder: str | None = None, title: str | None = None, d
52
52
  group: Group name for organizing inputs in the UI
53
53
  hidden: Whether the input should be hidden in the UI
54
54
 
55
+ Returns:
56
+ Type annotation for string array input field
57
+ """
58
+ return WithJsonSchema({
59
+ "type": "string[]",
60
+ "placeholder": placeholder,
61
+ "title": title,
62
+ "description": description,
63
+ "group": group,
64
+ "hidden": hidden,
65
+ })
66
+
67
+
68
+ def StringArrayInputInline(placeholder: str | None = None, title: str | None = None, description: str | None = None,
69
+ group: str | None = None, hidden: bool | None = False) -> type:
70
+ """
71
+ Factory function for creating a string array input inline type.
72
+
73
+ Args:
74
+ placeholder: Placeholder text for the input field
75
+ title: Title for the string array input
76
+ description: Description text for the string array input
77
+ group: Group name for organizing inputs in the UI
78
+ hidden: Whether the input should be hidden in the UI
79
+
55
80
  Returns:
56
81
  Type annotation for string array input field
57
82
  """
@@ -149,6 +174,31 @@ def CheckboxInput(title: str | None = None, group: str | None = None, descriptio
149
174
  })
150
175
 
151
176
 
177
+ def SwitchInput(title: str | None = None, group: str | None = None, description: str | None = None,
178
+ default: bool | None = False, hidden: bool | None = False) -> type:
179
+ """
180
+ Factory function for creating a switch input type.
181
+
182
+ Args:
183
+ title: Title for the switch
184
+ group: Group name for organizing inputs in the UI
185
+ description: Description text for the switch
186
+ default: Default checked state
187
+ hidden: Whether the input should be hidden in the UI
188
+
189
+ Returns:
190
+ Type annotation for switch input field
191
+ """
192
+ return WithJsonSchema({
193
+ "type": "switch",
194
+ "title": title,
195
+ "group": group,
196
+ "description": description,
197
+ "default": default,
198
+ "hidden": hidden,
199
+ })
200
+
201
+
152
202
  def FileInput(title: str | None = None, file_extensions: str | None = None, group: str | None = None, hidden: bool | None = False) -> type:
153
203
  """
154
204
  Factory function for creating a single file input type.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agent-lab-sdk
3
- Version: 0.1.20
3
+ Version: 0.1.21
4
4
  Summary: SDK для работы с Agent Lab
5
5
  Author-email: Andrew Ohurtsov <andermirik@yandex.com>
6
6
  License: Proprietary and Confidential — All Rights Reserved
@@ -301,16 +301,18 @@ class AgentState(BaseModel):
301
301
 
302
302
  #### Доступные фабричные функции
303
303
 
304
- | Тип | Описание | Основные параметры |
305
- |--------------------| ------------------------------------- | ----------------------------------------------------- |
306
- | `MainInput` | Основное поле ввода | `placeholder` |
307
- | `StringInput` | Текстовое поле | `default`, `title`, `description`, `hidden` |
308
- | `StringArrayInput` | Массив строк | `placeholder`, `title`, `description`, `group`, `hidden` |
309
- | `NumberInput` | Числовое поле | `default`, `title`, `description`, `hidden` |
310
- | `SelectInput` | Выпадающий список | `items`, `title`, `group`, `default`, `hidden` |
311
- | `CheckboxInput` | Чекбокс | `title`, `group`, `description`, `default`, `hidden` |
312
- | `FileInput` | Загрузка одного файла | `title`, `file_extensions`, `group`, `hidden` |
313
- | `FilesInput` | Загрузка нескольких файлов | `title`, `file_extensions`, `group`, `hidden` |
304
+ | Тип | Описание | Основные параметры |
305
+ |--------------------------|-----------------------------------|----------------------------------------------------------|
306
+ | `MainInput` | Основное поле ввода | `placeholder` |
307
+ | `StringInput` | Текстовое поле | `default`, `title`, `description`, `hidden` |
308
+ | `StringArrayInput` | Массив строк | `placeholder`, `title`, `description`, `group`, `hidden` |
309
+ | `StringArrayInputInline` | Массив строк в одной строке ввода | `placeholder`, `title`, `description`, `group`, `hidden` |
310
+ | `NumberInput` | Числовое поле | `default`, `title`, `description`, `hidden` |
311
+ | `SelectInput` | Выпадающий список | `items`, `title`, `group`, `default`, `hidden` |
312
+ | `CheckboxInput` | Чекбокс | `title`, `group`, `description`, `default`, `hidden` |
313
+ | `SwitchInput` | Switch | `title`, `group`, `description`, `default`, `hidden` |
314
+ | `FileInput` | Загрузка одного файла | `title`, `file_extensions`, `group`, `hidden` |
315
+ | `FilesInput` | Загрузка нескольких файлов | `title`, `file_extensions`, `group`, `hidden` |
314
316
 
315
317
  #### Группировка полей
316
318
 
@@ -9,12 +9,12 @@ agent_lab_sdk/llm/throttled.py,sha256=9_nm1i3Uuep0VEWsY1KNCllZA-vM202XVdlgXhgC8B
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=RJW9WaZyyF4TT-rxHJMb9iq40yYYZoCcmUWVtOefQz4,427
12
- agent_lab_sdk/schema/input_types.py,sha256=mL-gkZ0SohdzWzHZyemomG0NIl3NcnJ2UAuXAFTnhLY,6097
12
+ agent_lab_sdk/schema/input_types.py,sha256=lPthHUGAoY4OHtQk03vgprxZ5ZPFHP8GbueLKBZ6gmY,7739
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.20.dist-info/licenses/LICENSE,sha256=_TRXHkF3S9ilWBPdZcHLI_S-PRjK0L_SeOb2pcPAdV4,417
17
- agent_lab_sdk-0.1.20.dist-info/METADATA,sha256=jqfgfPzaAHkzdPtr7D4D8Eiv05NZ8jqYNuQ7aaef7bo,17442
18
- agent_lab_sdk-0.1.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
19
- agent_lab_sdk-0.1.20.dist-info/top_level.txt,sha256=E1efqkJ89KNmPBWdLzdMHeVtH0dYyCo4fhnSb81_15I,14
20
- agent_lab_sdk-0.1.20.dist-info/RECORD,,
16
+ agent_lab_sdk-0.1.21.dist-info/licenses/LICENSE,sha256=_TRXHkF3S9ilWBPdZcHLI_S-PRjK0L_SeOb2pcPAdV4,417
17
+ agent_lab_sdk-0.1.21.dist-info/METADATA,sha256=sOr8JIUCu-p4FD6p6tuJiLzDMOK5JLPiy-EXtZkiCIk,17767
18
+ agent_lab_sdk-0.1.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
19
+ agent_lab_sdk-0.1.21.dist-info/top_level.txt,sha256=E1efqkJ89KNmPBWdLzdMHeVtH0dYyCo4fhnSb81_15I,14
20
+ agent_lab_sdk-0.1.21.dist-info/RECORD,,