letta-client 0.1.62__py3-none-any.whl → 0.1.64__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
@@ -76,6 +76,8 @@ from .types import (
76
76
  E2BSandboxConfig,
77
77
  EmbeddingConfig,
78
78
  EmbeddingConfigEmbeddingEndpointType,
79
+ File,
80
+ FileFile,
79
81
  FileMetadata,
80
82
  FunctionCall,
81
83
  FunctionDefinitionInput,
@@ -171,6 +173,10 @@ from .types import (
171
173
  UserUpdate,
172
174
  ValidationError,
173
175
  ValidationErrorLocItem,
176
+ WebSearchOptions,
177
+ WebSearchOptionsSearchContextSize,
178
+ WebSearchOptionsUserLocation,
179
+ WebSearchOptionsUserLocationApproximate,
174
180
  )
175
181
  from .errors import ConflictError, InternalServerError, NotFoundError, UnprocessableEntityError
176
182
  from . import (
@@ -794,6 +800,8 @@ __all__ = [
794
800
  "E2BSandboxConfig",
795
801
  "EmbeddingConfig",
796
802
  "EmbeddingConfigEmbeddingEndpointType",
803
+ "File",
804
+ "FileFile",
797
805
  "FileMetadata",
798
806
  "FunctionCall",
799
807
  "FunctionDefinitionInput",
@@ -1063,6 +1071,10 @@ __all__ = [
1063
1071
  "UserUpdate",
1064
1072
  "ValidationError",
1065
1073
  "ValidationErrorLocItem",
1074
+ "WebSearchOptions",
1075
+ "WebSearchOptionsSearchContextSize",
1076
+ "WebSearchOptionsUserLocation",
1077
+ "WebSearchOptionsUserLocationApproximate",
1066
1078
  "__version__",
1067
1079
  "agents",
1068
1080
  "blocks",
@@ -73,7 +73,7 @@ class AgentsClient:
73
73
  project_id: typing.Optional[str] = None,
74
74
  template_id: typing.Optional[str] = None,
75
75
  base_template_id: typing.Optional[str] = None,
76
- identifier_id: typing.Optional[str] = None,
76
+ identity_id: typing.Optional[str] = None,
77
77
  identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
78
78
  request_options: typing.Optional[RequestOptions] = None,
79
79
  ) -> typing.List[AgentState]:
@@ -113,7 +113,7 @@ class AgentsClient:
113
113
  base_template_id : typing.Optional[str]
114
114
  Search agents by base template id
115
115
 
116
- identifier_id : typing.Optional[str]
116
+ identity_id : typing.Optional[str]
117
117
  Search agents by identifier id
118
118
 
119
119
  identifier_keys : typing.Optional[typing.Union[str, typing.Sequence[str]]]
@@ -150,7 +150,7 @@ class AgentsClient:
150
150
  "project_id": project_id,
151
151
  "template_id": template_id,
152
152
  "base_template_id": base_template_id,
153
- "identifier_id": identifier_id,
153
+ "identity_id": identity_id,
154
154
  "identifier_keys": identifier_keys,
155
155
  },
156
156
  request_options=request_options,
@@ -1142,7 +1142,7 @@ class AsyncAgentsClient:
1142
1142
  project_id: typing.Optional[str] = None,
1143
1143
  template_id: typing.Optional[str] = None,
1144
1144
  base_template_id: typing.Optional[str] = None,
1145
- identifier_id: typing.Optional[str] = None,
1145
+ identity_id: typing.Optional[str] = None,
1146
1146
  identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
1147
1147
  request_options: typing.Optional[RequestOptions] = None,
1148
1148
  ) -> typing.List[AgentState]:
@@ -1182,7 +1182,7 @@ class AsyncAgentsClient:
1182
1182
  base_template_id : typing.Optional[str]
1183
1183
  Search agents by base template id
1184
1184
 
1185
- identifier_id : typing.Optional[str]
1185
+ identity_id : typing.Optional[str]
1186
1186
  Search agents by identifier id
1187
1187
 
1188
1188
  identifier_keys : typing.Optional[typing.Union[str, typing.Sequence[str]]]
@@ -1227,7 +1227,7 @@ class AsyncAgentsClient:
1227
1227
  "project_id": project_id,
1228
1228
  "template_id": template_id,
1229
1229
  "base_template_id": base_template_id,
1230
- "identifier_id": identifier_id,
1230
+ "identity_id": identity_id,
1231
1231
  "identifier_keys": identifier_keys,
1232
1232
  },
1233
1233
  request_options=request_options,
@@ -27,6 +27,8 @@ class BlocksClient:
27
27
  label: typing.Optional[str] = None,
28
28
  templates_only: typing.Optional[bool] = None,
29
29
  name: typing.Optional[str] = None,
30
+ identity_id: typing.Optional[str] = None,
31
+ identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
30
32
  request_options: typing.Optional[RequestOptions] = None,
31
33
  ) -> typing.List[Block]:
