letta-client 0.1.215__py3-none-any.whl → 0.1.217__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.

@@ -97,11 +97,14 @@ from .file_file import FileFile
97
97
  from .file_metadata import FileMetadata
98
98
  from .file_processing_status import FileProcessingStatus
99
99
  from .file_stats import FileStats
100
+ from .folder import Folder
100
101
  from .function_call import FunctionCall
101
102
  from .function_definition_input import FunctionDefinitionInput
102
103
  from .function_definition_output import FunctionDefinitionOutput
103
104
  from .function_output import FunctionOutput
104
105
  from .function_tool import FunctionTool
106
+ from .generate_tool_input import GenerateToolInput
107
+ from .generate_tool_output import GenerateToolOutput
105
108
  from .group import Group
106
109
  from .health import Health
107
110
  from .hidden_reasoning_message import HiddenReasoningMessage
@@ -360,11 +363,14 @@ __all__ = [
360
363
  "FileMetadata",
361
364
  "FileProcessingStatus",
362
365
  "FileStats",
366
+ "Folder",
363
367
  "FunctionCall",
364
368
  "FunctionDefinitionInput",
365
369
  "FunctionDefinitionOutput",
366
370
  "FunctionOutput",
367
371
  "FunctionTool",
372
+ "GenerateToolInput",
373
+ "GenerateToolOutput",
368
374
  "Group",
369
375
  "Health",
370
376
  "HiddenReasoningMessage",
@@ -0,0 +1,81 @@
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
+ import typing
6
+ from .embedding_config import EmbeddingConfig
7
+ import datetime as dt
8
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
+
10
+
11
+ class Folder(UncheckedBaseModel):
12
+ """
13
+ Representation of a folder, which is a collection of files and passages.
14
+
15
+ Parameters:
16
+ id (str): The ID of the folder
17
+ name (str): The name of the folder.
18
+ embedding_config (EmbeddingConfig): The embedding configuration used by the folder.
19
+ user_id (str): The ID of the user that created the folder.
20
+ metadata (dict): Metadata associated with the folder.
21
+ description (str): The description of the folder.
22
+ """
23
+
24
+ name: str = pydantic.Field()
25
+ """
26
+ The name of the folder.
27
+ """
28
+
29
+ description: typing.Optional[str] = pydantic.Field(default=None)
30
+ """
31
+ The description of the folder.
32
+ """
33
+
34
+ instructions: typing.Optional[str] = pydantic.Field(default=None)
35
+ """
36
+ Instructions for how to use the folder.
37
+ """
38
+
39
+ metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
40
+ """
41
+ Metadata associated with the folder.
42
+ """
43
+
44
+ id: typing.Optional[str] = pydantic.Field(default=None)
45
+ """
46
+ The human-friendly ID of the Folder
47
+ """
48
+
49
+ embedding_config: EmbeddingConfig = pydantic.Field()
50
+ """
51
+ The embedding configuration used by the folder.
52
+ """
53
+
54
+ created_by_id: typing.Optional[str] = pydantic.Field(default=None)
55
+ """
56
+ The id of the user that made this Tool.
57
+ """
58
+
59
+ last_updated_by_id: typing.Optional[str] = pydantic.Field(default=None)
60
+ """
61
+ The id of the user that made this Tool.
62
+ """
63
+
64
+ created_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
65
+ """
66
+ The timestamp when the folder was created.
67
+ """
68
+
69
+ updated_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
70
+ """
71
+ The timestamp when the folder was last updated.
72
+ """
73
+
74
+ if IS_PYDANTIC_V2:
75
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
76
+ else:
77
+
78
+ class Config:
79
+ frozen = True
80
+ smart_union = True
81
+ extra = pydantic.Extra.allow
@@ -0,0 +1,42 @@
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
+ import typing
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+
8
+
9
+ class GenerateToolInput(UncheckedBaseModel):
10
+ tool_name: str = pydantic.Field()
11
+ """
12
+ Name of the tool to generate code for
13
+ """
14
+
15
+ prompt: str = pydantic.Field()
16
+ """
17
+ User prompt to generate code
18
+ """
19
+
20
+ handle: typing.Optional[str] = pydantic.Field(default=None)
21
+ """
22
+ Handle of the tool to generate code for
23
+ """
24
+
25
+ starter_code: typing.Optional[str] = pydantic.Field(default=None)
26
+ """
27
+ Python source code to parse for JSON schema
28
+ """
29
+
30
+ validation_errors: typing.List[str] = pydantic.Field()
31
+ """
32
+ List of validation errors
33
+ """
34
+
35
+ if IS_PYDANTIC_V2:
36
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
37
+ else:
38
+
39
+ class Config:
40
+ frozen = True
41
+ smart_union = True
42
+ extra = pydantic.Extra.allow
@@ -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
+ from .tool import Tool
5
+ import pydantic
6
+ import typing
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
+
9
+
10
+ class GenerateToolOutput(UncheckedBaseModel):
11
+ tool: Tool = pydantic.Field()
12
+ """
13
+ Generated tool
14
+ """
15
+
16
+ sample_args: typing.Dict[str, typing.Optional[typing.Any]] = pydantic.Field()
17
+ """
18
+ Sample arguments for the tool
19
+ """
20
+
21
+ response: str = pydantic.Field()
22
+ """
23
+ Response from the assistant
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.215
3
+ Version: 0.1.217
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -1,4 +1,4 @@
1
- letta_client/__init__.py,sha256=Lr_wx_v6AIGHoA5rwxPfrqDgdWbPjCkZEragpbhMu-U,19196
1
+ letta_client/__init__.py,sha256=yfaBKdMlOPOQslj_Mht9K9HCOIuE3K708of2oIgszp4,19348
2
2
  letta_client/agents/__init__.py,sha256=i9PmBueIWESDLqmpzWt1oZVgZNr1rNkO6j0pl5sgvGo,2049
3
3
  letta_client/agents/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
4
4
  letta_client/agents/blocks/client.py,sha256=4UGPYxfGwNN3ZW-SkIdfVZK6cvCcumVAw0_AM8OmoBY,25046
@@ -47,7 +47,7 @@ letta_client/agents/types/create_agent_request_response_format.py,sha256=1GUV3rF
47
47
  letta_client/agents/types/create_agent_request_tool_rules_item.py,sha256=rNdMW67TvB20-ITBdA-1L9181p33yIYkwF9b35OGNX0,800
48
48
  letta_client/agents/types/update_agent_response_format.py,sha256=oCoGofTKP7no6gNbDV6nJOpF8IlIplr1iPn5_7BA0cU,402
49
49
  letta_client/agents/types/update_agent_tool_rules_item.py,sha256=_gXcMqnK0Pp1mhAukhPztLPDhooUOg6xACOhsO2uSZM,793
50
- letta_client/base_client.py,sha256=2eCEaKHkijuw5MrpFPkM7kYr5gkkmF5rSIX9cESe_WM,10605
50
+ letta_client/base_client.py,sha256=GZ-WU6sChv5vJ6h6kWH_NvUqjCOa0kGwEruwcRiUnDI,10847
51
51
  letta_client/batches/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
52
52
  letta_client/batches/client.py,sha256=DHnsRYHgxVh6OvfAE8etlbno1FMg4cIzAYiydJrfmJM,19730
53
53
  letta_client/blocks/__init__.py,sha256=c6SGOs9_YGdydYAzhe5TUiaXq52rpWT1mNMcke8qGTQ,108
@@ -71,7 +71,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_list_clie
71
71
  letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item_policy_data_item_access_item.py,sha256=kNHfEWFl7u71Pu8NPqutod0a2NXfvq8il05Hqm0iBB4,284
72
72
  letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
73
73
  letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
74
- letta_client/core/client_wrapper.py,sha256=c1LoKzfV2IyKIjc8hLh7nDykkEvOfuiHnyFMTVRV_Qg,2336
74
+ letta_client/core/client_wrapper.py,sha256=UGrvFe4-SA5C41OSP1wJT21YOBIGpRwvbLl7TOXje2A,2336
75
75
  letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
76
76
  letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
77
77
  letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
@@ -92,6 +92,8 @@ letta_client/errors/internal_server_error.py,sha256=8USCagXyJJ1MOm9snpcXIUt6eNXv
92
92
  letta_client/errors/not_found_error.py,sha256=tBVCeBC8n3C811WHRj_n-hs3h8MqwR5gp0vLiobk7W8,262
93
93
  letta_client/errors/payment_required_error.py,sha256=KVasrf0kwCzKfq1bAQ7lj1m9SdS7KqRntFaP0L_vfeI,325
94
94
  letta_client/errors/unprocessable_entity_error.py,sha256=FvR7XPlV3Xx5nu8HNlmLhBRdk4so_gCHjYT5PyZe6sM,313
95
+ letta_client/folders/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
96
+ letta_client/folders/client.py,sha256=q4kPaSLn3BmlWCk-Typ60lYcIZFQdvzqDPfxxGaIU5A,61878
95
97
  letta_client/groups/__init__.py,sha256=WzkNp5Q_5zQj_NHv4hJCOKvW6ftM9EuNxw8hkPRRbko,434
96
98
  letta_client/groups/client.py,sha256=M_DX9fYU2aie46-g47ifGywEoszvETwFkakfDfig15Q,29677
97
99
  letta_client/groups/messages/__init__.py,sha256=M7Ar6Rmb8we4dfYE6jj3FCL9UvVFy1bNQIPflUXMWHA,243
@@ -168,7 +170,7 @@ letta_client/tools/types/list_mcp_servers_response_value.py,sha256=Eyji5qB7Fhowi
168
170
  letta_client/tools/types/test_mcp_server_request.py,sha256=sLlOEZdmLfkHqHCkUjntGbr8_MkBhsqpMQ-HwdNOnq0,372
169
171
  letta_client/tools/types/update_mcp_server_request.py,sha256=nCpx9-OvpH0l5iJxEi8kgSok1F1r7liEAZm-kaqBtEo,402
170
172
  letta_client/tools/types/update_mcp_server_response.py,sha256=muwHagaQBMwQI0of9EBCBtG9lD-jELFAevgTB2MjpFQ,375
171
- letta_client/types/__init__.py,sha256=-5MECfLh1Fp5kO_6_PHwucqqqKlU58hxq1Bz4ssLzvY,22854
173
+ letta_client/types/__init__.py,sha256=0agvbFrcSGnJi_ThXsiI7wrO12UeF8M_9gM2OR_KZL0,23050
172
174
  letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qVR9uHg,1240
173
175
  letta_client/types/action_parameters_model.py,sha256=LgKf5aPZG3-OHGxFdXiSokIDgce8c02xPYIAY05VgW8,828
174
176
  letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcfJPj_95ynGdeHCs,824
@@ -266,11 +268,14 @@ letta_client/types/file_file.py,sha256=jbWcPKn-fSUlq9kl8n2us9fPU6x-Z20IKScHD_pJr
266
268
  letta_client/types/file_metadata.py,sha256=51abJ_M4dmpRJetdWcMf_P39l3EaJ1R2kjuexzEWwMI,2957
267
269
  letta_client/types/file_processing_status.py,sha256=8W8VAx9-jCaUx6q6mvyCMyLoa2peLTE_sgIaGloOWo4,201
268
270
  letta_client/types/file_stats.py,sha256=gEaG0m4vulK21EoIuYlOcdy0IK4qWkjBTDoMzXw3GEQ,875
271
+ letta_client/types/folder.py,sha256=h8F1J5j-jFE8Lw2oDZqQsy4M5x1X42B3XP38nOy2VPs,2370
269
272
  letta_client/types/function_call.py,sha256=eE6VYWK3A-2xRrIV-QKqrofvaVFcPNqSzl6lrWnopZA,576
270
273
  letta_client/types/function_definition_input.py,sha256=UpoD7ftRpHquJ5zhy28TjXPBVzxj7rOHKv3gX84Nfj8,740
271
274
  letta_client/types/function_definition_output.py,sha256=Id0SzyiMHF5l25iKQhCN4sWJwBJ7AkYK-I5RDZy3_rc,741
272
275
  letta_client/types/function_output.py,sha256=7b8550BllXxtZQ3T3jfvZjcCU_ZGWNBvjlrMB8S2xas,578
273
276
  letta_client/types/function_tool.py,sha256=TOETpZdqgPIgd4g9JFo3yvDBpTx4lDFzJNZH8PxAjpI,697
277
+ letta_client/types/generate_tool_input.py,sha256=6_r00rctGxSa1mNDEFCwAc2JOXlmf9BO_rIG7ZksB4Q,1095
278
+ letta_client/types/generate_tool_output.py,sha256=y22000DeKje2FwSaLEXorLfmnrqFE1QbBrQ3nFIWULE,860
274
279
  letta_client/types/group.py,sha256=6Cv30-JOOfRsOG_T9d1rifW40-eYj9g6OR9BvdP7Ppc,2106
275
280
  letta_client/types/health.py,sha256=nQwx5ysn_cJMKUoqsfaPcGNSRSjfwX5S272UiSQJ03w,618
276
281
  letta_client/types/hidden_reasoning_message.py,sha256=FrzJv12sgz6W5VWk74q2jX6UaqB_MItqhDYuUCozPTE,1610
@@ -429,6 +434,6 @@ letta_client/types/web_search_options_user_location_approximate.py,sha256=Ywk01J
429
434
  letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
430
435
  letta_client/voice/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
431
436
  letta_client/voice/client.py,sha256=47iQYCuW_qpKI4hM3pYVxn3hw7kgQj3emU1_oRpkRMA,5811
432
- letta_client-0.1.215.dist-info/METADATA,sha256=kyLt9O38J9l1sZhJ4K-lVMw1rEqkEXC10FbQev1_laU,5177
433
- letta_client-0.1.215.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
434
- letta_client-0.1.215.dist-info/RECORD,,
437
+ letta_client-0.1.217.dist-info/METADATA,sha256=JTDCzWEWtraFXunU6fNtuiid2nPdTaGD1XeLXHBxzNY,5177
438
+ letta_client-0.1.217.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
439
+ letta_client-0.1.217.dist-info/RECORD,,