letta-client 0.1.227__py3-none-any.whl → 0.1.229__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
@@ -143,6 +143,7 @@ from .types import (
143
143
  LettaUsageStatistics,
144
144
  LettaUserMessageContentUnion,
145
145
  LlmConfig,
146
+ LlmConfigCompatibilityType,
146
147
  LlmConfigModelEndpointType,
147
148
  LlmConfigReasoningEffort,
148
149
  LocalSandboxConfig,
@@ -525,6 +526,7 @@ __all__ = [
525
526
  "LettaUserMessageContentUnion",
526
527
  "ListMcpServersResponseValue",
527
528
  "LlmConfig",
529
+ "LlmConfigCompatibilityType",
528
530
  "LlmConfigModelEndpointType",
529
531
  "LlmConfigReasoningEffort",
530
532
  "LocalSandboxConfig",
@@ -33,6 +33,14 @@ class BlocksClient:
33
33
  identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
34
34
  project_id: typing.Optional[str] = None,
35
35
  limit: typing.Optional[int] = None,
36
+ before: typing.Optional[str] = None,
37
+ after: typing.Optional[str] = None,
38
+ label_search: typing.Optional[str] = None,
39
+ description_search: typing.Optional[str] = None,
40
+ value_search: typing.Optional[str] = None,
41
+ connected_to_agents_count_gt: typing.Optional[int] = None,
42
+ connected_to_agents_count_lt: typing.Optional[int] = None,
43
+ connected_to_agents_count_eq: typing.Optional[typing.Union[int, typing.Sequence[int]]] = None,
36
44
  request_options: typing.Optional[RequestOptions] = None,
37
45
  ) -> typing.List[Block]:
38
46
  """
@@ -59,6 +67,30 @@ class BlocksClient:
59
67
  limit : typing.Optional[int]
60
68
  Number of blocks to return
61
69
 
70
+ before : typing.Optional[str]
71
+ Cursor for pagination. If provided, returns blocks before this cursor.
72
+
73
+ after : typing.Optional[str]
74
+ Cursor for pagination. If provided, returns blocks after this cursor.
75
+
76
+ label_search : typing.Optional[str]
77
+ Search blocks by label. If provided, returns blocks that match this label. This is a full-text search on labels.
78
+
79
+ description_search : typing.Optional[str]
80
+ Search blocks by description. If provided, returns blocks that match this description. This is a full-text search on block descriptions.
81
+
82
+ value_search : typing.Optional[str]
83
+ Search blocks by value. If provided, returns blocks that match this value.
84
+
85
+ connected_to_agents_count_gt : typing.Optional[int]
86
+ Filter blocks by the number of connected agents. If provided, returns blocks that have more than this number of connected agents.
87
+
88
+ connected_to_agents_count_lt : typing.Optional[int]
89
+ Filter blocks by the number of connected agents. If provided, returns blocks that have less than this number of connected agents.
90
+
91
+ connected_to_agents_count_eq : typing.Optional[typing.Union[int, typing.Sequence[int]]]
92
+ Filter blocks by the exact number of connected agents. If provided, returns blocks that have exactly this number of connected agents.
93
+
62
94
  request_options : typing.Optional[RequestOptions]
63
95
  Request-specific configuration.
64
96
 
@@ -88,6 +120,14 @@ class BlocksClient:
88
120
  "identifier_keys": identifier_keys,
89
121
  "project_id": project_id,
90
122
  "limit": limit,
123
+ "before": before,
124
+ "after": after,
125
+ "label_search": label_search,
126
+ "description_search": description_search,
127
+ "value_search": value_search,
128
+ "connected_to_agents_count_gt": connected_to_agents_count_gt,
129
+ "connected_to_agents_count_lt": connected_to_agents_count_lt,
130
+ "connected_to_agents_count_eq": connected_to_agents_count_eq,
91
131
  },
92
132
  request_options=request_options,
93
133
  )
@@ -519,6 +559,14 @@ class AsyncBlocksClient:
519
559
  identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
520
560
  project_id: typing.Optional[str] = None,
521
561
  limit: typing.Optional[int] = None,
562
+ before: typing.Optional[str] = None,
563
+ after: typing.Optional[str] = None,
564
+ label_search: typing.Optional[str] = None,
565
+ description_search: typing.Optional[str] = None,
566
+ value_search: typing.Optional[str] = None,
567
+ connected_to_agents_count_gt: typing.Optional[int] = None,
568
+ connected_to_agents_count_lt: typing.Optional[int] = None,
569
+ connected_to_agents_count_eq: typing.Optional[typing.Union[int, typing.Sequence[int]]] = None,
522
570
  request_options: typing.Optional[RequestOptions] = None,
523
571
  ) -> typing.List[Block]:
524
572
  """
@@ -545,6 +593,30 @@ class AsyncBlocksClient:
545
593
  limit : typing.Optional[int]
546
594
  Number of blocks to return
547
595
 
596
+ before : typing.Optional[str]
597
+ Cursor for pagination. If provided, returns blocks before this cursor.
598
+
599
+ after : typing.Optional[str]
600
+ Cursor for pagination. If provided, returns blocks after this cursor.
601
+
602
+ label_search : typing.Optional[str]
603
+ Search blocks by label. If provided, returns blocks that match this label. This is a full-text search on labels.
604
+
605
+ description_search : typing.Optional[str]
606
+ Search blocks by description. If provided, returns blocks that match this description. This is a full-text search on block descriptions.
607
+
608
+ value_search : typing.Optional[str]
609
+ Search blocks by value. If provided, returns blocks that match this value.
610
+
611
+ connected_to_agents_count_gt : typing.Optional[int]
612
+ Filter blocks by the number of connected agents. If provided, returns blocks that have more than this number of connected agents.
613
+
614
+ connected_to_agents_count_lt : typing.Optional[int]
615
+ Filter blocks by the number of connected agents. If provided, returns blocks that have less than this number of connected agents.
616
+
617
+ connected_to_agents_count_eq : typing.Optional[typing.Union[int, typing.Sequence[int]]]
618
+ Filter blocks by the exact number of connected agents. If provided, returns blocks that have exactly this number of connected agents.
619
+
548
620
  request_options : typing.Optional[RequestOptions]
549
621
  Request-specific configuration.
550
622
 
@@ -582,6 +654,14 @@ class AsyncBlocksClient:
582
654
  "identifier_keys": identifier_keys,
583
655
  "project_id": project_id,
584
656
  "limit": limit,
657
+ "before": before,
658
+ "after": after,
659
+ "label_search": label_search,
660
+ "description_search": description_search,
661
+ "value_search": value_search,
662
+ "connected_to_agents_count_gt": connected_to_agents_count_gt,
663
+ "connected_to_agents_count_lt": connected_to_agents_count_lt,
664
+ "connected_to_agents_count_eq": connected_to_agents_count_eq,
585
665
  },
