letta-client 0.1.211__py3-none-any.whl → 0.1.212__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 CHANGED
@@ -93,6 +93,7 @@ from .types import (
93
93
  EmbeddingConfigEmbeddingEndpointType,
94
94
  FeedbackType,
95
95
  File,
96
+ FileBlock,
96
97
  FileFile,
97
98
  FileMetadata,
98
99
  FileProcessingStatus,
@@ -457,6 +458,7 @@ __all__ = [
457
458
  "EmbeddingConfigEmbeddingEndpointType",
458
459
  "FeedbackType",
459
460
  "File",
461
+ "FileBlock",
460
462
  "FileFile",
461
463
  "FileMetadata",
462
464
  "FileProcessingStatus",
@@ -24,7 +24,7 @@ class BaseClientWrapper:
24
24
  headers: typing.Dict[str, str] = {
25
25
  "X-Fern-Language": "Python",
26
26
  "X-Fern-SDK-Name": "letta-client",
27
- "X-Fern-SDK-Version": "0.1.211",
27
+ "X-Fern-SDK-Version": "0.1.212",
28
28
  }
29
29
  if self._project is not None:
30
30
  headers["X-Project"] = self._project
@@ -92,6 +92,7 @@ from .embedding_config import EmbeddingConfig
92
92
  from .embedding_config_embedding_endpoint_type import EmbeddingConfigEmbeddingEndpointType
93
93
  from .feedback_type import FeedbackType
94
94
  from .file import File
95
+ from .file_block import FileBlock
95
96
  from .file_file import FileFile
96
97
  from .file_metadata import FileMetadata
97
98
  from .file_processing_status import FileProcessingStatus
@@ -354,6 +355,7 @@ __all__ = [
354
355
  "EmbeddingConfigEmbeddingEndpointType",
355
356
  "FeedbackType",
356
357
  "File",
358
+ "FileBlock",
357
359
  "FileFile",
358
360
  "FileMetadata",
359
361
  "FileProcessingStatus",
@@ -0,0 +1,98 @@
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
+ import datetime as dt
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
+
9
+
10
+ class FileBlock(UncheckedBaseModel):
11
+ value: str = pydantic.Field()
12
+ """
13
+ Value of the block.
14
+ """
15
+
16
+ limit: typing.Optional[int] = pydantic.Field(default=None)
17
+ """
18
+ Character limit of the block.
19
+ """
20
+
21
+ name: typing.Optional[str] = pydantic.Field(default=None)
22
+ """
23
+ Name of the block if it is a template.
24
+ """
25
+
26
+ is_template: typing.Optional[bool] = pydantic.Field(default=None)
27
+ """
28
+ Whether the block is a template (e.g. saved human/persona options).
29
+ """
30
+
31
+ preserve_on_migration: typing.Optional[bool] = pydantic.Field(default=None)
32
+ """
33
+ Preserve the block on template migration.
34
+ """
35
+
36
+ label: typing.Optional[str] = pydantic.Field(default=None)
37
+ """
38
+ Label of the block (e.g. 'human', 'persona') in the context window.
39
+ """
40
+
41
+ read_only: typing.Optional[bool] = pydantic.Field(default=None)
42
+ """
43
+ Whether the agent has read-only access to the block.
44
+ """
45
+
46
+ description: typing.Optional[str] = pydantic.Field(default=None)
47
+ """
48
+ Description of the block.
49
+ """
50
+
51
+ metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = pydantic.Field(default=None)
52
+ """
53
+ Metadata of the block.
54
+ """
55
+
56
+ id: typing.Optional[str] = pydantic.Field(default=None)
57
+ """
58
+ The human-friendly ID of the Block
59
+ """
60
+
61
+ created_by_id: typing.Optional[str] = pydantic.Field(default=None)
62
+ """
63
+ The id of the user that made this Block.
64
+ """
65
+
66
+ last_updated_by_id: typing.Optional[str] = pydantic.Field(default=None)
67
+ """
68
+ The id of the user that last updated this Block.
69
+ """
70
+
71
+ file_id: str = pydantic.Field()
72
+ """
73
+ Unique identifier of the file.
74
+ """
75
+
76
+ source_id: str = pydantic.Field()
77
+ """
78
+ Unique identifier of the source (denormalized from files.source_id).
79
+ """
80
+
81
+ is_open: bool = pydantic.Field()
82
+ """
83
+ True if the agent currently has the file open.
84
+ """
85
+
86
+ last_accessed_at: typing.Optional[dt.datetime] = pydantic.Field(default=None)
87
+ """
88
+ UTC timestamp of the agent’s most recent access to this file.
89
+ """
90
+
91
+ if IS_PYDANTIC_V2:
92
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
93
+ else:
94
+
95
+ class Config:
96
+ frozen = True
97
+ smart_union = True
98
+ extra = pydantic.Extra.allow
@@ -4,6 +4,7 @@ from ..core.unchecked_base_model import UncheckedBaseModel
4
4
  import typing
5
5
  from .block import Block
6
6
  import pydantic
7
+ from .file_block import FileBlock
7
8
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
9
 
9
10
 
@@ -17,9 +18,9 @@ class Memory(UncheckedBaseModel):
17
18
  Memory blocks contained in the agent's in-context memory
18
19
  """
19
20
 
20
- file_blocks: typing.Optional[typing.List[Block]] = pydantic.Field(default=None)
21
+ file_blocks: typing.Optional[typing.List[FileBlock]] = pydantic.Field(default=None)
21
22
  """
22
- Blocks representing the agent's in-context memory of an attached file
23
+ Special blocks representing the agent's in-context memory of an attached file
23
24
  """
24
25
 
25
26
  prompt_template: typing.Optional[str] = pydantic.Field(default=None)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.211
3
+ Version: 0.1.212
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=DpCoPhi5qy7K-MmczqULa30OTff96XkneWc4tYISq_8,19164
1
+ letta_client/__init__.py,sha256=Lr_wx_v6AIGHoA5rwxPfrqDgdWbPjCkZEragpbhMu-U,19196
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
@@ -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=SIn7ocTMfx1OCdi4IwH89ObYyjgnLVblqu4aN2WVYIU,2336
74
+ letta_client/core/client_wrapper.py,sha256=OcgtktK5k9jFFfySjDNcvitkcxcte_EZ5VcYimN-GcY,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
@@ -168,7 +168,7 @@ letta_client/tools/types/list_mcp_servers_response_value.py,sha256=Eyji5qB7Fhowi
168
168
  letta_client/tools/types/test_mcp_server_request.py,sha256=sLlOEZdmLfkHqHCkUjntGbr8_MkBhsqpMQ-HwdNOnq0,372
169
169
  letta_client/tools/types/update_mcp_server_request.py,sha256=nCpx9-OvpH0l5iJxEi8kgSok1F1r7liEAZm-kaqBtEo,402
170
170
  letta_client/tools/types/update_mcp_server_response.py,sha256=muwHagaQBMwQI0of9EBCBtG9lD-jELFAevgTB2MjpFQ,375
171
- letta_client/types/__init__.py,sha256=x9wL7fPYikvZZXi2exF3cWIJI4LmXqmHiKW_Dwlj_5g,22803
171
+ letta_client/types/__init__.py,sha256=-5MECfLh1Fp5kO_6_PHwucqqqKlU58hxq1Bz4ssLzvY,22854
172
172
  letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qVR9uHg,1240
173
173
  letta_client/types/action_parameters_model.py,sha256=LgKf5aPZG3-OHGxFdXiSokIDgce8c02xPYIAY05VgW8,828
174
174
  letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcfJPj_95ynGdeHCs,824
@@ -261,6 +261,7 @@ letta_client/types/embedding_config.py,sha256=47DxstNToHfirYxgIn4jNqkt8vDh5taRu6
261
261
  letta_client/types/embedding_config_embedding_endpoint_type.py,sha256=Ho1HSODi21PkzsZR58g7FlIMReFU2yf0hAS5OyUsW6Q,559
262
262
  letta_client/types/feedback_type.py,sha256=sDfsniSnnpSwzZqfIkRL7vYPxYqdwURpI6LMI7eDkoQ,160
263
263
  letta_client/types/file.py,sha256=ZLCEYJqIJ1pzAJn4Pke6gVdKivKU9FrIg98P4GmFY8M,628
264
+ letta_client/types/file_block.py,sha256=-TNvyoN3NPqUtLqwsu8WUhAdCE-_YE3ZTrKHD64CMA0,2619
264
265
  letta_client/types/file_file.py,sha256=jbWcPKn-fSUlq9kl8n2us9fPU6x-Z20IKScHD_pJruw,665
265
266
  letta_client/types/file_metadata.py,sha256=51abJ_M4dmpRJetdWcMf_P39l3EaJ1R2kjuexzEWwMI,2957
266
267
  letta_client/types/file_processing_status.py,sha256=8W8VAx9-jCaUx6q6mvyCMyLoa2peLTE_sgIaGloOWo4,201
@@ -315,7 +316,7 @@ letta_client/types/max_count_per_step_tool_rule.py,sha256=6vBWeGH2FW3ze--lr4DVuq
315
316
  letta_client/types/max_count_per_step_tool_rule_schema.py,sha256=1Zq4vblRTqFycqk7cBQ3gVCUy-MPWvE_tNXV5Fz0VTs,618
316
317
  letta_client/types/mcp_server_type.py,sha256=cEiRY8zJw3YdV0RV6tt4JUYd0AHT_UNeLgxaouU-_4A,172
317
318
  letta_client/types/mcp_tool.py,sha256=CLLpyiyUo0yLWG_ararTJmzzaUYhfANC2dNAhEUfy1Q,1376
318
- letta_client/types/memory.py,sha256=Fa07vLHBsc4eNK65Yla2zOuzYhtgFGlnPzAGo9GvJ-c,1210
319
+ letta_client/types/memory.py,sha256=Wc8iqhqwBuloA87abtGF1Y5ncyCL2vjKUp45Fi-vRoY,1256
319
320
  letta_client/types/message.py,sha256=v5x-ykNKmgVSzQkE9w71nxq4RfrgILCciSKA2sHD_Q4,4734
320
321
  letta_client/types/message_content_item.py,sha256=FrwERKfU5MpV4Y8LC5ejKFkoqqSV_Ooww-r32VGBbME,629
321
322
  letta_client/types/message_create.py,sha256=jgtA2pi59E7Pv37oyGO51wjZyRtfxVpgENXad8fxQqM,1601
@@ -428,6 +429,6 @@ letta_client/types/web_search_options_user_location_approximate.py,sha256=Ywk01J
428
429
  letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
429
430
  letta_client/voice/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
430
431
  letta_client/voice/client.py,sha256=47iQYCuW_qpKI4hM3pYVxn3hw7kgQj3emU1_oRpkRMA,5811
431
- letta_client-0.1.211.dist-info/METADATA,sha256=Z3nu0XWyw56Jbt9gxpL73nTA_lJkv_40QP9FhFuqzWE,5177
432
- letta_client-0.1.211.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
433
- letta_client-0.1.211.dist-info/RECORD,,
432
+ letta_client-0.1.212.dist-info/METADATA,sha256=W9ETbo2ao68n8iTEZ8T8cxKkp9SWLkqsUtNeLyhXgAw,5177
433
+ letta_client-0.1.212.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
434
+ letta_client-0.1.212.dist-info/RECORD,,