letta-client 0.1.65__py3-none-any.whl → 0.1.67__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 letta-client might be problematic. Click here for more details.
- letta_client/__init__.py +92 -2
- letta_client/agents/__init__.py +36 -0
- letta_client/agents/messages/client.py +12 -10
- letta_client/agents/messages/types/messages_modify_response.py +7 -5
- letta_client/agents/types/__init__.py +68 -0
- letta_client/agents/types/agents_search_response_agents_item.py +2 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group.py +14 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_agent_ids.py +37 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_agent_ids_manager_agent_id.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_agent_ids_manager_agent_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_agent_ids_manager_type.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_agent_ids_max_turns.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_agent_ids_max_turns_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_agent_ids_termination_token.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_agent_ids_termination_token_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_item.py +10 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_item_agent_ids.py +37 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_item_agent_ids_manager_agent_id.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_item_agent_ids_manager_agent_id_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_item_agent_ids_manager_type.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_item_agent_ids_max_turns.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_item_agent_ids_max_turns_item.py +5 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_item_agent_ids_termination_token.py +13 -0
- letta_client/agents/types/agents_search_response_agents_item_multi_agent_group_item_agent_ids_termination_token_item.py +5 -0
- letta_client/base_client.py +4 -0
- letta_client/core/client_wrapper.py +1 -1
- letta_client/groups/__init__.py +2 -0
- letta_client/groups/client.py +1294 -0
- letta_client/templates/__init__.py +36 -0
- letta_client/templates/types/__init__.py +72 -0
- letta_client/templates/types/templates_create_agents_response_agents_item.py +4 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group.py +16 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_agent_ids.py +41 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_agent_ids_manager_agent_id.py +13 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_agent_ids_manager_agent_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_agent_ids_manager_type.py +7 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_agent_ids_max_turns.py +13 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_agent_ids_max_turns_item.py +5 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_agent_ids_termination_token.py +13 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_agent_ids_termination_token_item.py +7 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_item.py +10 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids.py +41 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_manager_agent_id.py +13 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_manager_agent_id_item.py +7 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_manager_type.py +7 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_max_turns.py +13 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_max_turns_item.py +7 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_termination_token.py +15 -0
- letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_termination_token_item.py +7 -0
- letta_client/types/__init__.py +18 -2
- letta_client/types/agent_state.py +6 -0
- letta_client/types/assistant_message.py +14 -2
- letta_client/types/assistant_message_content.py +2 -2
- letta_client/types/{update_reasoning_message_reasoning.py → components_schemas_text_content.py} +1 -2
- letta_client/types/dynamic_manager.py +33 -0
- letta_client/types/group.py +53 -0
- letta_client/types/group_create.py +33 -0
- letta_client/types/group_create_manager_config.py +8 -0
- letta_client/types/letta_streaming_request.py +43 -0
- letta_client/types/manager_type.py +5 -0
- letta_client/types/message.py +5 -0
- letta_client/types/reasoning_message.py +2 -2
- letta_client/types/round_robin_manager.py +23 -0
- letta_client/types/supervisor_manager.py +23 -0
- letta_client/types/system_message.py +7 -4
- letta_client/types/system_message_content.py +2 -2
- letta_client/types/tool_call_message.py +2 -2
- letta_client/types/tool_return_message.py +3 -3
- letta_client/types/update_assistant_message.py +7 -4
- letta_client/types/update_assistant_message_content.py +2 -2
- letta_client/types/update_reasoning_message.py +2 -3
- letta_client/types/update_system_message.py +7 -4
- letta_client/types/update_system_message_content.py +2 -2
- letta_client/types/update_user_message.py +7 -4
- letta_client/types/update_user_message_content.py +2 -2
- letta_client/types/user_message.py +7 -4
- letta_client/types/user_message_content.py +2 -2
- {letta_client-0.1.65.dist-info → letta_client-0.1.67.dist-info}/METADATA +1 -1
- {letta_client-0.1.65.dist-info → letta_client-0.1.67.dist-info}/RECORD +80 -34
- {letta_client-0.1.65.dist-info → letta_client-0.1.67.dist-info}/WHEEL +0 -0
|
@@ -67,6 +67,24 @@ from .types import (
|
|
|
67
67
|
TemplatesCreateAgentsResponseAgentsItemMessageIdsItem,
|
|
68
68
|
TemplatesCreateAgentsResponseAgentsItemMetadata,
|
|
69
69
|
TemplatesCreateAgentsResponseAgentsItemMetadataItem,
|
|
70
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroup,
|
|
71
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIds,
|
|
72
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerAgentId,
|
|
73
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerAgentIdItem,
|
|
74
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerType,
|
|
75
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsMaxTurns,
|
|
76
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsMaxTurnsItem,
|
|
77
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsTerminationToken,
|
|
78
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsTerminationTokenItem,
|
|
79
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItem,
|
|
80
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIds,
|
|
81
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerAgentId,
|
|
82
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerAgentIdItem,
|
|
83
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerType,
|
|
84
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsMaxTurns,
|
|
85
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsMaxTurnsItem,
|
|
86
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsTerminationToken,
|
|
87
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsTerminationTokenItem,
|
|
70
88
|
TemplatesCreateAgentsResponseAgentsItemOrganizationId,
|
|
71
89
|
TemplatesCreateAgentsResponseAgentsItemOrganizationIdItem,
|
|
72
90
|
TemplatesCreateAgentsResponseAgentsItemProjectId,
|
|
@@ -238,6 +256,24 @@ __all__ = [
|
|
|
238
256
|
"TemplatesCreateAgentsResponseAgentsItemMessageIdsItem",
|
|
239
257
|
"TemplatesCreateAgentsResponseAgentsItemMetadata",
|
|
240
258
|
"TemplatesCreateAgentsResponseAgentsItemMetadataItem",
|
|
259
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroup",
|
|
260
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIds",
|
|
261
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerAgentId",
|
|
262
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerAgentIdItem",
|
|
263
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerType",
|
|
264
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsMaxTurns",
|
|
265
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsMaxTurnsItem",
|
|
266
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsTerminationToken",
|
|
267
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsTerminationTokenItem",
|
|
268
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItem",
|
|
269
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIds",
|
|
270
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerAgentId",
|
|
271
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerAgentIdItem",
|
|
272
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerType",
|
|
273
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsMaxTurns",
|
|
274
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsMaxTurnsItem",
|
|
275
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsTerminationToken",
|
|
276
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsTerminationTokenItem",
|
|
241
277
|
"TemplatesCreateAgentsResponseAgentsItemOrganizationId",
|
|
242
278
|
"TemplatesCreateAgentsResponseAgentsItemOrganizationIdItem",
|
|
243
279
|
"TemplatesCreateAgentsResponseAgentsItemProjectId",
|
|
@@ -180,6 +180,60 @@ from .templates_create_agents_response_agents_item_metadata import TemplatesCrea
|
|
|
180
180
|
from .templates_create_agents_response_agents_item_metadata_item import (
|
|
181
181
|
TemplatesCreateAgentsResponseAgentsItemMetadataItem,
|
|
182
182
|
)
|
|
183
|
+
from .templates_create_agents_response_agents_item_multi_agent_group import (
|
|
184
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroup,
|
|
185
|
+
)
|
|
186
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids import (
|
|
187
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIds,
|
|
188
|
+
)
|
|
189
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids_manager_agent_id import (
|
|
190
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerAgentId,
|
|
191
|
+
)
|
|
192
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids_manager_agent_id_item import (
|
|
193
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerAgentIdItem,
|
|
194
|
+
)
|
|
195
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids_manager_type import (
|
|
196
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerType,
|
|
197
|
+
)
|
|
198
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids_max_turns import (
|
|
199
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsMaxTurns,
|
|
200
|
+
)
|
|
201
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids_max_turns_item import (
|
|
202
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsMaxTurnsItem,
|
|
203
|
+
)
|
|
204
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids_termination_token import (
|
|
205
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsTerminationToken,
|
|
206
|
+
)
|
|
207
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids_termination_token_item import (
|
|
208
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsTerminationTokenItem,
|
|
209
|
+
)
|
|
210
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item import (
|
|
211
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItem,
|
|
212
|
+
)
|
|
213
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids import (
|
|
214
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIds,
|
|
215
|
+
)
|
|
216
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_manager_agent_id import (
|
|
217
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerAgentId,
|
|
218
|
+
)
|
|
219
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_manager_agent_id_item import (
|
|
220
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerAgentIdItem,
|
|
221
|
+
)
|
|
222
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_manager_type import (
|
|
223
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerType,
|
|
224
|
+
)
|
|
225
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_max_turns import (
|
|
226
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsMaxTurns,
|
|
227
|
+
)
|
|
228
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_max_turns_item import (
|
|
229
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsMaxTurnsItem,
|
|
230
|
+
)
|
|
231
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_termination_token import (
|
|
232
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsTerminationToken,
|
|
233
|
+
)
|
|
234
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_termination_token_item import (
|
|
235
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsTerminationTokenItem,
|
|
236
|
+
)
|
|
183
237
|
from .templates_create_agents_response_agents_item_organization_id import (
|
|
184
238
|
TemplatesCreateAgentsResponseAgentsItemOrganizationId,
|
|
185
239
|
)
|
|
@@ -544,6 +598,24 @@ __all__ = [
|
|
|
544
598
|
"TemplatesCreateAgentsResponseAgentsItemMessageIdsItem",
|
|
545
599
|
"TemplatesCreateAgentsResponseAgentsItemMetadata",
|
|
546
600
|
"TemplatesCreateAgentsResponseAgentsItemMetadataItem",
|
|
601
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroup",
|
|
602
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIds",
|
|
603
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerAgentId",
|
|
604
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerAgentIdItem",
|
|
605
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerType",
|
|
606
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsMaxTurns",
|
|
607
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsMaxTurnsItem",
|
|
608
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsTerminationToken",
|
|
609
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsTerminationTokenItem",
|
|
610
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItem",
|
|
611
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIds",
|
|
612
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerAgentId",
|
|
613
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerAgentIdItem",
|
|
614
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerType",
|
|
615
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsMaxTurns",
|
|
616
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsMaxTurnsItem",
|
|
617
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsTerminationToken",
|
|
618
|
+
"TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsTerminationTokenItem",
|
|
547
619
|
"TemplatesCreateAgentsResponseAgentsItemOrganizationId",
|
|
548
620
|
"TemplatesCreateAgentsResponseAgentsItemOrganizationIdItem",
|
|
549
621
|
"TemplatesCreateAgentsResponseAgentsItemProjectId",
|
|
@@ -41,6 +41,9 @@ from .templates_create_agents_response_agents_item_identity_ids import (
|
|
|
41
41
|
from .templates_create_agents_response_agents_item_message_buffer_autoclear import (
|
|
42
42
|
TemplatesCreateAgentsResponseAgentsItemMessageBufferAutoclear,
|
|
43
43
|
)
|
|
44
|
+
from .templates_create_agents_response_agents_item_multi_agent_group import (
|
|
45
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroup,
|
|
46
|
+
)
|
|
44
47
|
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
45
48
|
import pydantic
|
|
46
49
|
|
|
@@ -73,6 +76,7 @@ class TemplatesCreateAgentsResponseAgentsItem(UncheckedBaseModel):
|
|
|
73
76
|
base_template_id: typing.Optional[TemplatesCreateAgentsResponseAgentsItemBaseTemplateId] = None
|
|
74
77
|
identity_ids: typing.Optional[TemplatesCreateAgentsResponseAgentsItemIdentityIds] = None
|
|
75
78
|
message_buffer_autoclear: typing.Optional[TemplatesCreateAgentsResponseAgentsItemMessageBufferAutoclear] = None
|
|
79
|
+
multi_agent_group: typing.Optional[TemplatesCreateAgentsResponseAgentsItemMultiAgentGroup] = None
|
|
76
80
|
|
|
77
81
|
if IS_PYDANTIC_V2:
|
|
78
82
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids import (
|
|
5
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIds,
|
|
6
|
+
)
|
|
7
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item import (
|
|
8
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItem,
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroup = typing.Union[
|
|
12
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIds,
|
|
13
|
+
typing.Optional[str],
|
|
14
|
+
typing.List[typing.Optional[TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItem]],
|
|
15
|
+
typing.Optional[typing.Any],
|
|
16
|
+
]
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids_manager_type import (
|
|
5
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerType,
|
|
6
|
+
)
|
|
7
|
+
import typing
|
|
8
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids_manager_agent_id import (
|
|
9
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerAgentId,
|
|
10
|
+
)
|
|
11
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids_termination_token import (
|
|
12
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsTerminationToken,
|
|
13
|
+
)
|
|
14
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids_max_turns import (
|
|
15
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsMaxTurns,
|
|
16
|
+
)
|
|
17
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
18
|
+
import pydantic
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIds(UncheckedBaseModel):
|
|
22
|
+
id: str
|
|
23
|
+
manager_type: TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerType
|
|
24
|
+
agent_ids: typing.List[str]
|
|
25
|
+
description: str
|
|
26
|
+
manager_agent_id: typing.Optional[TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerAgentId] = (
|
|
27
|
+
None
|
|
28
|
+
)
|
|
29
|
+
termination_token: typing.Optional[
|
|
30
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsTerminationToken
|
|
31
|
+
] = None
|
|
32
|
+
max_turns: typing.Optional[TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsMaxTurns] = None
|
|
33
|
+
|
|
34
|
+
if IS_PYDANTIC_V2:
|
|
35
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
36
|
+
else:
|
|
37
|
+
|
|
38
|
+
class Config:
|
|
39
|
+
frozen = True
|
|
40
|
+
smart_union = True
|
|
41
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids_manager_agent_id_item import (
|
|
5
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerAgentIdItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerAgentId = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[typing.Optional[TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsManagerAgentIdItem]],
|
|
12
|
+
typing.Optional[typing.Any],
|
|
13
|
+
]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids_max_turns_item import (
|
|
5
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsMaxTurnsItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsMaxTurns = typing.Union[
|
|
9
|
+
float,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[typing.Optional[TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsMaxTurnsItem]],
|
|
12
|
+
typing.Optional[typing.Any],
|
|
13
|
+
]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_agent_ids_termination_token_item import (
|
|
5
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsTerminationTokenItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsTerminationToken = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[typing.Optional[TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupAgentIdsTerminationTokenItem]],
|
|
12
|
+
typing.Optional[typing.Any],
|
|
13
|
+
]
|
letta_client/templates/types/templates_create_agents_response_agents_item_multi_agent_group_item.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids import (
|
|
5
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIds,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItem = typing.Union[
|
|
9
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIds, typing.Optional[str]
|
|
10
|
+
]
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_manager_type import (
|
|
5
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerType,
|
|
6
|
+
)
|
|
7
|
+
import typing
|
|
8
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_manager_agent_id import (
|
|
9
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerAgentId,
|
|
10
|
+
)
|
|
11
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_termination_token import (
|
|
12
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsTerminationToken,
|
|
13
|
+
)
|
|
14
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_max_turns import (
|
|
15
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsMaxTurns,
|
|
16
|
+
)
|
|
17
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
18
|
+
import pydantic
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIds(UncheckedBaseModel):
|
|
22
|
+
id: str
|
|
23
|
+
manager_type: TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerType
|
|
24
|
+
agent_ids: typing.List[str]
|
|
25
|
+
description: str
|
|
26
|
+
manager_agent_id: typing.Optional[
|
|
27
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerAgentId
|
|
28
|
+
] = None
|
|
29
|
+
termination_token: typing.Optional[
|
|
30
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsTerminationToken
|
|
31
|
+
] = None
|
|
32
|
+
max_turns: typing.Optional[TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsMaxTurns] = None
|
|
33
|
+
|
|
34
|
+
if IS_PYDANTIC_V2:
|
|
35
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
36
|
+
else:
|
|
37
|
+
|
|
38
|
+
class Config:
|
|
39
|
+
frozen = True
|
|
40
|
+
smart_union = True
|
|
41
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_manager_agent_id_item import (
|
|
5
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerAgentIdItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerAgentId = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[typing.Optional[TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsManagerAgentIdItem]],
|
|
12
|
+
typing.Optional[typing.Any],
|
|
13
|
+
]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_max_turns_item import (
|
|
5
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsMaxTurnsItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsMaxTurns = typing.Union[
|
|
9
|
+
float,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[typing.Optional[TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsMaxTurnsItem]],
|
|
12
|
+
typing.Optional[typing.Any],
|
|
13
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
from .templates_create_agents_response_agents_item_multi_agent_group_item_agent_ids_termination_token_item import (
|
|
5
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsTerminationTokenItem,
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsTerminationToken = typing.Union[
|
|
9
|
+
str,
|
|
10
|
+
typing.Optional[str],
|
|
11
|
+
typing.List[
|
|
12
|
+
typing.Optional[TemplatesCreateAgentsResponseAgentsItemMultiAgentGroupItemAgentIdsTerminationTokenItem]
|
|
13
|
+
],
|
|
14
|
+
typing.Optional[typing.Any],
|
|
15
|
+
]
|
letta_client/types/__init__.py
CHANGED
|
@@ -67,11 +67,13 @@ from .completion_create_params_streaming_response_format import CompletionCreate
|
|
|
67
67
|
from .completion_create_params_streaming_service_tier import CompletionCreateParamsStreamingServiceTier
|
|
68
68
|
from .completion_create_params_streaming_stop import CompletionCreateParamsStreamingStop
|
|
69
69
|
from .completion_create_params_streaming_tool_choice import CompletionCreateParamsStreamingToolChoice
|
|
70
|
+
from .components_schemas_text_content import ComponentsSchemasTextContent
|
|
70
71
|
from .conditional_tool_rule import ConditionalToolRule
|
|
71
72
|
from .conflict_error_body import ConflictErrorBody
|
|
72
73
|
from .context_window_overview import ContextWindowOverview
|
|
73
74
|
from .continue_tool_rule import ContinueToolRule
|
|
74
75
|
from .create_block import CreateBlock
|
|
76
|
+
from .dynamic_manager import DynamicManager
|
|
75
77
|
from .e_2_b_sandbox_config import E2BSandboxConfig
|
|
76
78
|
from .embedding_config import EmbeddingConfig
|
|
77
79
|
from .embedding_config_embedding_endpoint_type import EmbeddingConfigEmbeddingEndpointType
|
|
@@ -83,6 +85,9 @@ from .function_definition_input import FunctionDefinitionInput
|
|
|
83
85
|
from .function_definition_output import FunctionDefinitionOutput
|
|
84
86
|
from .function_output import FunctionOutput
|
|
85
87
|
from .function_tool import FunctionTool
|
|
88
|
+
from .group import Group
|
|
89
|
+
from .group_create import GroupCreate
|
|
90
|
+
from .group_create_manager_config import GroupCreateManagerConfig
|
|
86
91
|
from .health import Health
|
|
87
92
|
from .http_validation_error import HttpValidationError
|
|
88
93
|
from .identity import Identity
|
|
@@ -105,11 +110,13 @@ from .letta_message_union import LettaMessageUnion
|
|
|
105
110
|
from .letta_request import LettaRequest
|
|
106
111
|
from .letta_request_config import LettaRequestConfig
|
|
107
112
|
from .letta_response import LettaResponse
|
|
113
|
+
from .letta_streaming_request import LettaStreamingRequest
|
|
108
114
|
from .letta_usage_statistics import LettaUsageStatistics
|
|
109
115
|
from .llm_config import LlmConfig
|
|
110
116
|
from .llm_config_model_endpoint_type import LlmConfigModelEndpointType
|
|
111
117
|
from .local_sandbox_config import LocalSandboxConfig
|
|
112
118
|
from .local_server_config import LocalServerConfig
|
|
119
|
+
from .manager_type import ManagerType
|
|
113
120
|
from .mcp_server_type import McpServerType
|
|
114
121
|
from .mcp_tool import McpTool
|
|
115
122
|
from .memory import Memory
|
|
@@ -136,6 +143,7 @@ from .reasoning_message import ReasoningMessage
|
|
|
136
143
|
from .response_format_json_object import ResponseFormatJsonObject
|
|
137
144
|
from .response_format_json_schema import ResponseFormatJsonSchema
|
|
138
145
|
from .response_format_text import ResponseFormatText
|
|
146
|
+
from .round_robin_manager import RoundRobinManager
|
|
139
147
|
from .run import Run
|
|
140
148
|
from .sandbox_config import SandboxConfig
|
|
141
149
|
from .sandbox_config_create import SandboxConfigCreate
|
|
@@ -149,6 +157,7 @@ from .sandbox_type import SandboxType
|
|
|
149
157
|
from .source import Source
|
|
150
158
|
from .sse_server_config import SseServerConfig
|
|
151
159
|
from .step import Step
|
|
160
|
+
from .supervisor_manager import SupervisorManager
|
|
152
161
|
from .system_message import SystemMessage
|
|
153
162
|
from .system_message_content import SystemMessageContent
|
|
154
163
|
from .terminal_tool_rule import TerminalToolRule
|
|
@@ -167,7 +176,6 @@ from .tool_type import ToolType
|
|
|
167
176
|
from .update_assistant_message import UpdateAssistantMessage
|
|
168
177
|
from .update_assistant_message_content import UpdateAssistantMessageContent
|
|
169
178
|
from .update_reasoning_message import UpdateReasoningMessage
|
|
170
|
-
from .update_reasoning_message_reasoning import UpdateReasoningMessageReasoning
|
|
171
179
|
from .update_system_message import UpdateSystemMessage
|
|
172
180
|
from .update_system_message_content import UpdateSystemMessageContent
|
|
173
181
|
from .update_user_message import UpdateUserMessage
|
|
@@ -253,11 +261,13 @@ __all__ = [
|
|
|
253
261
|
"CompletionCreateParamsStreamingServiceTier",
|
|
254
262
|
"CompletionCreateParamsStreamingStop",
|
|
255
263
|
"CompletionCreateParamsStreamingToolChoice",
|
|
264
|
+
"ComponentsSchemasTextContent",
|
|
256
265
|
"ConditionalToolRule",
|
|
257
266
|
"ConflictErrorBody",
|
|
258
267
|
"ContextWindowOverview",
|
|
259
268
|
"ContinueToolRule",
|
|
260
269
|
"CreateBlock",
|
|
270
|
+
"DynamicManager",
|
|
261
271
|
"E2BSandboxConfig",
|
|
262
272
|
"EmbeddingConfig",
|
|
263
273
|
"EmbeddingConfigEmbeddingEndpointType",
|
|
@@ -269,6 +279,9 @@ __all__ = [
|
|
|
269
279
|
"FunctionDefinitionOutput",
|
|
270
280
|
"FunctionOutput",
|
|
271
281
|
"FunctionTool",
|
|
282
|
+
"Group",
|
|
283
|
+
"GroupCreate",
|
|
284
|
+
"GroupCreateManagerConfig",
|
|
272
285
|
"Health",
|
|
273
286
|
"HttpValidationError",
|
|
274
287
|
"Identity",
|
|
@@ -291,11 +304,13 @@ __all__ = [
|
|
|
291
304
|
"LettaRequest",
|
|
292
305
|
"LettaRequestConfig",
|
|
293
306
|
"LettaResponse",
|
|
307
|
+
"LettaStreamingRequest",
|
|
294
308
|
"LettaUsageStatistics",
|
|
295
309
|
"LlmConfig",
|
|
296
310
|
"LlmConfigModelEndpointType",
|
|
297
311
|
"LocalSandboxConfig",
|
|
298
312
|
"LocalServerConfig",
|
|
313
|
+
"ManagerType",
|
|
299
314
|
"McpServerType",
|
|
300
315
|
"McpTool",
|
|
301
316
|
"Memory",
|
|
@@ -318,6 +333,7 @@ __all__ = [
|
|
|
318
333
|
"ResponseFormatJsonObject",
|
|
319
334
|
"ResponseFormatJsonSchema",
|
|
320
335
|
"ResponseFormatText",
|
|
336
|
+
"RoundRobinManager",
|
|
321
337
|
"Run",
|
|
322
338
|
"SandboxConfig",
|
|
323
339
|
"SandboxConfigCreate",
|
|
@@ -331,6 +347,7 @@ __all__ = [
|
|
|
331
347
|
"Source",
|
|
332
348
|
"SseServerConfig",
|
|
333
349
|
"Step",
|
|
350
|
+
"SupervisorManager",
|
|
334
351
|
"SystemMessage",
|
|
335
352
|
"SystemMessageContent",
|
|
336
353
|
"TerminalToolRule",
|
|
@@ -349,7 +366,6 @@ __all__ = [
|
|
|
349
366
|
"UpdateAssistantMessage",
|
|
350
367
|
"UpdateAssistantMessageContent",
|
|
351
368
|
"UpdateReasoningMessage",
|
|
352
|
-
"UpdateReasoningMessageReasoning",
|
|
353
369
|
"UpdateSystemMessage",
|
|
354
370
|
"UpdateSystemMessageContent",
|
|
355
371
|
"UpdateUserMessage",
|
|
@@ -12,6 +12,7 @@ from .memory import Memory
|
|
|
12
12
|
from .tool import Tool
|
|
13
13
|
from .source import Source
|
|
14
14
|
from .agent_environment_variable import AgentEnvironmentVariable
|
|
15
|
+
from .group import Group
|
|
15
16
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
16
17
|
|
|
17
18
|
|
|
@@ -153,6 +154,11 @@ class AgentState(UncheckedBaseModel):
|
|
|
153
154
|
If set to True, the agent will not remember previous messages (though the agent will still retain state via core memory blocks and archival/recall memory). Not recommended unless you have an advanced use case.
|
|
154
155
|
"""
|
|
155
156
|
|
|
157
|
+
multi_agent_group: typing.Optional[Group] = pydantic.Field(default=None)
|
|
158
|
+
"""
|
|
159
|
+
The multi-agent group that this agent manages
|
|
160
|
+
"""
|
|
161
|
+
|
|
156
162
|
if IS_PYDANTIC_V2:
|
|
157
163
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
158
164
|
else:
|
|
@@ -4,15 +4,27 @@ from ..core.unchecked_base_model import UncheckedBaseModel
|
|
|
4
4
|
import datetime as dt
|
|
5
5
|
import typing
|
|
6
6
|
from .assistant_message_content import AssistantMessageContent
|
|
7
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
7
|
import pydantic
|
|
8
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
class AssistantMessage(UncheckedBaseModel):
|
|
12
|
+
"""
|
|
13
|
+
A message sent by the LLM in response to user input. Used in the LLM context.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
id (str): The ID of the message
|
|
17
|
+
date (datetime): The date the message was created in ISO format
|
|
18
|
+
content (Union[str, List[LettaMessageContentUnion]]): The message content sent by the agent (can be a string or an array of content parts)
|
|
19
|
+
"""
|
|
20
|
+
|
|
12
21
|
id: str
|
|
13
22
|
date: dt.datetime
|
|
14
23
|
message_type: typing.Literal["assistant_message"] = "assistant_message"
|
|
15
|
-
content: AssistantMessageContent
|
|
24
|
+
content: AssistantMessageContent = pydantic.Field()
|
|
25
|
+
"""
|
|
26
|
+
The message content sent by the agent (can be a string or an array of content parts)
|
|
27
|
+
"""
|
|
16
28
|
|
|
17
29
|
if IS_PYDANTIC_V2:
|
|
18
30
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
import typing
|
|
4
|
-
from .
|
|
4
|
+
from .components_schemas_text_content import ComponentsSchemasTextContent
|
|
5
5
|
|
|
6
|
-
AssistantMessageContent = typing.Union[
|
|
6
|
+
AssistantMessageContent = typing.Union[typing.List[ComponentsSchemasTextContent], str]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import typing
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class DynamicManager(UncheckedBaseModel):
|
|
10
|
+
manager_type: typing.Literal["dynamic"] = "dynamic"
|
|
11
|
+
manager_agent_id: str = pydantic.Field()
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
termination_token: typing.Optional[str] = pydantic.Field(default=None)
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
max_turns: typing.Optional[int] = pydantic.Field(default=None)
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
if IS_PYDANTIC_V2:
|
|
27
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
28
|
+
else:
|
|
29
|
+
|
|
30
|
+
class Config:
|
|
31
|
+
frozen = True
|
|
32
|
+
smart_union = True
|
|
33
|
+
extra = pydantic.Extra.allow
|