586
666
  request_options=request_options,
587
667
  )
@@ -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.227",
27
+ "X-Fern-SDK-Version": "0.1.229",
28
28
  }
29
29
  if self._project is not None:
30
30
  headers["X-Project"] = self._project
@@ -142,6 +142,7 @@ from .letta_streaming_request import LettaStreamingRequest
142
142
  from .letta_usage_statistics import LettaUsageStatistics
143
143
  from .letta_user_message_content_union import LettaUserMessageContentUnion
144
144
  from .llm_config import LlmConfig
145
+ from .llm_config_compatibility_type import LlmConfigCompatibilityType
145
146
  from .llm_config_model_endpoint_type import LlmConfigModelEndpointType
146
147
  from .llm_config_reasoning_effort import LlmConfigReasoningEffort
147
148
  from .local_sandbox_config import LocalSandboxConfig
@@ -410,6 +411,7 @@ __all__ = [
410
411
  "LettaUsageStatistics",
411
412
  "LettaUserMessageContentUnion",
412
413
  "LlmConfig",
414
+ "LlmConfigCompatibilityType",
413
415
  "LlmConfigModelEndpointType",
414
416
  "LlmConfigReasoningEffort",
415
417
  "LocalSandboxConfig",
@@ -6,6 +6,7 @@ from .llm_config_model_endpoint_type import LlmConfigModelEndpointType
6
6
  import typing
7
7
  from .provider_category import ProviderCategory
8
8
  from .llm_config_reasoning_effort import LlmConfigReasoningEffort
9
+ from .llm_config_compatibility_type import LlmConfigCompatibilityType
9
10
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
11
 
11
12
 
@@ -99,6 +100,11 @@ class LlmConfig(UncheckedBaseModel):
99
100
  Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. From OpenAI: Number between -2.0 and 2.0.
100
101
  """
101
102
 
103
+ compatibility_type: typing.Optional[LlmConfigCompatibilityType] = pydantic.Field(default=None)
104
+ """
105
+ The framework compatibility type for the model.
106
+ """
107
+
102
108
  if IS_PYDANTIC_V2:
103
109
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
104
110
  else:
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ LlmConfigCompatibilityType = typing.Union[typing.Literal["gguf", "mlx"], typing.Any]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.227
3
+ Version: 0.1.229
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=kQxkWRS8b6iG1Tb3TvpqswqflQ_k9nexhmX_MxZXRiE,19604
1
+ letta_client/__init__.py,sha256=odL7kc6POr_sk1A0B-scxJY-q3HW7YCsOQrITO0FkSg,19670
2
2
  letta_client/agents/__init__.py,sha256=9wEJMighDL1OFg_7Qh-D50bubPbV4BWo1ZKYxdDJGIQ,2146
3
3
  letta_client/agents/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
4
4
  letta_client/agents/blocks/client.py,sha256=kCAcU1ACOKRCrjEYPyCQslWBjtsq7m4QboQP0wwLQy8,25392
@@ -57,7 +57,7 @@ letta_client/batches/client.py,sha256=DHnsRYHgxVh6OvfAE8etlbno1FMg4cIzAYiydJrfmJ
57
57
  letta_client/blocks/__init__.py,sha256=c6SGOs9_YGdydYAzhe5TUiaXq52rpWT1mNMcke8qGTQ,108
58
58
  letta_client/blocks/agents/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
59
59
  letta_client/blocks/agents/client.py,sha256=2mBOt6CZanLUi_8Nc-bthaGoKhU3WgSA9vL1UjMdZE8,6066
60
- letta_client/blocks/client.py,sha256=dkF-SBlCuWUye5IY18c9fD9_OIPO1H8wVDRmAgDar7U,33351
60
+ letta_client/blocks/client.py,sha256=WtqD_Uz8i_zn6fgEEJTLi4k4aP3n10Npu1R7dbJxUz4,38007
61
61
  letta_client/client.py,sha256=iXqKTuQ0F9jIjkTwD73apLlLQqUF1IF6V_PhenY_CJo,22470
62
62
  letta_client/client_side_access_tokens/__init__.py,sha256=e9NgxUsEnfbJVCM2npPuQ02dAS5jlXmneqU9DS6Q3d8,1561
63
63
  letta_client/client_side_access_tokens/client.py,sha256=5aiqgKkzXElPgJszjyT-1wPRsBziH32UJwPVGQdZOFg,18215
@@ -75,7 +75,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_list_clie
75
75
  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
76
76
  letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
77
77
  letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
78
- letta_client/core/client_wrapper.py,sha256=0OVGNq7fJACf2IFR_zF3LTVzL_3eRQsfHgV5uUw7nKg,2336
78
+ letta_client/core/client_wrapper.py,sha256=P1S2qH7k_F5jsvj-NffyIrD9ybDOJEuRCJm6cVBd02I,2336
79
79
  letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
80
80
  letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
81
81
  letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
@@ -181,7 +181,7 @@ letta_client/tools/types/streaming_response.py,sha256=E7W0OqxHFmhU2slJdzVZBxQA50
181
181
  letta_client/tools/types/test_mcp_server_request.py,sha256=sLlOEZdmLfkHqHCkUjntGbr8_MkBhsqpMQ-HwdNOnq0,372
182
182
  letta_client/tools/types/update_mcp_server_request.py,sha256=nCpx9-OvpH0l5iJxEi8kgSok1F1r7liEAZm-kaqBtEo,402
183
183
  letta_client/tools/types/update_mcp_server_response.py,sha256=muwHagaQBMwQI0of9EBCBtG9lD-jELFAevgTB2MjpFQ,375
184
- letta_client/types/__init__.py,sha256=V1-RZZZKB-4Vfvhxfkl7fKZRnT9ZKZ7BWnalHEEc3YQ,23170
184
+ letta_client/types/__init__.py,sha256=HuhLyNq2joA0SuABYPWtKbL1QBTKsjGRsj_9tbJ3niU,23274
185
185
  letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qVR9uHg,1240
186
186
  letta_client/types/action_parameters_model.py,sha256=LgKf5aPZG3-OHGxFdXiSokIDgce8c02xPYIAY05VgW8,828
187
187
  letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcfJPj_95ynGdeHCs,824
@@ -323,7 +323,8 @@ letta_client/types/letta_stop_reason.py,sha256=5uqJibhaT6LFTj6Sf6m0VJKS1FJzIIgym
323
323
  letta_client/types/letta_streaming_request.py,sha256=-mWkurh8AywX0YjIt5AYbxlE3m6iDYCUCkgpkzUE3G4,2059
324
324
  letta_client/types/letta_usage_statistics.py,sha256=k6V72J2TEPd-RQBuUQxF3oylrAMcuSKBskd2nnZmGOw,1886
325
325
  letta_client/types/letta_user_message_content_union.py,sha256=3Gbs3mRk-tJj2z0Mf-BNDomWHEytQd3OTUN4xnEVsuE,229
326
- letta_client/types/llm_config.py,sha256=m8IlVCS4uSXVYsuIadilgO32UpuD4_ij0a1hcRQiMLo,4306
326
+ letta_client/types/llm_config.py,sha256=kKxNEvj0AUGaAtfVY1Ha6Uq7rZT3OCvDXqQvi_0oWao,4544
327
+ letta_client/types/llm_config_compatibility_type.py,sha256=m6E90W-R9-Oi3EGSV_GdPIuVC2rmAH7TsUKbl79EiAQ,165
327
328
  letta_client/types/llm_config_model_endpoint_type.py,sha256=HOSM5kIZDCNAVCWmASvAk52K819plqGlD66yKQ1xFkI,620
328
329
  letta_client/types/llm_config_reasoning_effort.py,sha256=AHL2nI5aeTfPhijnhaL3aiP8EoJhy_Wdupi2pyMm4sA,173
329
330
  letta_client/types/local_sandbox_config.py,sha256=jfe7akG_YrJJ8csLaLdev04Zg1x-PTN0XCAL4KifaZI,1387
@@ -447,6 +448,6 @@ letta_client/types/web_search_options_user_location_approximate.py,sha256=Ywk01J
447
448
  letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
448
449
  letta_client/voice/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
449
450
  letta_client/voice/client.py,sha256=47iQYCuW_qpKI4hM3pYVxn3hw7kgQj3emU1_oRpkRMA,5811
450
- letta_client-0.1.227.dist-info/METADATA,sha256=GtRHclWU1g78NUy1aC1zS6Y2fDhmQY8rjd3l8R0GMLg,5064
451
- letta_client-0.1.227.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
452
- letta_client-0.1.227.dist-info/RECORD,,
451
+ letta_client-0.1.229.dist-info/METADATA,sha256=JgGPSoV5yx9NO-4jaWy-R5klTr-5WsMqG8ntAMy9EEg,5064
452
+ letta_client-0.1.229.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
453
+ letta_client-0.1.229.dist-info/RECORD,,