32
34
  """
@@ -41,6 +43,12 @@ class BlocksClient:
41
43
  name : typing.Optional[str]
42
44
  Name of the block
43
45
 
46
+ identity_id : typing.Optional[str]
47
+ Search agents by identifier id
48
+
49
+ identifier_keys : typing.Optional[typing.Union[str, typing.Sequence[str]]]
50
+ Search agents by identifier keys
51
+
44
52
  request_options : typing.Optional[RequestOptions]
45
53
  Request-specific configuration.
46
54
 
@@ -65,6 +73,8 @@ class BlocksClient:
65
73
  "label": label,
66
74
  "templates_only": templates_only,
67
75
  "name": name,
76
+ "identity_id": identity_id,
77
+ "identifier_keys": identifier_keys,
68
78
  },
69
79
  request_options=request_options,
70
80
  )
@@ -461,6 +471,8 @@ class AsyncBlocksClient:
461
471
  label: typing.Optional[str] = None,
462
472
  templates_only: typing.Optional[bool] = None,
463
473
  name: typing.Optional[str] = None,
474
+ identity_id: typing.Optional[str] = None,
475
+ identifier_keys: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
464
476
  request_options: typing.Optional[RequestOptions] = None,
465
477
  ) -> typing.List[Block]:
466
478
  """
@@ -475,6 +487,12 @@ class AsyncBlocksClient:
475
487
  name : typing.Optional[str]
476
488
  Name of the block
477
489
 
490
+ identity_id : typing.Optional[str]
491
+ Search agents by identifier id
492
+
493
+ identifier_keys : typing.Optional[typing.Union[str, typing.Sequence[str]]]
494
+ Search agents by identifier keys
495
+
478
496
  request_options : typing.Optional[RequestOptions]
479
497
  Request-specific configuration.
480
498
 
@@ -507,6 +525,8 @@ class AsyncBlocksClient:
507
525
  "label": label,
508
526
  "templates_only": templates_only,
509
527
  "name": name,
528
+ "identity_id": identity_id,
529
+ "identifier_keys": identifier_keys,
510
530
  },
511
531
  request_options=request_options,
512
532
  )
@@ -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.62",
19
+ "X-Fern-SDK-Version": "0.1.64",
20
20
  }
21
21
  if self.token is not None:
22
22
  headers["Authorization"] = f"Bearer {self.token}"
@@ -118,6 +118,7 @@ class IdentitiesClient:
118
118
  project: typing.Optional[str] = None,
119
119
  project_id: typing.Optional[str] = OMIT,
120
120
  agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
121
+ block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
121
122
  properties: typing.Optional[typing.Sequence[IdentityProperty]] = OMIT,
122
123
  request_options: typing.Optional[RequestOptions] = None,
123
124
  ) -> Identity:
@@ -141,6 +142,9 @@ class IdentitiesClient:
141
142
  agent_ids : typing.Optional[typing.Sequence[str]]
142
143
  The agent ids that are associated with the identity.
143
144
 
145
+ block_ids : typing.Optional[typing.Sequence[str]]
146
+ The IDs of the blocks associated with the identity.
147
+
144
148
  properties : typing.Optional[typing.Sequence[IdentityProperty]]
145
149
  List of properties associated with the identity.
146
150
 
@@ -174,6 +178,7 @@ class IdentitiesClient:
174
178
  "identity_type": identity_type,
175
179
  "project_id": project_id,
176
180
  "agent_ids": agent_ids,
181
+ "block_ids": block_ids,
177
182
  "properties": convert_and_respect_annotation_metadata(
178
183
  object_=properties, annotation=typing.Sequence[IdentityProperty], direction="write"
179
184
  ),
@@ -217,6 +222,7 @@ class IdentitiesClient:
217
222
  project: typing.Optional[str] = None,
218
223
  project_id: typing.Optional[str] = OMIT,
219
224
  agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
225
+ block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
220
226
  properties: typing.Optional[typing.Sequence[IdentityProperty]] = OMIT,
221
227
  request_options: typing.Optional[RequestOptions] = None,
222
228
  ) -> Identity:
@@ -240,6 +246,9 @@ class IdentitiesClient:
240
246
  agent_ids : typing.Optional[typing.Sequence[str]]
241
247
  The agent ids that are associated with the identity.
242
248
 
249
+ block_ids : typing.Optional[typing.Sequence[str]]
250
+ The IDs of the blocks associated with the identity.
251
+
243
252
  properties : typing.Optional[typing.Sequence[IdentityProperty]]
244
253
  List of properties associated with the identity.
245
254
 
@@ -273,6 +282,7 @@ class IdentitiesClient:
273
282
  "identity_type": identity_type,
274
283
  "project_id": project_id,
275
284
  "agent_ids": agent_ids,
285
+ "block_ids": block_ids,
276
286
  "properties": convert_and_respect_annotation_metadata(
277
287
  object_=properties, annotation=typing.Sequence[IdentityProperty], direction="write"
278
288
  ),
@@ -427,6 +437,7 @@ class IdentitiesClient:
427
437
  name: typing.Optional[str] = OMIT,
428
438
  identity_type: typing.Optional[IdentityType] = OMIT,
429
439
  agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
440
+ block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
430
441
  properties: typing.Optional[typing.Sequence[IdentityProperty]] = OMIT,
431
442
  request_options: typing.Optional[RequestOptions] = None,
432
443
  ) -> Identity:
@@ -447,6 +458,9 @@ class IdentitiesClient:
447
458
  agent_ids : typing.Optional[typing.Sequence[str]]
448
459
  The agent ids that are associated with the identity.
449
460
 
461
+ block_ids : typing.Optional[typing.Sequence[str]]
462
+ The IDs of the blocks associated with the identity.
463
+
450
464
  properties : typing.Optional[typing.Sequence[IdentityProperty]]
451
465
  List of properties associated with the identity.
452
466
 
@@ -477,6 +491,7 @@ class IdentitiesClient:
477
491
  "name": name,
