letta-client 0.1.37__py3-none-any.whl → 0.1.39__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 +20 -0
- letta_client/agents/__init__.py +8 -0
- letta_client/agents/client.py +10 -0
- letta_client/agents/types/__init__.py +16 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item.py +4 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item_tool_name.py +23 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item_tool_name_type.py +7 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_tool_name.py +23 -0
- letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_tool_name_type.py +7 -0
- letta_client/agents/types/create_agent_request_tool_rules_item.py +4 -1
- letta_client/agents/types/update_agent_tool_rules_item.py +4 -1
- letta_client/core/client_wrapper.py +1 -1
- letta_client/identities/client.py +836 -36
- letta_client/templates/__init__.py +8 -0
- letta_client/templates/types/__init__.py +16 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item.py +4 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_tool_name.py +23 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_tool_name_type.py +7 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_tool_name.py +23 -0
- letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_tool_name_type.py +7 -0
- letta_client/types/__init__.py +4 -0
- letta_client/types/agent_state_tool_rules_item.py +4 -1
- letta_client/types/continue_tool_rule.py +28 -0
- letta_client/types/identity.py +1 -1
- letta_client/types/identity_create.py +43 -0
- {letta_client-0.1.37.dist-info → letta_client-0.1.39.dist-info}/METADATA +1 -1
- {letta_client-0.1.37.dist-info → letta_client-0.1.39.dist-info}/RECORD +28 -18
- {letta_client-0.1.37.dist-info → letta_client-0.1.39.dist-info}/WHEEL +0 -0
letta_client/__init__.py
CHANGED
|
@@ -72,6 +72,7 @@ from .types import (
|
|
|
72
72
|
ConditionalToolRule,
|
|
73
73
|
ConflictErrorBody,
|
|
74
74
|
ContextWindowOverview,
|
|
75
|
+
ContinueToolRule,
|
|
75
76
|
CreateBlock,
|
|
76
77
|
E2BSandboxConfig,
|
|
77
78
|
EmbeddingConfig,
|
|
@@ -85,6 +86,7 @@ from .types import (
|
|
|
85
86
|
Health,
|
|
86
87
|
HttpValidationError,
|
|
87
88
|
Identity,
|
|
89
|
+
IdentityCreate,
|
|
88
90
|
IdentityType,
|
|
89
91
|
ImageUrl,
|
|
90
92
|
ImageUrlDetail,
|
|
@@ -304,10 +306,14 @@ from .agents import (
|
|
|
304
306
|
AgentsSearchResponseAgentsItemToolRulesItemItemChildrenType,
|
|
305
307
|
AgentsSearchResponseAgentsItemToolRulesItemItemOne,
|
|
306
308
|
AgentsSearchResponseAgentsItemToolRulesItemItemOneType,
|
|
309
|
+
AgentsSearchResponseAgentsItemToolRulesItemItemToolName,
|
|
310
|
+
AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType,
|
|
307
311
|
AgentsSearchResponseAgentsItemToolRulesItemItemTwo,
|
|
308
312
|
AgentsSearchResponseAgentsItemToolRulesItemItemTwoType,
|
|
309
313
|
AgentsSearchResponseAgentsItemToolRulesItemOne,
|
|
310
314
|
AgentsSearchResponseAgentsItemToolRulesItemOneType,
|
|
315
|
+
AgentsSearchResponseAgentsItemToolRulesItemToolName,
|
|
316
|
+
AgentsSearchResponseAgentsItemToolRulesItemToolNameType,
|
|
311
317
|
AgentsSearchResponseAgentsItemToolRulesItemTwo,
|
|
312
318
|
AgentsSearchResponseAgentsItemToolRulesItemTwoType,
|
|
313
319
|
AgentsSearchResponseAgentsItemToolsItem,
|
|
@@ -473,10 +479,14 @@ from .templates import (
|
|
|
473
479
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType,
|
|
474
480
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOne,
|
|
475
481
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOneType,
|
|
482
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolName,
|
|
483
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolNameType,
|
|
476
484
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwo,
|
|
477
485
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwoType,
|
|
478
486
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOne,
|
|
479
487
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOneType,
|
|
488
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolName,
|
|
489
|
+
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolNameType,
|
|
480
490
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwo,
|
|
481
491
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwoType,
|
|
482
492
|
TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem,
|
|
@@ -652,10 +662,14 @@ __all__ = [
|
|
|
652
662
|
"AgentsSearchResponseAgentsItemToolRulesItemItemChildrenType",
|
|
653
663
|
"AgentsSearchResponseAgentsItemToolRulesItemItemOne",
|
|
654
664
|
"AgentsSearchResponseAgentsItemToolRulesItemItemOneType",
|
|
665
|
+
"AgentsSearchResponseAgentsItemToolRulesItemItemToolName",
|
|
666
|
+
"AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType",
|
|
655
667
|
"AgentsSearchResponseAgentsItemToolRulesItemItemTwo",
|
|
656
668
|
"AgentsSearchResponseAgentsItemToolRulesItemItemTwoType",
|
|
657
669
|
"AgentsSearchResponseAgentsItemToolRulesItemOne",
|
|
658
670
|
"AgentsSearchResponseAgentsItemToolRulesItemOneType",
|
|
671
|
+
"AgentsSearchResponseAgentsItemToolRulesItemToolName",
|
|
672
|
+
"AgentsSearchResponseAgentsItemToolRulesItemToolNameType",
|
|
659
673
|
"AgentsSearchResponseAgentsItemToolRulesItemTwo",
|
|
660
674
|
"AgentsSearchResponseAgentsItemToolRulesItemTwoType",
|
|
661
675
|
"AgentsSearchResponseAgentsItemToolsItem",
|
|
@@ -744,6 +758,7 @@ __all__ = [
|
|
|
744
758
|
"ConflictError",
|
|
745
759
|
"ConflictErrorBody",
|
|
746
760
|
"ContextWindowOverview",
|
|
761
|
+
"ContinueToolRule",
|
|
747
762
|
"CreateAgentRequestToolRulesItem",
|
|
748
763
|
"CreateBlock",
|
|
749
764
|
"E2BSandboxConfig",
|
|
@@ -758,6 +773,7 @@ __all__ = [
|
|
|
758
773
|
"Health",
|
|
759
774
|
"HttpValidationError",
|
|
760
775
|
"Identity",
|
|
776
|
+
"IdentityCreate",
|
|
761
777
|
"IdentityType",
|
|
762
778
|
"ImageUrl",
|
|
763
779
|
"ImageUrlDetail",
|
|
@@ -953,10 +969,14 @@ __all__ = [
|
|
|
953
969
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemChildrenType",
|
|
954
970
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOne",
|
|
955
971
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemOneType",
|
|
972
|
+
"TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolName",
|
|
973
|
+
"TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemToolNameType",
|
|
956
974
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwo",
|
|
957
975
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemItemTwoType",
|
|
958
976
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOne",
|
|
959
977
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemOneType",
|
|
978
|
+
"TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolName",
|
|
979
|
+
"TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemToolNameType",
|
|
960
980
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwo",
|
|
961
981
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemToolRulesItemTwoType",
|
|
962
982
|
"TemplatesCreateAgentsFromTemplateResponseAgentsItemToolsItem",
|
letta_client/agents/__init__.py
CHANGED
|
@@ -143,10 +143,14 @@ from .types import (
|
|
|
143
143
|
AgentsSearchResponseAgentsItemToolRulesItemItemChildrenType,
|
|
144
144
|
AgentsSearchResponseAgentsItemToolRulesItemItemOne,
|
|
145
145
|
AgentsSearchResponseAgentsItemToolRulesItemItemOneType,
|
|
146
|
+
AgentsSearchResponseAgentsItemToolRulesItemItemToolName,
|
|
147
|
+
AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType,
|
|
146
148
|
AgentsSearchResponseAgentsItemToolRulesItemItemTwo,
|
|
147
149
|
AgentsSearchResponseAgentsItemToolRulesItemItemTwoType,
|
|
148
150
|
AgentsSearchResponseAgentsItemToolRulesItemOne,
|
|
149
151
|
AgentsSearchResponseAgentsItemToolRulesItemOneType,
|
|
152
|
+
AgentsSearchResponseAgentsItemToolRulesItemToolName,
|
|
153
|
+
AgentsSearchResponseAgentsItemToolRulesItemToolNameType,
|
|
150
154
|
AgentsSearchResponseAgentsItemToolRulesItemTwo,
|
|
151
155
|
AgentsSearchResponseAgentsItemToolRulesItemTwoType,
|
|
152
156
|
AgentsSearchResponseAgentsItemToolsItem,
|
|
@@ -320,10 +324,14 @@ __all__ = [
|
|
|
320
324
|
"AgentsSearchResponseAgentsItemToolRulesItemItemChildrenType",
|
|
321
325
|
"AgentsSearchResponseAgentsItemToolRulesItemItemOne",
|
|
322
326
|
"AgentsSearchResponseAgentsItemToolRulesItemItemOneType",
|
|
327
|
+
"AgentsSearchResponseAgentsItemToolRulesItemItemToolName",
|
|
328
|
+
"AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType",
|
|
323
329
|
"AgentsSearchResponseAgentsItemToolRulesItemItemTwo",
|
|
324
330
|
"AgentsSearchResponseAgentsItemToolRulesItemItemTwoType",
|
|
325
331
|
"AgentsSearchResponseAgentsItemToolRulesItemOne",
|
|
326
332
|
"AgentsSearchResponseAgentsItemToolRulesItemOneType",
|
|
333
|
+
"AgentsSearchResponseAgentsItemToolRulesItemToolName",
|
|
334
|
+
"AgentsSearchResponseAgentsItemToolRulesItemToolNameType",
|
|
327
335
|
"AgentsSearchResponseAgentsItemToolRulesItemTwo",
|
|
328
336
|
"AgentsSearchResponseAgentsItemToolRulesItemTwoType",
|
|
329
337
|
"AgentsSearchResponseAgentsItemToolsItem",
|
letta_client/agents/client.py
CHANGED
|
@@ -187,6 +187,7 @@ class AgentsClient:
|
|
|
187
187
|
initial_message_sequence: typing.Optional[typing.Sequence[MessageCreate]] = OMIT,
|
|
188
188
|
include_base_tools: typing.Optional[bool] = OMIT,
|
|
189
189
|
include_multi_agent_tools: typing.Optional[bool] = OMIT,
|
|
190
|
+
include_base_tool_rules: typing.Optional[bool] = OMIT,
|
|
190
191
|
description: typing.Optional[str] = OMIT,
|
|
191
192
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
192
193
|
model: typing.Optional[str] = OMIT,
|
|
@@ -257,6 +258,9 @@ class AgentsClient:
|
|
|
257
258
|
include_multi_agent_tools : typing.Optional[bool]
|
|
258
259
|
If true, attaches the Letta multi-agent tools (e.g. sending a message to another agent).
|
|
259
260
|
|
|
261
|
+
include_base_tool_rules : typing.Optional[bool]
|
|
262
|
+
If true, attaches the Letta base tool rules (e.g. deny all tools not explicitly allowed).
|
|
263
|
+
|
|
260
264
|
description : typing.Optional[str]
|
|
261
265
|
The description of the agent.
|
|
262
266
|
|
|
@@ -351,6 +355,7 @@ class AgentsClient:
|
|
|
351
355
|
),
|
|
352
356
|
"include_base_tools": include_base_tools,
|
|
353
357
|
"include_multi_agent_tools": include_multi_agent_tools,
|
|
358
|
+
"include_base_tool_rules": include_base_tool_rules,
|
|
354
359
|
"description": description,
|
|
355
360
|
"metadata": metadata,
|
|
356
361
|
"model": model,
|
|
@@ -974,6 +979,7 @@ class AsyncAgentsClient:
|
|
|
974
979
|
initial_message_sequence: typing.Optional[typing.Sequence[MessageCreate]] = OMIT,
|
|
975
980
|
include_base_tools: typing.Optional[bool] = OMIT,
|
|
976
981
|
include_multi_agent_tools: typing.Optional[bool] = OMIT,
|
|
982
|
+
include_base_tool_rules: typing.Optional[bool] = OMIT,
|
|
977
983
|
description: typing.Optional[str] = OMIT,
|
|
978
984
|
metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
979
985
|
model: typing.Optional[str] = OMIT,
|
|
@@ -1044,6 +1050,9 @@ class AsyncAgentsClient:
|
|
|
1044
1050
|
include_multi_agent_tools : typing.Optional[bool]
|
|
1045
1051
|
If true, attaches the Letta multi-agent tools (e.g. sending a message to another agent).
|
|
1046
1052
|
|
|
1053
|
+
include_base_tool_rules : typing.Optional[bool]
|
|
1054
|
+
If true, attaches the Letta base tool rules (e.g. deny all tools not explicitly allowed).
|
|
1055
|
+
|
|
1047
1056
|
description : typing.Optional[str]
|
|
1048
1057
|
The description of the agent.
|
|
1049
1058
|
|
|
@@ -1146,6 +1155,7 @@ class AsyncAgentsClient:
|
|
|
1146
1155
|
),
|
|
1147
1156
|
"include_base_tools": include_base_tools,
|
|
1148
1157
|
"include_multi_agent_tools": include_multi_agent_tools,
|
|
1158
|
+
"include_base_tool_rules": include_base_tool_rules,
|
|
1149
1159
|
"description": description,
|
|
1150
1160
|
"metadata": metadata,
|
|
1151
1161
|
"model": model,
|
|
@@ -340,6 +340,12 @@ from .agents_search_response_agents_item_tool_rules_item_item_one import (
|
|
|
340
340
|
from .agents_search_response_agents_item_tool_rules_item_item_one_type import (
|
|
341
341
|
AgentsSearchResponseAgentsItemToolRulesItemItemOneType,
|
|
342
342
|
)
|
|
343
|
+
from .agents_search_response_agents_item_tool_rules_item_item_tool_name import (
|
|
344
|
+
AgentsSearchResponseAgentsItemToolRulesItemItemToolName,
|
|
345
|
+
)
|
|
346
|
+
from .agents_search_response_agents_item_tool_rules_item_item_tool_name_type import (
|
|
347
|
+
AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType,
|
|
348
|
+
)
|
|
343
349
|
from .agents_search_response_agents_item_tool_rules_item_item_two import (
|
|
344
350
|
AgentsSearchResponseAgentsItemToolRulesItemItemTwo,
|
|
345
351
|
)
|
|
@@ -350,6 +356,12 @@ from .agents_search_response_agents_item_tool_rules_item_one import AgentsSearch
|
|
|
350
356
|
from .agents_search_response_agents_item_tool_rules_item_one_type import (
|
|
351
357
|
AgentsSearchResponseAgentsItemToolRulesItemOneType,
|
|
352
358
|
)
|
|
359
|
+
from .agents_search_response_agents_item_tool_rules_item_tool_name import (
|
|
360
|
+
AgentsSearchResponseAgentsItemToolRulesItemToolName,
|
|
361
|
+
)
|
|
362
|
+
from .agents_search_response_agents_item_tool_rules_item_tool_name_type import (
|
|
363
|
+
AgentsSearchResponseAgentsItemToolRulesItemToolNameType,
|
|
364
|
+
)
|
|
353
365
|
from .agents_search_response_agents_item_tool_rules_item_two import AgentsSearchResponseAgentsItemToolRulesItemTwo
|
|
354
366
|
from .agents_search_response_agents_item_tool_rules_item_two_type import (
|
|
355
367
|
AgentsSearchResponseAgentsItemToolRulesItemTwoType,
|
|
@@ -542,10 +554,14 @@ __all__ = [
|
|
|
542
554
|
"AgentsSearchResponseAgentsItemToolRulesItemItemChildrenType",
|
|
543
555
|
"AgentsSearchResponseAgentsItemToolRulesItemItemOne",
|
|
544
556
|
"AgentsSearchResponseAgentsItemToolRulesItemItemOneType",
|
|
557
|
+
"AgentsSearchResponseAgentsItemToolRulesItemItemToolName",
|
|
558
|
+
"AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType",
|
|
545
559
|
"AgentsSearchResponseAgentsItemToolRulesItemItemTwo",
|
|
546
560
|
"AgentsSearchResponseAgentsItemToolRulesItemItemTwoType",
|
|
547
561
|
"AgentsSearchResponseAgentsItemToolRulesItemOne",
|
|
548
562
|
"AgentsSearchResponseAgentsItemToolRulesItemOneType",
|
|
563
|
+
"AgentsSearchResponseAgentsItemToolRulesItemToolName",
|
|
564
|
+
"AgentsSearchResponseAgentsItemToolRulesItemToolNameType",
|
|
549
565
|
"AgentsSearchResponseAgentsItemToolRulesItemTwo",
|
|
550
566
|
"AgentsSearchResponseAgentsItemToolRulesItemTwoType",
|
|
551
567
|
"AgentsSearchResponseAgentsItemToolsItem",
|
|
@@ -13,10 +13,14 @@ from .agents_search_response_agents_item_tool_rules_item_item_two import (
|
|
|
13
13
|
from .agents_search_response_agents_item_tool_rules_item_item_child_output_mapping import (
|
|
14
14
|
AgentsSearchResponseAgentsItemToolRulesItemItemChildOutputMapping,
|
|
15
15
|
)
|
|
16
|
+
from .agents_search_response_agents_item_tool_rules_item_item_tool_name import (
|
|
17
|
+
AgentsSearchResponseAgentsItemToolRulesItemItemToolName,
|
|
18
|
+
)
|
|
16
19
|
|
|
17
20
|
AgentsSearchResponseAgentsItemToolRulesItemItem = typing.Union[
|
|
18
21
|
AgentsSearchResponseAgentsItemToolRulesItemItemChildren,
|
|
19
22
|
AgentsSearchResponseAgentsItemToolRulesItemItemOne,
|
|
20
23
|
AgentsSearchResponseAgentsItemToolRulesItemItemTwo,
|
|
21
24
|
AgentsSearchResponseAgentsItemToolRulesItemItemChildOutputMapping,
|
|
25
|
+
AgentsSearchResponseAgentsItemToolRulesItemItemToolName,
|
|
22
26
|
]
|
letta_client/agents/types/agents_search_response_agents_item_tool_rules_item_item_tool_name.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
from .agents_search_response_agents_item_tool_rules_item_item_tool_name_type import (
|
|
6
|
+
AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType,
|
|
7
|
+
)
|
|
8
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
import pydantic
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AgentsSearchResponseAgentsItemToolRulesItemItemToolName(UncheckedBaseModel):
|
|
13
|
+
tool_name: str
|
|
14
|
+
type: typing.Optional[AgentsSearchResponseAgentsItemToolRulesItemItemToolNameType] = None
|
|
15
|
+
|
|
16
|
+
if IS_PYDANTIC_V2:
|
|
17
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
|
+
else:
|
|
19
|
+
|
|
20
|
+
class Config:
|
|
21
|
+
frozen = True
|
|
22
|
+
smart_union = True
|
|
23
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
from .agents_search_response_agents_item_tool_rules_item_tool_name_type import (
|
|
6
|
+
AgentsSearchResponseAgentsItemToolRulesItemToolNameType,
|
|
7
|
+
)
|
|
8
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
|
+
import pydantic
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class AgentsSearchResponseAgentsItemToolRulesItemToolName(UncheckedBaseModel):
|
|
13
|
+
tool_name: str
|
|
14
|
+
type: typing.Optional[AgentsSearchResponseAgentsItemToolRulesItemToolNameType] = None
|
|
15
|
+
|
|
16
|
+
if IS_PYDANTIC_V2:
|
|
17
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
|
+
else:
|
|
19
|
+
|
|
20
|
+
class Config:
|
|
21
|
+
frozen = True
|
|
22
|
+
smart_union = True
|
|
23
|
+
extra = pydantic.Extra.allow
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
import typing
|
|
4
4
|
from ...types.conditional_tool_rule import ConditionalToolRule
|
|
5
5
|
from ...types.child_tool_rule import ChildToolRule
|
|
6
|
+
from ...types.continue_tool_rule import ContinueToolRule
|
|
6
7
|
from ...types.terminal_tool_rule import TerminalToolRule
|
|
7
8
|
from ...types.init_tool_rule import InitToolRule
|
|
8
9
|
|
|
9
|
-
CreateAgentRequestToolRulesItem = typing.Union[
|
|
10
|
+
CreateAgentRequestToolRulesItem = typing.Union[
|
|
11
|
+
ConditionalToolRule, ChildToolRule, ContinueToolRule, TerminalToolRule, InitToolRule
|
|
12
|
+
]
|
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
import typing
|
|
4
4
|
from ...types.conditional_tool_rule import ConditionalToolRule
|
|
5
5
|
from ...types.child_tool_rule import ChildToolRule
|
|
6
|
+
from ...types.continue_tool_rule import ContinueToolRule
|
|
6
7
|
from ...types.terminal_tool_rule import TerminalToolRule
|
|
7
8
|
from ...types.init_tool_rule import InitToolRule
|
|
8
9
|
|
|
9
|
-
UpdateAgentToolRulesItem = typing.Union[
|
|
10
|
+
UpdateAgentToolRulesItem = typing.Union[
|
|
11
|
+
ConditionalToolRule, ChildToolRule, ContinueToolRule, TerminalToolRule, InitToolRule
|
|
12
|
+
]
|
|
@@ -16,7 +16,7 @@ class BaseClientWrapper:
|
|
|
16
16
|
headers: typing.Dict[str, str] = {
|
|
17
17
|
"X-Fern-Language": "Python",
|
|
18
18
|
"X-Fern-SDK-Name": "letta-client",
|
|
19
|
-
"X-Fern-SDK-Version": "0.1.
|
|
19
|
+
"X-Fern-SDK-Version": "0.1.39",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|