letta-client 0.1.65__py3-none-any.whl → 0.1.66__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 +90 -0
- letta_client/agents/__init__.py +36 -0
- letta_client/agents/messages/client.py +0 -6
- 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 +16 -0
- letta_client/types/agent_state.py +6 -0
- 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/round_robin_manager.py +23 -0
- letta_client/types/supervisor_manager.py +23 -0
- {letta_client-0.1.65.dist-info → letta_client-0.1.66.dist-info}/METADATA +1 -1
- {letta_client-0.1.65.dist-info → letta_client-0.1.66.dist-info}/RECORD +62 -16
- {letta_client-0.1.65.dist-info → letta_client-0.1.66.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
|
@@ -72,6 +72,7 @@ from .conflict_error_body import ConflictErrorBody
|
|
|
72
72
|
from .context_window_overview import ContextWindowOverview
|
|
73
73
|
from .continue_tool_rule import ContinueToolRule
|
|
74
74
|
from .create_block import CreateBlock
|
|
75
|
+
from .dynamic_manager import DynamicManager
|
|
75
76
|
from .e_2_b_sandbox_config import E2BSandboxConfig
|
|
76
77
|
from .embedding_config import EmbeddingConfig
|
|
77
78
|
from .embedding_config_embedding_endpoint_type import EmbeddingConfigEmbeddingEndpointType
|
|
@@ -83,6 +84,9 @@ from .function_definition_input import FunctionDefinitionInput
|
|
|
83
84
|
from .function_definition_output import FunctionDefinitionOutput
|
|
84
85
|
from .function_output import FunctionOutput
|
|
85
86
|
from .function_tool import FunctionTool
|
|
87
|
+
from .group import Group
|
|
88
|
+
from .group_create import GroupCreate
|
|
89
|
+
from .group_create_manager_config import GroupCreateManagerConfig
|
|
86
90
|
from .health import Health
|
|
87
91
|
from .http_validation_error import HttpValidationError
|
|
88
92
|
from .identity import Identity
|
|
@@ -105,11 +109,13 @@ from .letta_message_union import LettaMessageUnion
|
|
|
105
109
|
from .letta_request import LettaRequest
|
|
106
110
|
from .letta_request_config import LettaRequestConfig
|
|
107
111
|
from .letta_response import LettaResponse
|
|
112
|
+
from .letta_streaming_request import LettaStreamingRequest
|
|
108
113
|
from .letta_usage_statistics import LettaUsageStatistics
|
|
109
114
|
from .llm_config import LlmConfig
|
|
110
115
|
from .llm_config_model_endpoint_type import LlmConfigModelEndpointType
|
|
111
116
|
from .local_sandbox_config import LocalSandboxConfig
|
|
112
117
|
from .local_server_config import LocalServerConfig
|
|
118
|
+
from .manager_type import ManagerType
|
|
113
119
|
from .mcp_server_type import McpServerType
|
|
114
120
|
from .mcp_tool import McpTool
|
|
115
121
|
from .memory import Memory
|
|
@@ -136,6 +142,7 @@ from .reasoning_message import ReasoningMessage
|
|
|
136
142
|
from .response_format_json_object import ResponseFormatJsonObject
|
|
137
143
|
from .response_format_json_schema import ResponseFormatJsonSchema
|
|
138
144
|
from .response_format_text import ResponseFormatText
|
|
145
|
+
from .round_robin_manager import RoundRobinManager
|
|
139
146
|
from .run import Run
|
|
140
147
|
from .sandbox_config import SandboxConfig
|
|
141
148
|
from .sandbox_config_create import SandboxConfigCreate
|
|
@@ -149,6 +156,7 @@ from .sandbox_type import SandboxType
|
|
|
149
156
|
from .source import Source
|
|
150
157
|
from .sse_server_config import SseServerConfig
|
|
151
158
|
from .step import Step
|
|
159
|
+
from .supervisor_manager import SupervisorManager
|
|
152
160
|
from .system_message import SystemMessage
|
|
153
161
|
from .system_message_content import SystemMessageContent
|
|
154
162
|
from .terminal_tool_rule import TerminalToolRule
|
|
@@ -258,6 +266,7 @@ __all__ = [
|
|
|
258
266
|
"ContextWindowOverview",
|
|
259
267
|
"ContinueToolRule",
|
|
260
268
|
"CreateBlock",
|
|
269
|
+
"DynamicManager",
|
|
261
270
|
"E2BSandboxConfig",
|
|
262
271
|
"EmbeddingConfig",
|
|
263
272
|
"EmbeddingConfigEmbeddingEndpointType",
|
|
@@ -269,6 +278,9 @@ __all__ = [
|
|
|
269
278
|
"FunctionDefinitionOutput",
|
|
270
279
|
"FunctionOutput",
|
|
271
280
|
"FunctionTool",
|
|
281
|
+
"Group",
|
|
282
|
+
"GroupCreate",
|
|
283
|
+
"GroupCreateManagerConfig",
|
|
272
284
|
"Health",
|
|
273
285
|
"HttpValidationError",
|
|
274
286
|
"Identity",
|
|
@@ -291,11 +303,13 @@ __all__ = [
|
|
|
291
303
|
"LettaRequest",
|
|
292
304
|
"LettaRequestConfig",
|
|
293
305
|
"LettaResponse",
|
|
306
|
+
"LettaStreamingRequest",
|
|
294
307
|
"LettaUsageStatistics",
|
|
295
308
|
"LlmConfig",
|
|
296
309
|
"LlmConfigModelEndpointType",
|
|
297
310
|
"LocalSandboxConfig",
|
|
298
311
|
"LocalServerConfig",
|
|
312
|
+
"ManagerType",
|
|
299
313
|
"McpServerType",
|
|
300
314
|
"McpTool",
|
|
301
315
|
"Memory",
|
|
@@ -318,6 +332,7 @@ __all__ = [
|
|
|
318
332
|
"ResponseFormatJsonObject",
|
|
319
333
|
"ResponseFormatJsonSchema",
|
|
320
334
|
"ResponseFormatText",
|
|
335
|
+
"RoundRobinManager",
|
|
321
336
|
"Run",
|
|
322
337
|
"SandboxConfig",
|
|
323
338
|
"SandboxConfigCreate",
|
|
@@ -331,6 +346,7 @@ __all__ = [
|
|
|
331
346
|
"Source",
|
|
332
347
|
"SseServerConfig",
|
|
333
348
|
"Step",
|
|
349
|
+
"SupervisorManager",
|
|
334
350
|
"SystemMessage",
|
|
335
351
|
"SystemMessageContent",
|
|
336
352
|
"TerminalToolRule",
|
|
@@ -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:
|
|
@@ -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
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
+
import pydantic
|
|
5
|
+
from .manager_type import ManagerType
|
|
6
|
+
import typing
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Group(UncheckedBaseModel):
|
|
11
|
+
id: str = pydantic.Field()
|
|
12
|
+
"""
|
|
13
|
+
The id of the group. Assigned by the database.
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
manager_type: ManagerType = pydantic.Field()
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
agent_ids: typing.List[str] = pydantic.Field()
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
description: str = pydantic.Field()
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
manager_agent_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
termination_token: typing.Optional[str] = pydantic.Field(default=None)
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
max_turns: typing.Optional[int] = pydantic.Field(default=None)
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
if IS_PYDANTIC_V2:
|
|
47
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
48
|
+
else:
|
|
49
|
+
|
|
50
|
+
class Config:
|
|
51
|
+
frozen = True
|
|
52
|
+
smart_union = True
|
|
53
|
+
extra = pydantic.Extra.allow
|