478
492
  "identity_type": identity_type,
479
493
  "agent_ids": agent_ids,
494
+ "block_ids": block_ids,
480
495
  "properties": convert_and_respect_annotation_metadata(
481
496
  object_=properties, annotation=typing.Sequence[IdentityProperty], direction="write"
482
497
  ),
@@ -619,6 +634,7 @@ class AsyncIdentitiesClient:
619
634
  project: typing.Optional[str] = None,
620
635
  project_id: typing.Optional[str] = OMIT,
621
636
  agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
637
+ block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
622
638
  properties: typing.Optional[typing.Sequence[IdentityProperty]] = OMIT,
623
639
  request_options: typing.Optional[RequestOptions] = None,
624
640
  ) -> Identity:
@@ -642,6 +658,9 @@ class AsyncIdentitiesClient:
642
658
  agent_ids : typing.Optional[typing.Sequence[str]]
643
659
  The agent ids that are associated with the identity.
644
660
 
661
+ block_ids : typing.Optional[typing.Sequence[str]]
662
+ The IDs of the blocks associated with the identity.
663
+
645
664
  properties : typing.Optional[typing.Sequence[IdentityProperty]]
646
665
  List of properties associated with the identity.
647
666
 
@@ -683,6 +702,7 @@ class AsyncIdentitiesClient:
683
702
  "identity_type": identity_type,
684
703
  "project_id": project_id,
685
704
  "agent_ids": agent_ids,
705
+ "block_ids": block_ids,
686
706
  "properties": convert_and_respect_annotation_metadata(
687
707
  object_=properties, annotation=typing.Sequence[IdentityProperty], direction="write"
688
708
  ),
@@ -726,6 +746,7 @@ class AsyncIdentitiesClient:
726
746
  project: typing.Optional[str] = None,
727
747
  project_id: typing.Optional[str] = OMIT,
728
748
  agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
749
+ block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
729
750
  properties: typing.Optional[typing.Sequence[IdentityProperty]] = OMIT,
730
751
  request_options: typing.Optional[RequestOptions] = None,
731
752
  ) -> Identity:
@@ -749,6 +770,9 @@ class AsyncIdentitiesClient:
749
770
  agent_ids : typing.Optional[typing.Sequence[str]]
750
771
  The agent ids that are associated with the identity.
751
772
 
773
+ block_ids : typing.Optional[typing.Sequence[str]]
774
+ The IDs of the blocks associated with the identity.
775
+
752
776
  properties : typing.Optional[typing.Sequence[IdentityProperty]]
753
777
  List of properties associated with the identity.
754
778
 
@@ -790,6 +814,7 @@ class AsyncIdentitiesClient:
790
814
  "identity_type": identity_type,
791
815
  "project_id": project_id,
792
816
  "agent_ids": agent_ids,
817
+ "block_ids": block_ids,
793
818
  "properties": convert_and_respect_annotation_metadata(
794
819
  object_=properties, annotation=typing.Sequence[IdentityProperty], direction="write"
795
820
  ),
@@ -960,6 +985,7 @@ class AsyncIdentitiesClient:
960
985
  name: typing.Optional[str] = OMIT,
961
986
  identity_type: typing.Optional[IdentityType] = OMIT,
962
987
  agent_ids: typing.Optional[typing.Sequence[str]] = OMIT,
988
+ block_ids: typing.Optional[typing.Sequence[str]] = OMIT,
963
989
  properties: typing.Optional[typing.Sequence[IdentityProperty]] = OMIT,
964
990
  request_options: typing.Optional[RequestOptions] = None,
965
991
  ) -> Identity:
@@ -980,6 +1006,9 @@ class AsyncIdentitiesClient:
980
1006
  agent_ids : typing.Optional[typing.Sequence[str]]
981
1007
  The agent ids that are associated with the identity.
982
1008
 
1009
+ block_ids : typing.Optional[typing.Sequence[str]]
1010
+ The IDs of the blocks associated with the identity.
1011
+
983
1012
  properties : typing.Optional[typing.Sequence[IdentityProperty]]
984
1013
  List of properties associated with the identity.
985
1014
 
@@ -1018,6 +1047,7 @@ class AsyncIdentitiesClient:
1018
1047
  "name": name,
1019
1048
  "identity_type": identity_type,
1020
1049
  "agent_ids": agent_ids,
1050
+ "block_ids": block_ids,
1021
1051
  "properties": convert_and_respect_annotation_metadata(
1022
1052
  object_=properties, annotation=typing.Sequence[IdentityProperty], direction="write"
1023
1053
  ),
@@ -75,6 +75,8 @@ from .create_block import CreateBlock
75
75
  from .e_2_b_sandbox_config import E2BSandboxConfig
76
76
  from .embedding_config import EmbeddingConfig
77
77
  from .embedding_config_embedding_endpoint_type import EmbeddingConfigEmbeddingEndpointType
78
+ from .file import File
79
+ from .file_file import FileFile
78
80
  from .file_metadata import FileMetadata
79
81
  from .function_call import FunctionCall
80
82
  from .function_definition_input import FunctionDefinitionInput
@@ -174,6 +176,10 @@ from .user_message_content import UserMessageContent
174
176
  from .user_update import UserUpdate
175
177
  from .validation_error import ValidationError
176
178
  from .validation_error_loc_item import ValidationErrorLocItem
