letta-client 0.1.266__py3-none-any.whl → 0.1.268__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 +59 -14
- letta_client/agents/__init__.py +1 -3
- letta_client/agents/templates/__init__.py +2 -2
- letta_client/agents/templates/client.py +52 -134
- letta_client/agents/templates/raw_client.py +50 -300
- letta_client/agents/templates/types/__init__.py +1 -3
- letta_client/core/client_wrapper.py +2 -2
- letta_client/errors/__init__.py +1 -9
- letta_client/templates/__init__.py +56 -1
- letta_client/templates/client.py +774 -2
- letta_client/templates/raw_client.py +1016 -21
- letta_client/templates/types/__init__.py +84 -1
- letta_client/templates/types/templates_create_template_response.py +37 -0
- letta_client/{types/internal_server_error_body.py → templates/types/templates_delete_template_response.py} +4 -4
- letta_client/templates/types/templates_fork_template_response.py +37 -0
- letta_client/templates/types/templates_get_template_snapshot_response.py +28 -0
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item.py +56 -0
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_memory_variables.py +24 -0
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_memory_variables_data_item.py +24 -0
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_properties.py +25 -0
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item.py +39 -0
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_child_output_mapping.py +25 -0
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_five.py +22 -0
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_four.py +22 -0
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_max_count_limit.py +23 -0
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_one.py +22 -0
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_seven.py +23 -0
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_two.py +22 -0
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item_zero.py +23 -0
- letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_variables.py +24 -0
- letta_client/{agents/templates/types/templates_create_response.py → templates/types/templates_get_template_snapshot_response_agents_item_tool_variables_data_item.py} +7 -6
- letta_client/templates/types/templates_get_template_snapshot_response_blocks_item.py +29 -0
- letta_client/templates/types/templates_get_template_snapshot_response_configuration.py +34 -0
- letta_client/templates/types/templates_get_template_snapshot_response_type.py +8 -0
- letta_client/templates/types/templates_list_response_templates_item.py +11 -1
- letta_client/templates/types/templates_list_template_versions_response.py +23 -0
- letta_client/templates/types/templates_list_template_versions_response_versions_item.py +38 -0
- letta_client/templates/types/templates_rename_template_response.py +20 -0
- letta_client/templates/types/templates_save_template_version_response.py +37 -0
- letta_client/types/__init__.py +2 -4
- letta_client/types/conflict_error_body.py +1 -3
- letta_client/types/llm_config.py +6 -0
- letta_client/types/llm_config_verbosity.py +5 -0
- letta_client/types/not_found_error_body.py +1 -1
- {letta_client-0.1.266.dist-info → letta_client-0.1.268.dist-info}/METADATA +1 -1
- {letta_client-0.1.266.dist-info → letta_client-0.1.268.dist-info}/RECORD +47 -25
- letta_client/agents/templates/types/templates_create_version_request_return_agent_state.py +0 -5
- letta_client/errors/internal_server_error.py +0 -10
- letta_client/types/not_found_error_body_message.py +0 -11
- {letta_client-0.1.266.dist-info → letta_client-0.1.268.dist-info}/WHEEL +0 -0
|
@@ -2,7 +2,90 @@
|
|
|
2
2
|
|
|
3
3
|
# isort: skip_file
|
|
4
4
|
|
|
5
|
+
from .templates_create_template_response import TemplatesCreateTemplateResponse
|
|
6
|
+
from .templates_delete_template_response import TemplatesDeleteTemplateResponse
|
|
7
|
+
from .templates_fork_template_response import TemplatesForkTemplateResponse
|
|
8
|
+
from .templates_get_template_snapshot_response import TemplatesGetTemplateSnapshotResponse
|
|
9
|
+
from .templates_get_template_snapshot_response_agents_item import TemplatesGetTemplateSnapshotResponseAgentsItem
|
|
10
|
+
from .templates_get_template_snapshot_response_agents_item_memory_variables import (
|
|
11
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables,
|
|
12
|
+
)
|
|
13
|
+
from .templates_get_template_snapshot_response_agents_item_memory_variables_data_item import (
|
|
14
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem,
|
|
15
|
+
)
|
|
16
|
+
from .templates_get_template_snapshot_response_agents_item_properties import (
|
|
17
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemProperties,
|
|
18
|
+
)
|
|
19
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item import (
|
|
20
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem,
|
|
21
|
+
)
|
|
22
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_child_output_mapping import (
|
|
23
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping,
|
|
24
|
+
)
|
|
25
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_five import (
|
|
26
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive,
|
|
27
|
+
)
|
|
28
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_four import (
|
|
29
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour,
|
|
30
|
+
)
|
|
31
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_max_count_limit import (
|
|
32
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit,
|
|
33
|
+
)
|
|
34
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_one import (
|
|
35
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne,
|
|
36
|
+
)
|
|
37
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_seven import (
|
|
38
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven,
|
|
39
|
+
)
|
|
40
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_two import (
|
|
41
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo,
|
|
42
|
+
)
|
|
43
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_zero import (
|
|
44
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero,
|
|
45
|
+
)
|
|
46
|
+
from .templates_get_template_snapshot_response_agents_item_tool_variables import (
|
|
47
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables,
|
|
48
|
+
)
|
|
49
|
+
from .templates_get_template_snapshot_response_agents_item_tool_variables_data_item import (
|
|
50
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem,
|
|
51
|
+
)
|
|
52
|
+
from .templates_get_template_snapshot_response_blocks_item import TemplatesGetTemplateSnapshotResponseBlocksItem
|
|
53
|
+
from .templates_get_template_snapshot_response_configuration import TemplatesGetTemplateSnapshotResponseConfiguration
|
|
54
|
+
from .templates_get_template_snapshot_response_type import TemplatesGetTemplateSnapshotResponseType
|
|
5
55
|
from .templates_list_response import TemplatesListResponse
|
|
6
56
|
from .templates_list_response_templates_item import TemplatesListResponseTemplatesItem
|
|
57
|
+
from .templates_list_template_versions_response import TemplatesListTemplateVersionsResponse
|
|
58
|
+
from .templates_list_template_versions_response_versions_item import TemplatesListTemplateVersionsResponseVersionsItem
|
|
59
|
+
from .templates_rename_template_response import TemplatesRenameTemplateResponse
|
|
60
|
+
from .templates_save_template_version_response import TemplatesSaveTemplateVersionResponse
|
|
7
61
|
|
|
8
|
-
__all__ = [
|
|
62
|
+
__all__ = [
|
|
63
|
+
"TemplatesCreateTemplateResponse",
|
|
64
|
+
"TemplatesDeleteTemplateResponse",
|
|
65
|
+
"TemplatesForkTemplateResponse",
|
|
66
|
+
"TemplatesGetTemplateSnapshotResponse",
|
|
67
|
+
"TemplatesGetTemplateSnapshotResponseAgentsItem",
|
|
68
|
+
"TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables",
|
|
69
|
+
"TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem",
|
|
70
|
+
"TemplatesGetTemplateSnapshotResponseAgentsItemProperties",
|
|
71
|
+
"TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem",
|
|
72
|
+
"TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping",
|
|
73
|
+
"TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive",
|
|
74
|
+
"TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour",
|
|
75
|
+
"TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit",
|
|
76
|
+
"TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne",
|
|
77
|
+
"TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven",
|
|
78
|
+
"TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo",
|
|
79
|
+
"TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero",
|
|
80
|
+
"TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables",
|
|
81
|
+
"TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem",
|
|
82
|
+
"TemplatesGetTemplateSnapshotResponseBlocksItem",
|
|
83
|
+
"TemplatesGetTemplateSnapshotResponseConfiguration",
|
|
84
|
+
"TemplatesGetTemplateSnapshotResponseType",
|
|
85
|
+
"TemplatesListResponse",
|
|
86
|
+
"TemplatesListResponseTemplatesItem",
|
|
87
|
+
"TemplatesListTemplateVersionsResponse",
|
|
88
|
+
"TemplatesListTemplateVersionsResponseVersionsItem",
|
|
89
|
+
"TemplatesRenameTemplateResponse",
|
|
90
|
+
"TemplatesSaveTemplateVersionResponse",
|
|
91
|
+
]
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TemplatesCreateTemplateResponse(UncheckedBaseModel):
|
|
11
|
+
name: str = pydantic.Field()
|
|
12
|
+
"""
|
|
13
|
+
The exact name of the template
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
id: str
|
|
17
|
+
project_id: str
|
|
18
|
+
project_slug: str
|
|
19
|
+
latest_version: str = pydantic.Field()
|
|
20
|
+
"""
|
|
21
|
+
The latest version of the template
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
description: typing.Optional[str] = None
|
|
25
|
+
template_deployment_slug: str = pydantic.Field()
|
|
26
|
+
"""
|
|
27
|
+
The full name of the template, including version and project slug
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
if IS_PYDANTIC_V2:
|
|
31
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
32
|
+
else:
|
|
33
|
+
|
|
34
|
+
class Config:
|
|
35
|
+
frozen = True
|
|
36
|
+
smart_union = True
|
|
37
|
+
extra = pydantic.Extra.allow
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
import typing
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
|
-
from
|
|
7
|
-
from
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
11
|
-
|
|
10
|
+
class TemplatesDeleteTemplateResponse(UncheckedBaseModel):
|
|
11
|
+
success: bool
|
|
12
12
|
|
|
13
13
|
if IS_PYDANTIC_V2:
|
|
14
14
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TemplatesForkTemplateResponse(UncheckedBaseModel):
|
|
11
|
+
name: str = pydantic.Field()
|
|
12
|
+
"""
|
|
13
|
+
The exact name of the template
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
id: str
|
|
17
|
+
project_id: str
|
|
18
|
+
project_slug: str
|
|
19
|
+
latest_version: str = pydantic.Field()
|
|
20
|
+
"""
|
|
21
|
+
The latest version of the template
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
description: typing.Optional[str] = None
|
|
25
|
+
template_deployment_slug: str = pydantic.Field()
|
|
26
|
+
"""
|
|
27
|
+
The full name of the template, including version and project slug
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
if IS_PYDANTIC_V2:
|
|
31
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
32
|
+
else:
|
|
33
|
+
|
|
34
|
+
class Config:
|
|
35
|
+
frozen = True
|
|
36
|
+
smart_union = True
|
|
37
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
from .templates_get_template_snapshot_response_agents_item import TemplatesGetTemplateSnapshotResponseAgentsItem
|
|
9
|
+
from .templates_get_template_snapshot_response_blocks_item import TemplatesGetTemplateSnapshotResponseBlocksItem
|
|
10
|
+
from .templates_get_template_snapshot_response_configuration import TemplatesGetTemplateSnapshotResponseConfiguration
|
|
11
|
+
from .templates_get_template_snapshot_response_type import TemplatesGetTemplateSnapshotResponseType
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class TemplatesGetTemplateSnapshotResponse(UncheckedBaseModel):
|
|
15
|
+
agents: typing.List[TemplatesGetTemplateSnapshotResponseAgentsItem]
|
|
16
|
+
blocks: typing.List[TemplatesGetTemplateSnapshotResponseBlocksItem]
|
|
17
|
+
configuration: TemplatesGetTemplateSnapshotResponseConfiguration
|
|
18
|
+
type: TemplatesGetTemplateSnapshotResponseType
|
|
19
|
+
version: str
|
|
20
|
+
|
|
21
|
+
if IS_PYDANTIC_V2:
|
|
22
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
23
|
+
else:
|
|
24
|
+
|
|
25
|
+
class Config:
|
|
26
|
+
frozen = True
|
|
27
|
+
smart_union = True
|
|
28
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
from ...core.serialization import FieldMetadata
|
|
9
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
10
|
+
from .templates_get_template_snapshot_response_agents_item_memory_variables import (
|
|
11
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables,
|
|
12
|
+
)
|
|
13
|
+
from .templates_get_template_snapshot_response_agents_item_properties import (
|
|
14
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemProperties,
|
|
15
|
+
)
|
|
16
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item import (
|
|
17
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem,
|
|
18
|
+
)
|
|
19
|
+
from .templates_get_template_snapshot_response_agents_item_tool_variables import (
|
|
20
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class TemplatesGetTemplateSnapshotResponseAgentsItem(UncheckedBaseModel):
|
|
25
|
+
model: str
|
|
26
|
+
system_prompt: typing_extensions.Annotated[str, FieldMetadata(alias="systemPrompt")]
|
|
27
|
+
tool_ids: typing_extensions.Annotated[typing.Optional[typing.List[str]], FieldMetadata(alias="toolIds")] = None
|
|
28
|
+
source_ids: typing_extensions.Annotated[typing.Optional[typing.List[str]], FieldMetadata(alias="sourceIds")] = None
|
|
29
|
+
properties: typing.Optional[TemplatesGetTemplateSnapshotResponseAgentsItemProperties] = None
|
|
30
|
+
memory_variables: typing_extensions.Annotated[
|
|
31
|
+
typing.Optional[TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables],
|
|
32
|
+
FieldMetadata(alias="memoryVariables"),
|
|
33
|
+
] = None
|
|
34
|
+
tool_variables: typing_extensions.Annotated[
|
|
35
|
+
typing.Optional[TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables],
|
|
36
|
+
FieldMetadata(alias="toolVariables"),
|
|
37
|
+
] = None
|
|
38
|
+
tags: typing.Optional[typing.List[str]] = None
|
|
39
|
+
identity_ids: typing_extensions.Annotated[typing.Optional[typing.List[str]], FieldMetadata(alias="identityIds")] = (
|
|
40
|
+
None
|
|
41
|
+
)
|
|
42
|
+
tool_rules: typing_extensions.Annotated[
|
|
43
|
+
typing.Optional[typing.List[TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem]],
|
|
44
|
+
FieldMetadata(alias="toolRules"),
|
|
45
|
+
] = None
|
|
46
|
+
entity_id: typing_extensions.Annotated[str, FieldMetadata(alias="entityId")]
|
|
47
|
+
name: str
|
|
48
|
+
|
|
49
|
+
if IS_PYDANTIC_V2:
|
|
50
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
51
|
+
else:
|
|
52
|
+
|
|
53
|
+
class Config:
|
|
54
|
+
frozen = True
|
|
55
|
+
smart_union = True
|
|
56
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
from .templates_get_template_snapshot_response_agents_item_memory_variables_data_item import (
|
|
9
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariables(UncheckedBaseModel):
|
|
14
|
+
version: str
|
|
15
|
+
data: typing.List[TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem]
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
from ...core.serialization import FieldMetadata
|
|
9
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class TemplatesGetTemplateSnapshotResponseAgentsItemMemoryVariablesDataItem(UncheckedBaseModel):
|
|
13
|
+
key: str
|
|
14
|
+
default_value: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="defaultValue")] = None
|
|
15
|
+
type: str
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
letta_client/templates/types/templates_get_template_snapshot_response_agents_item_properties.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TemplatesGetTemplateSnapshotResponseAgentsItemProperties(UncheckedBaseModel):
|
|
11
|
+
context_window_limit: typing.Optional[float] = None
|
|
12
|
+
max_tokens: typing.Optional[float] = None
|
|
13
|
+
max_reasoning_tokens: typing.Optional[float] = None
|
|
14
|
+
max_files_open: typing.Optional[float] = None
|
|
15
|
+
message_buffer_autoclear: typing.Optional[bool] = None
|
|
16
|
+
per_file_view_window_char_limit: typing.Optional[float] = None
|
|
17
|
+
|
|
18
|
+
if IS_PYDANTIC_V2:
|
|
19
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
20
|
+
else:
|
|
21
|
+
|
|
22
|
+
class Config:
|
|
23
|
+
frozen = True
|
|
24
|
+
smart_union = True
|
|
25
|
+
extra = pydantic.Extra.allow
|
letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_rules_item.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_child_output_mapping import (
|
|
6
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping,
|
|
7
|
+
)
|
|
8
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_five import (
|
|
9
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive,
|
|
10
|
+
)
|
|
11
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_four import (
|
|
12
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour,
|
|
13
|
+
)
|
|
14
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_max_count_limit import (
|
|
15
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit,
|
|
16
|
+
)
|
|
17
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_one import (
|
|
18
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne,
|
|
19
|
+
)
|
|
20
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_seven import (
|
|
21
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven,
|
|
22
|
+
)
|
|
23
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_two import (
|
|
24
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo,
|
|
25
|
+
)
|
|
26
|
+
from .templates_get_template_snapshot_response_agents_item_tool_rules_item_zero import (
|
|
27
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero,
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItem = typing.Union[
|
|
31
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero,
|
|
32
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne,
|
|
33
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo,
|
|
34
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping,
|
|
35
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour,
|
|
36
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive,
|
|
37
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit,
|
|
38
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven,
|
|
39
|
+
]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemChildOutputMapping(UncheckedBaseModel):
|
|
11
|
+
tool_name: str
|
|
12
|
+
type: typing.Optional[typing.Literal["conditional"]] = None
|
|
13
|
+
prompt_template: typing.Optional[str] = None
|
|
14
|
+
default_child: typing.Optional[str] = None
|
|
15
|
+
child_output_mapping: typing.Dict[str, str]
|
|
16
|
+
require_output_mapping: typing.Optional[bool] = None
|
|
17
|
+
|
|
18
|
+
if IS_PYDANTIC_V2:
|
|
19
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
20
|
+
else:
|
|
21
|
+
|
|
22
|
+
class Config:
|
|
23
|
+
frozen = True
|
|
24
|
+
smart_union = True
|
|
25
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFive(UncheckedBaseModel):
|
|
11
|
+
tool_name: str
|
|
12
|
+
type: typing.Optional[typing.Literal["required_before_exit"]] = None
|
|
13
|
+
prompt_template: typing.Optional[str] = None
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
+
else:
|
|
18
|
+
|
|
19
|
+
class Config:
|
|
20
|
+
frozen = True
|
|
21
|
+
smart_union = True
|
|
22
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemFour(UncheckedBaseModel):
|
|
11
|
+
tool_name: str
|
|
12
|
+
type: typing.Optional[typing.Literal["continue_loop"]] = None
|
|
13
|
+
prompt_template: typing.Optional[str] = None
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
+
else:
|
|
18
|
+
|
|
19
|
+
class Config:
|
|
20
|
+
frozen = True
|
|
21
|
+
smart_union = True
|
|
22
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemMaxCountLimit(UncheckedBaseModel):
|
|
11
|
+
tool_name: str
|
|
12
|
+
type: typing.Optional[typing.Literal["max_count_per_step"]] = None
|
|
13
|
+
prompt_template: typing.Optional[str] = None
|
|
14
|
+
max_count_limit: float
|
|
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,22 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemOne(UncheckedBaseModel):
|
|
11
|
+
tool_name: str
|
|
12
|
+
type: typing.Optional[typing.Literal["run_first"]] = None
|
|
13
|
+
prompt_template: typing.Optional[str] = None
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
+
else:
|
|
18
|
+
|
|
19
|
+
class Config:
|
|
20
|
+
frozen = True
|
|
21
|
+
smart_union = True
|
|
22
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemSeven(UncheckedBaseModel):
|
|
11
|
+
tool_name: str
|
|
12
|
+
type: typing.Optional[typing.Literal["parent_last_tool"]] = None
|
|
13
|
+
prompt_template: typing.Optional[str] = None
|
|
14
|
+
children: typing.List[str]
|
|
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,22 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemTwo(UncheckedBaseModel):
|
|
11
|
+
tool_name: str
|
|
12
|
+
type: typing.Optional[typing.Literal["exit_loop"]] = None
|
|
13
|
+
prompt_template: typing.Optional[str] = None
|
|
14
|
+
|
|
15
|
+
if IS_PYDANTIC_V2:
|
|
16
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
+
else:
|
|
18
|
+
|
|
19
|
+
class Config:
|
|
20
|
+
frozen = True
|
|
21
|
+
smart_union = True
|
|
22
|
+
extra = pydantic.Extra.allow
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class TemplatesGetTemplateSnapshotResponseAgentsItemToolRulesItemZero(UncheckedBaseModel):
|
|
11
|
+
tool_name: str
|
|
12
|
+
type: typing.Optional[typing.Literal["constrain_child_tools"]] = None
|
|
13
|
+
prompt_template: typing.Optional[str] = None
|
|
14
|
+
children: typing.List[str]
|
|
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
|
letta_client/templates/types/templates_get_template_snapshot_response_agents_item_tool_variables.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
8
|
+
from .templates_get_template_snapshot_response_agents_item_tool_variables_data_item import (
|
|
9
|
+
TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem,
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class TemplatesGetTemplateSnapshotResponseAgentsItemToolVariables(UncheckedBaseModel):
|
|
14
|
+
version: str
|
|
15
|
+
data: typing.List[TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem]
|
|
16
|
+
|
|
17
|
+
if IS_PYDANTIC_V2:
|
|
18
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
+
else:
|
|
20
|
+
|
|
21
|
+
class Config:
|
|
22
|
+
frozen = True
|
|
23
|
+
smart_union = True
|
|
24
|
+
extra = pydantic.Extra.allow
|
|
@@ -4,14 +4,15 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
import typing_extensions
|
|
7
|
-
from
|
|
8
|
-
from
|
|
9
|
-
from
|
|
7
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
from ...core.serialization import FieldMetadata
|
|
9
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
class
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
class TemplatesGetTemplateSnapshotResponseAgentsItemToolVariablesDataItem(UncheckedBaseModel):
|
|
13
|
+
key: str
|
|
14
|
+
default_value: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="defaultValue")] = None
|
|
15
|
+
type: str
|
|
15
16
|
|
|
16
17
|
if IS_PYDANTIC_V2:
|
|
17
18
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
import typing_extensions
|
|
7
|
+
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
from ...core.serialization import FieldMetadata
|
|
9
|
+
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class TemplatesGetTemplateSnapshotResponseBlocksItem(UncheckedBaseModel):
|
|
13
|
+
label: str
|
|
14
|
+
value: str
|
|
15
|
+
limit: float
|
|
16
|
+
description: str
|
|
17
|
+
preserve_on_migration: typing_extensions.Annotated[
|
|
18
|
+
typing.Optional[bool], FieldMetadata(alias="preserveOnMigration")
|
|
19
|
+
] = None
|
|
20
|
+
read_only: typing_extensions.Annotated[bool, FieldMetadata(alias="readOnly")]
|
|
21
|
+
|
|
22
|
+
if IS_PYDANTIC_V2:
|
|
23
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
24
|
+
else:
|
|
25
|
+
|
|
26
|
+
class Config:
|
|
27
|
+
frozen = True
|
|
28
|
+
smart_union = True
|
|
29
|
+
extra = pydantic.Extra.allow
|