179
+ from .web_search_options import WebSearchOptions
180
+ from .web_search_options_search_context_size import WebSearchOptionsSearchContextSize
181
+ from .web_search_options_user_location import WebSearchOptionsUserLocation
182
+ from .web_search_options_user_location_approximate import WebSearchOptionsUserLocationApproximate
177
183
 
178
184
  __all__ = [
179
185
  "ActionModel",
@@ -251,6 +257,8 @@ __all__ = [
251
257
  "E2BSandboxConfig",
252
258
  "EmbeddingConfig",
253
259
  "EmbeddingConfigEmbeddingEndpointType",
260
+ "File",
261
+ "FileFile",
254
262
  "FileMetadata",
255
263
  "FunctionCall",
256
264
  "FunctionDefinitionInput",
@@ -346,4 +354,8 @@ __all__ = [
346
354
  "UserUpdate",
347
355
  "ValidationError",
348
356
  "ValidationErrorLocItem",
357
+ "WebSearchOptions",
358
+ "WebSearchOptionsSearchContextSize",
359
+ "WebSearchOptionsUserLocation",
360
+ "WebSearchOptionsUserLocationApproximate",
349
361
  ]
@@ -4,7 +4,11 @@ import typing
4
4
  from .chat_completion_content_part_text_param import ChatCompletionContentPartTextParam
5
5
  from .chat_completion_content_part_image_param import ChatCompletionContentPartImageParam
6
6
  from .chat_completion_content_part_input_audio_param import ChatCompletionContentPartInputAudioParam
7
+ from .file import File
7
8
 
8
9
  ChatCompletionUserMessageParamContentItem = typing.Union[
9
- ChatCompletionContentPartTextParam, ChatCompletionContentPartImageParam, ChatCompletionContentPartInputAudioParam
10
+ ChatCompletionContentPartTextParam,
11
+ ChatCompletionContentPartImageParam,
12
+ ChatCompletionContentPartInputAudioParam,
13
+ File,
10
14
  ]
@@ -16,6 +16,7 @@ from .completion_create_params_non_streaming_stop import CompletionCreateParamsN
16
16
  from .chat_completion_stream_options_param import ChatCompletionStreamOptionsParam
17
17
  from .completion_create_params_non_streaming_tool_choice import CompletionCreateParamsNonStreamingToolChoice
18
18
  from .chat_completion_tool_param import ChatCompletionToolParam
19
+ from .web_search_options import WebSearchOptions
19
20
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
20
21
  import pydantic
21
22
 
@@ -50,6 +51,7 @@ class CompletionCreateParamsNonStreaming(UncheckedBaseModel):
50
51
  top_logprobs: typing.Optional[int] = None
51
52
  top_p: typing.Optional[float] = None
52
53
  user: typing.Optional[str] = None
54
+ web_search_options: typing.Optional[WebSearchOptions] = None
53
55
  stream: typing.Optional[bool] = None
54
56
 
55
57
  if IS_PYDANTIC_V2:
@@ -12,6 +12,9 @@ CompletionCreateParamsNonStreamingModel = typing.Union[
12
12
  typing.Literal["o1-preview-2024-09-12"],
13
13
  typing.Literal["o1-mini"],
14
14
  typing.Literal["o1-mini-2024-09-12"],
15
+ typing.Literal["computer-use-preview"],
16
+ typing.Literal["computer-use-preview-2025-02-04"],
17
+ typing.Literal["computer-use-preview-2025-03-11"],
15
18
  typing.Literal["gpt-4.5-preview"],
16
19
  typing.Literal["gpt-4.5-preview-2025-02-27"],
17
20
  typing.Literal["gpt-4o"],
@@ -2,9 +2,9 @@
2
2
 
3
3
  import typing
4
4
  from .response_format_text import ResponseFormatText
5
- from .response_format_json_object import ResponseFormatJsonObject
6
5
  from .response_format_json_schema import ResponseFormatJsonSchema
6
+ from .response_format_json_object import ResponseFormatJsonObject
7
7
 
8
8
  CompletionCreateParamsNonStreamingResponseFormat = typing.Union[
9
- ResponseFormatText, ResponseFormatJsonObject, ResponseFormatJsonSchema
9
+ ResponseFormatText, ResponseFormatJsonSchema, ResponseFormatJsonObject
10
10
  ]
@@ -16,6 +16,7 @@ from .completion_create_params_streaming_stop import CompletionCreateParamsStrea
16
16
  from .chat_completion_stream_options_param import ChatCompletionStreamOptionsParam
17
17
  from .completion_create_params_streaming_tool_choice import CompletionCreateParamsStreamingToolChoice
18
18
  from .chat_completion_tool_param import ChatCompletionToolParam
19
+ from .web_search_options import WebSearchOptions
19
20
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
20
21
  import pydantic
21
22
 
@@ -50,6 +51,7 @@ class CompletionCreateParamsStreaming(UncheckedBaseModel):
50
51
  top_logprobs: typing.Optional[int] = None
51
52
  top_p: typing.Optional[float] = None
52
53
  user: typing.Optional[str] = None
54
+ web_search_options: typing.Optional[WebSearchOptions] = None
53
55
  stream: bool
54
56
 
55
57
  if IS_PYDANTIC_V2:
@@ -12,6 +12,9 @@ CompletionCreateParamsStreamingModel = typing.Union[
12
12
  typing.Literal["o1-preview-2024-09-12"],
13
13
  typing.Literal["o1-mini"],
14
14
  typing.Literal["o1-mini-2024-09-12"],
15
+ typing.Literal["computer-use-preview"],
16
+ typing.Literal["computer-use-preview-2025-02-04"],
17
+ typing.Literal["computer-use-preview-2025-03-11"],
15
18
  typing.Literal["gpt-4.5-preview"],
16
19
  typing.Literal["gpt-4.5-preview-2025-02-27"],
17
20
  typing.Literal["gpt-4o"],
@@ -2,9 +2,9 @@
2
2
 
3
3
  import typing
4
4
  from .response_format_text import ResponseFormatText
5
- from .response_format_json_object import ResponseFormatJsonObject
6
5
  from .response_format_json_schema import ResponseFormatJsonSchema
6
+ from .response_format_json_object import ResponseFormatJsonObject
7
7
 
8
8
  CompletionCreateParamsStreamingResponseFormat = typing.Union[
9
- ResponseFormatText, ResponseFormatJsonObject, ResponseFormatJsonSchema
9
+ ResponseFormatText, ResponseFormatJsonSchema, ResponseFormatJsonObject
10
10
  ]
@@ -0,0 +1,21 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ from .file_file import FileFile
5
+ import typing
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import pydantic
8
+
9
+
10
+ class File(UncheckedBaseModel):
11
+ file: FileFile
12
+ type: typing.Literal["file"] = "file"
13
+
14
+ if IS_PYDANTIC_V2:
15
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
16
+ else:
17
+
18
+ class Config:
19
+ frozen = True
20
+ smart_union = True
21
+ extra = pydantic.Extra.allow
@@ -0,0 +1,21 @@
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 ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+ import pydantic
7
+
8
+
9
+ class FileFile(UncheckedBaseModel):
10
+ file_data: typing.Optional[str] = None
11
+ file_id: typing.Optional[str] = None
12
+ file_name: typing.Optional[str] = None
13
+
14
+ if IS_PYDANTIC_V2:
15
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
16
+ else:
17
+
18
+ class Config:
19
+ frozen = True
20
+ smart_union = True
21
+ extra = pydantic.Extra.allow
@@ -39,6 +39,11 @@ class Identity(UncheckedBaseModel):
39
39
  The IDs of the agents associated with the identity.
40
40
  """
41
41
 
42
+ block_ids: typing.List[str] = pydantic.Field()
43
+ """
44
+ The IDs of the blocks associated with the identity.
45
+ """
46
+
42
47
  properties: typing.Optional[typing.List[IdentityProperty]] = pydantic.Field(default=None)
43
48
  """
44
49
  List of properties associated with the identity
@@ -34,6 +34,11 @@ class IdentityCreate(UncheckedBaseModel):
34
34
  The agent ids that are associated with the identity.
35
35
  """
36
36
 
37
+ block_ids: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
38
+ """
39
+ The IDs of the blocks associated with the identity.
40
+ """
41
+
37
42
  properties: typing.Optional[typing.List[IdentityProperty]] = pydantic.Field(default=None)
38
43
  """
39
44
  List of properties associated with the identity.
@@ -0,0 +1,22 @@
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 .web_search_options_search_context_size import WebSearchOptionsSearchContextSize
6
+ from .web_search_options_user_location import WebSearchOptionsUserLocation
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
+ import pydantic
9
+
10
+
11
+ class WebSearchOptions(UncheckedBaseModel):
12
+ search_context_size: typing.Optional[WebSearchOptionsSearchContextSize] = None
13
+ user_location: typing.Optional[WebSearchOptionsUserLocation] = 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,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ WebSearchOptionsSearchContextSize = typing.Union[typing.Literal["low", "medium", "high"], typing.Any]
@@ -0,0 +1,21 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ from .web_search_options_user_location_approximate import WebSearchOptionsUserLocationApproximate
5
+ import typing
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import pydantic
8
+
9
+
10
+ class WebSearchOptionsUserLocation(UncheckedBaseModel):
11
+ approximate: WebSearchOptionsUserLocationApproximate
12
+ type: typing.Literal["approximate"] = "approximate"
13
+
14
+ if IS_PYDANTIC_V2:
15
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
16
+ else:
17
+
18
+ class Config:
19
+ frozen = True
20
+ smart_union = True
21
+ extra = pydantic.Extra.allow
@@ -0,0 +1,22 @@
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 ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+ import pydantic
7
+
8
+
9
+ class WebSearchOptionsUserLocationApproximate(UncheckedBaseModel):
10
+ city: typing.Optional[str] = None
11
+ country: typing.Optional[str] = None
12
+ region: typing.Optional[str] = None
13
+ timezone: 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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.62
3
+ Version: 0.1.64
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -1,8 +1,8 @@
1
- letta_client/__init__.py,sha256=2cOFHMqO22-puFRZq7_HpLGRsNdILRTIAhxbtr-BpqU,56880
1
+ letta_client/__init__.py,sha256=XI9aEKVo3wgE4dLFMArNCIkEgdcjYyesSas1J-MoOBg,57220
2
2
  letta_client/agents/__init__.py,sha256=ePMwPIgzTgDIbCr1wR1Zch36fvKau2B1mOFmjt47CsE,22440
3
3
  letta_client/agents/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
4
4
  letta_client/agents/blocks/client.py,sha256=u5zvutxoH_DqfSLWhRtNSRBC9_ezQDx682cxkxDz3JA,23822
5
- letta_client/agents/client.py,sha256=l4gSRAlc7U8eadadb5SJXA4Iy_XTT_Sf4dGsLmCp0ss,83839
5
+ letta_client/agents/client.py,sha256=oBd6K7pVbztBqvQ-cNEj2NxlZeviLKtEdHFZ5qtf9UQ,83823
6
6
  letta_client/agents/context/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
7
7
  letta_client/agents/context/client.py,sha256=GKKvoG4N_K8Biz9yDjeIHpFG0C8Cwc7tHmEX3pTL_9U,4815
8
8
  letta_client/agents/core_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
@@ -206,11 +206,11 @@ letta_client/agents/types/create_agent_request_tool_rules_item.py,sha256=GsXAkmp
206
206
  letta_client/agents/types/update_agent_tool_rules_item.py,sha256=gCA9oFxIWEcbVV5Z85hL0RYjmRNYwfVrYmj6BFGlGTQ,489
207
207
  letta_client/base_client.py,sha256=ZD62gkVcq-3piS6Az6L9yM9vD1kssEdtK3c0pHoRWMI,8395
208
208
  letta_client/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
209
- letta_client/blocks/client.py,sha256=AeQQ-IdYhV-zqLTt3PTrJOtJ6XtBZcXNC108Y5EogVU,29178
209
+ letta_client/blocks/client.py,sha256=LE9dsHaBxFLC3G035f0VpNDG7XKWRK8y9OXpeFCMvUw,30082
210
210
  letta_client/client.py,sha256=xdSrD4IkWokZHujowd1r7zESBoVgKGNvo6RqgZ3f0Fg,12808
211
211
  letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
212
212
  letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
213
- letta_client/core/client_wrapper.py,sha256=0hY2lLP6bDbajMY_zOt9n-F4QR_zjxIoxydYDVfyWPU,1997
213
+ letta_client/core/client_wrapper.py,sha256=Y1MRTfajLT_JBHozlJ6yBKiA5UsXD2lq1mhr1zYVBoo,1997
214
214
  letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
215
215
  letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
216
216
  letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
@@ -230,7 +230,7 @@ letta_client/errors/unprocessable_entity_error.py,sha256=FvR7XPlV3Xx5nu8HNlmLhBR
230
230
  letta_client/health/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
231
231
  letta_client/health/client.py,sha256=6BjXH83ZhsLt_MD4QA2hiTsvgfeIgxMT1KSN0Oj6e1I,3242
232
232
  letta_client/identities/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
233
- letta_client/identities/client.py,sha256=6EbK-7f6kMyEAyKMEkdR6qwXbRf_0TCrDKcIKYVQbq4,34364
233
+ letta_client/identities/client.py,sha256=NPlSrWArxHUnJU_mfUky5tpFyKxqlnFPPlXsWb7C54o,35732
234
234
  letta_client/jobs/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
235
235
  letta_client/jobs/client.py,sha256=z1Zq6dGs2xbf3EAFuD3-m-qbpbUeqpCBYqtIFKkGoMk,15622
236
236
  letta_client/models/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
@@ -423,7 +423,7 @@ letta_client/templates/types/templates_create_agents_response_agents_item_update
423
423
  letta_client/templates/types/templates_create_agents_response_agents_item_updated_at_item.py,sha256=T3rYnv5m_cBAEPBnEjUkkHJLYtFZfXNMbb7a9FrIwKY,175
424
424
  letta_client/tools/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
425
425
  letta_client/tools/client.py,sha256=Oyds2HAtLITB0vGiSjAgJhv2EhJP_7JHj9X7zCAgJDk,55555
426
- letta_client/types/__init__.py,sha256=uf7VVVNPY6IfMLi8KlYnQ-jck-enxJtJZGnmr5mCdyM,15951
426
+ letta_client/types/__init__.py,sha256=1EUV5A0eRKo-vhXbUKX_pp2-Vph-557XiQ1Xv_KyGog,16490
427
427
  letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qVR9uHg,1240
428
428
  letta_client/types/action_parameters_model.py,sha256=LgKf5aPZG3-OHGxFdXiSokIDgce8c02xPYIAY05VgW8,828
429
429
  letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcfJPj_95ynGdeHCs,824
@@ -469,25 +469,25 @@ letta_client/types/chat_completion_tool_message_param_content.py,sha256=PAHog1bP
469
469
  letta_client/types/chat_completion_tool_param.py,sha256=jwgKq_3AW8ybc9xVr9JyNSFqTs5mTeNffBQimBRAWPk,705
470
470
  letta_client/types/chat_completion_user_message_param.py,sha256=EWz44TKVGV7B2BcPSJ8Qr8R8unJXzsN4R9ziixZvrZs,786
471
471
  letta_client/types/chat_completion_user_message_param_content.py,sha256=XNFFnok5yM6oBXB6aiUo0aFw53jT8BUjt88HFjJUiU8,297
472
- letta_client/types/chat_completion_user_message_param_content_item.py,sha256=pWDgBhNJbzsSBQDxSGNojrgOxZUFFFdRppPNWZD3IgY,537
472
+ letta_client/types/chat_completion_user_message_param_content_item.py,sha256=ONQbm9RX1bbM9KO8a9mbWHyUEIuOq70wPiVFMhagLbU,579
473
473
  letta_client/types/child_tool_rule.py,sha256=7mJ9h_V75JE0RmGWpZfHuavzVt7ctz77GZvg6OH-xNM,951
474
- letta_client/types/completion_create_params_non_streaming.py,sha256=LxdYCY3Do6YGsAJ2tcMycKptNcMdM6BwPX855u2HwkU,3894
474
+ letta_client/types/completion_create_params_non_streaming.py,sha256=hjEJ-wJWuFuTy4Y73RIllBa1EMisK9gr7yQd8rrv_r8,4008
475
475
  letta_client/types/completion_create_params_non_streaming_function_call.py,sha256=6iCjgXwsXnflllhfDDKtHRyxzKqtLcX6-HVr7AXlyUM,329
476
476
  letta_client/types/completion_create_params_non_streaming_messages_item.py,sha256=pKMxLh1XFgMl7LqcjKJmdeKYTCwlr3FLFPTuvaLf3D0,883
477
477
  letta_client/types/completion_create_params_non_streaming_modalities_item.py,sha256=BuyCf2nTCWVhishXFk3CsQphnPwNXj-kBdPMjkb8X10,189
478
- letta_client/types/completion_create_params_non_streaming_model.py,sha256=JQMvA_rMtJU-R4CUF_XZ3DusXAJlsKyQFXmSNlzX25E,1812
478
+ letta_client/types/completion_create_params_non_streaming_model.py,sha256=bWeGbuTRstRZEW3AiHwZIeHFnsLWGRI5wfrpWxv91ko,1966
479
479
  letta_client/types/completion_create_params_non_streaming_reasoning_effort.py,sha256=f1hBX3qksGoGC6O2W5qHblCQXtoZiEhiN8LUy1Rv9Ig,198
480
- letta_client/types/completion_create_params_non_streaming_response_format.py,sha256=SLx41c9nW0xPHx5nRacWvFZ9IkkJOGwVvKUqIPRh0Pk,407
480
+ letta_client/types/completion_create_params_non_streaming_response_format.py,sha256=c16kBch59yhxAgMeFTxGNrEBNl4Vu3fPmZ2RqqS6bkU,407
481
481
  letta_client/types/completion_create_params_non_streaming_service_tier.py,sha256=Tfw62WLF3WSHWZy8VOVXal1INDQNtZhoB8DSA0btJ0g,188
482
482
  letta_client/types/completion_create_params_non_streaming_stop.py,sha256=5vPdgab7iH6eDizESU2_CMieWN5CN3pF8TZs-Zb7rMw,157
483
483
  letta_client/types/completion_create_params_non_streaming_tool_choice.py,sha256=jP4qKEF5-TOkBHebni-L9eNpbPnIEpv7fa6v4K_L5U8,346
484
- letta_client/types/completion_create_params_streaming.py,sha256=QquZF4KsKjhTsRM8qyx8L_33KAiVhnFyHCqZaoCTnwY,3777
484
+ letta_client/types/completion_create_params_streaming.py,sha256=sgazDkBKpQTk2NtrJ0l7F0moftbl-zgpw6lkEQt6ha0,3891
485
485
  letta_client/types/completion_create_params_streaming_function_call.py,sha256=cxsVe0wAIKPAsndL5vB_BCTy6oSxFph7qB1c1LWmeDw,326
486
486
  letta_client/types/completion_create_params_streaming_messages_item.py,sha256=S4E0fe3LgVyetb2PEqhGNxqMj5kgQx4q6Qk2bvvu2Ok,880
487
487
  letta_client/types/completion_create_params_streaming_modalities_item.py,sha256=o9ZU7r22WrE6z-BSJ72LJXHtVRIpK499WArVgY-ODgI,186
488
- letta_client/types/completion_create_params_streaming_model.py,sha256=lh78LBkczh6p5by0FOpPkRh8-PbM4-dkZzlCmC7cDCc,1809
488
+ letta_client/types/completion_create_params_streaming_model.py,sha256=ESDrTKo0396c3uH7-bxu9Xu7--e0RnBLmuVUN_0R3ho,1963
489
489
  letta_client/types/completion_create_params_streaming_reasoning_effort.py,sha256=4-JFyaD92zia-kN7bPyCWwf_AMDnG2xUXWx8GQU1EFE,195
490
- letta_client/types/completion_create_params_streaming_response_format.py,sha256=ES9DPjMIOAhVUK1V5wlZ4lrtBdDhDjD3de5BKQ7Nkss,404
490
+ letta_client/types/completion_create_params_streaming_response_format.py,sha256=31sy6fKZ4r50zvjVTnoOpwNX81Bx7kFM75Mn7-obbYI,404
491
491
  letta_client/types/completion_create_params_streaming_service_tier.py,sha256=chHakgbKOYCMtxdtGmP85rcjGkyOqt2S_JJ9SabSd-o,185
492
492
  letta_client/types/completion_create_params_streaming_stop.py,sha256=dSyQDu851QyeoRjpoE2JBIyKIYGO5jVx6UIH-bLiQwo,154
493
493
  letta_client/types/completion_create_params_streaming_tool_choice.py,sha256=w_JLYtdz8eHzF2lwlMaMGpnOl8_4mjGbsDOSpMyM5cg,343
@@ -499,6 +499,8 @@ letta_client/types/create_block.py,sha256=V57mbqUkh5c-HcDxmIiFVr3tNfoqx-WJ1GRQZP
499
499
  letta_client/types/e_2_b_sandbox_config.py,sha256=w3R4QpPjeie5aKw8sb_eKhl78J0k5vLCcATNS3Qaeyw,957
500
500
  letta_client/types/embedding_config.py,sha256=ubGDLn8_H1qOoZUUj6de0MVrQnM2umVR2vdnOolPyr4,2539
501
501
  letta_client/types/embedding_config_embedding_endpoint_type.py,sha256=Ho1HSODi21PkzsZR58g7FlIMReFU2yf0hAS5OyUsW6Q,559
502
+ letta_client/types/file.py,sha256=ZLCEYJqIJ1pzAJn4Pke6gVdKivKU9FrIg98P4GmFY8M,628
503
+ letta_client/types/file_file.py,sha256=5hunDKL7BFz4jvXp9X2oF_YH50Veg1G19fBOQBVcuCQ,666
502
504
  letta_client/types/file_metadata.py,sha256=vORZH5WZO8AwAuKq0h0W9TTuydjmDlkZC6YyZMy2jbc,1973
503
505
  letta_client/types/function_call.py,sha256=eE6VYWK3A-2xRrIV-QKqrofvaVFcPNqSzl6lrWnopZA,576
504
506
  letta_client/types/function_definition_input.py,sha256=UpoD7ftRpHquJ5zhy28TjXPBVzxj7rOHKv3gX84Nfj8,740
@@ -507,8 +509,8 @@ letta_client/types/function_output.py,sha256=7b8550BllXxtZQ3T3jfvZjcCU_ZGWNBvjlr
507
509
  letta_client/types/function_tool.py,sha256=TOETpZdqgPIgd4g9JFo3yvDBpTx4lDFzJNZH8PxAjpI,697
508
510
  letta_client/types/health.py,sha256=nQwx5ysn_cJMKUoqsfaPcGNSRSjfwX5S272UiSQJ03w,618
509
511
  letta_client/types/http_validation_error.py,sha256=yHa4_NHIMB-VKNZpk7agjLTwWIg7mv7ml3d7I-Bqiog,661
510
- letta_client/types/identity.py,sha256=9wSW-1tIYMgoyU2U3opFN1KlOoDSjgTNvKloZp1LDCM,1467
511
- letta_client/types/identity_create.py,sha256=pIufW5mmbJadPwBSG2eH1yACu6YScVClZNLZWPsFlWY,1385
512
+ letta_client/types/identity.py,sha256=ODegiJaCyiFFfYd177v-hRdJBnIwbCQImB9U_fk4s4E,1591
513
+ letta_client/types/identity_create.py,sha256=QuYCfc7dL5aHQqRIt6SlOV00bWyeMouxpKiY3Wx10o0,1538
512
514
  letta_client/types/identity_property.py,sha256=K-e-SVzwIznTAJgMrYKWvEBZmymHzUiAOql4Da7BX7o,981
513
515
  letta_client/types/identity_property_type.py,sha256=Ce360UCsjWkX5t1-4HK8_4qiBz1olFGL8gDhuLb2d6Q,183
514
516
  letta_client/types/identity_property_value.py,sha256=SQJz97fXG0XHqOGYmYRmHLbI4On3xKmPZhrrkfN8vBs,187
@@ -594,11 +596,15 @@ letta_client/types/user_message_content.py,sha256=qqNvpEusXfMaf_jKqVchqhKtAyahNA
594
596
  letta_client/types/user_update.py,sha256=0Bl1OjO7bfmlpsGQ36dSh6DH1UB_wJOTNewS0wDLkP4,731
595
597
  letta_client/types/validation_error.py,sha256=ACDS7wL5nQbS8ymFhWljwbBJmbugNa8bs2O5xEZC3u4,680
596
598
  letta_client/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
599
+ letta_client/types/web_search_options.py,sha256=ENx_YMOh8Dxj6q57LvuM7Qmq_j2h5WJh9D91lbBnj90,863
600
+ letta_client/types/web_search_options_search_context_size.py,sha256=RgJGV4rkuaCTcaS4zsw_MWzRlTYpyNT9QqzNvpd1Gno,182
601
+ letta_client/types/web_search_options_user_location.py,sha256=4aXfFcwUBu7YNA5XBjfhmD6tgRb0e8LTFexmn-rkDfw,770
602
+ letta_client/types/web_search_options_user_location_approximate.py,sha256=Ywk01J9H67L6_498E5E6ceJ2VbJUfcLiIJWD_s92_M0,731
597
603
  letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
598
604
  letta_client/voice/__init__.py,sha256=ZrZEuXIukVGhsfM-i0dIFfqjeSOBMPeEgDva7VvnipE,167
599
605
  letta_client/voice/client.py,sha256=O38dLq__WTwLPlFTtvw1hgqaPYK9alds_ft12Bnp5fs,6475
600
606
  letta_client/voice/types/__init__.py,sha256=hBLJcrom99DkDxxsVRU2ni8kPx6SsCy8gtAJvNOz26w,199
601
607
  letta_client/voice/types/create_voice_chat_completions_request.py,sha256=K4__83rXRCshfdobyAmH-5fUDJQ_PeSQetTUeC4Abk0,381
602
- letta_client-0.1.62.dist-info/METADATA,sha256=qRM3R0WYKTHRU5xOCMhjGilW0fjbSayQ5njIKKeF_y0,4942
603
- letta_client-0.1.62.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
604
- letta_client-0.1.62.dist-info/RECORD,,
608
+ letta_client-0.1.64.dist-info/METADATA,sha256=DFP4jwTN3m08CVvZQnt9fNL_n8KJQf8j-INI7TiG4eQ,4942
609
+ letta_client-0.1.64.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
610
+ letta_client-0.1.64.dist-info/RECORD,,