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

Files changed (105) hide show
  1. letta_client/__init__.py +6 -182
  2. letta_client/core/client_wrapper.py +2 -2
  3. letta_client/runs/client.py +18 -8
  4. letta_client/runs/raw_client.py +18 -8
  5. letta_client/types/__init__.py +6 -196
  6. letta_client/types/batch_job.py +10 -0
  7. letta_client/types/{chat_completion_message_function_tool_call_output.py → chat_completion_message_function_tool_call.py} +3 -3
  8. letta_client/types/{function_call.py → function.py} +1 -1
  9. letta_client/types/{function_definition_input.py → function_definition.py} +1 -1
  10. letta_client/types/function_tool.py +2 -2
  11. letta_client/types/job.py +10 -0
  12. letta_client/types/letta_schemas_agent_file_message_schema.py +2 -2
  13. letta_client/types/message.py +2 -2
  14. letta_client/types/run.py +10 -0
  15. {letta_client-0.1.320.dist-info → letta_client-0.1.322.dist-info}/METADATA +1 -1
  16. {letta_client-0.1.320.dist-info → letta_client-0.1.322.dist-info}/RECORD +17 -105
  17. letta_client/types/audio.py +0 -20
  18. letta_client/types/chat_completion_allowed_tool_choice_param.py +0 -22
  19. letta_client/types/chat_completion_allowed_tools_param.py +0 -22
  20. letta_client/types/chat_completion_allowed_tools_param_mode.py +0 -5
  21. letta_client/types/chat_completion_assistant_message_param.py +0 -30
  22. letta_client/types/chat_completion_assistant_message_param_content.py +0 -9
  23. letta_client/types/chat_completion_assistant_message_param_content_item.py +0 -10
  24. letta_client/types/chat_completion_assistant_message_param_tool_calls_item.py +0 -10
  25. letta_client/types/chat_completion_audio_param.py +0 -23
  26. letta_client/types/chat_completion_audio_param_format.py +0 -5
  27. letta_client/types/chat_completion_audio_param_voice.py +0 -15
  28. letta_client/types/chat_completion_content_part_image_param.py +0 -22
  29. letta_client/types/chat_completion_content_part_input_audio_param.py +0 -22
  30. letta_client/types/chat_completion_content_part_refusal_param.py +0 -21
  31. letta_client/types/chat_completion_content_part_text_param.py +0 -21
  32. letta_client/types/chat_completion_custom_tool_param.py +0 -24
  33. letta_client/types/chat_completion_developer_message_param.py +0 -23
  34. letta_client/types/chat_completion_developer_message_param_content.py +0 -7
  35. letta_client/types/chat_completion_function_call_option_param.py +0 -20
  36. letta_client/types/chat_completion_function_message_param.py +0 -22
  37. letta_client/types/chat_completion_function_tool_param.py +0 -22
  38. letta_client/types/chat_completion_message_custom_tool_call_param.py +0 -25
  39. letta_client/types/chat_completion_message_function_tool_call_input.py +0 -25
  40. letta_client/types/chat_completion_message_function_tool_call_param.py +0 -25
  41. letta_client/types/chat_completion_named_tool_choice_custom_param.py +0 -24
  42. letta_client/types/chat_completion_named_tool_choice_param.py +0 -24
  43. letta_client/types/chat_completion_prediction_content_param.py +0 -22
  44. letta_client/types/chat_completion_prediction_content_param_content.py +0 -7
  45. letta_client/types/chat_completion_stream_options_param.py +0 -21
  46. letta_client/types/chat_completion_system_message_param.py +0 -23
  47. letta_client/types/chat_completion_system_message_param_content.py +0 -7
  48. letta_client/types/chat_completion_tool_message_param.py +0 -23
  49. letta_client/types/chat_completion_tool_message_param_content.py +0 -7
  50. letta_client/types/chat_completion_user_message_param.py +0 -23
  51. letta_client/types/chat_completion_user_message_param_content.py +0 -7
  52. letta_client/types/chat_completion_user_message_param_content_item.py +0 -15
  53. letta_client/types/completion_create_params_non_streaming.py +0 -69
  54. letta_client/types/completion_create_params_non_streaming_function_call.py +0 -9
  55. letta_client/types/completion_create_params_non_streaming_messages_item.py +0 -19
  56. letta_client/types/completion_create_params_non_streaming_modalities_item.py +0 -5
  57. letta_client/types/completion_create_params_non_streaming_model.py +0 -69
  58. letta_client/types/completion_create_params_non_streaming_reasoning_effort.py +0 -7
  59. letta_client/types/completion_create_params_non_streaming_response_format.py +0 -11
  60. letta_client/types/completion_create_params_non_streaming_service_tier.py +0 -7
  61. letta_client/types/completion_create_params_non_streaming_stop.py +0 -5
  62. letta_client/types/completion_create_params_non_streaming_tool_choice.py +0 -16
  63. letta_client/types/completion_create_params_non_streaming_tools_item.py +0 -10
  64. letta_client/types/completion_create_params_non_streaming_verbosity.py +0 -5
  65. letta_client/types/completion_create_params_streaming.py +0 -69
  66. letta_client/types/completion_create_params_streaming_function_call.py +0 -9
  67. letta_client/types/completion_create_params_streaming_messages_item.py +0 -19
  68. letta_client/types/completion_create_params_streaming_modalities_item.py +0 -5
  69. letta_client/types/completion_create_params_streaming_model.py +0 -69
  70. letta_client/types/completion_create_params_streaming_reasoning_effort.py +0 -7
  71. letta_client/types/completion_create_params_streaming_response_format.py +0 -11
  72. letta_client/types/completion_create_params_streaming_service_tier.py +0 -7
  73. letta_client/types/completion_create_params_streaming_stop.py +0 -5
  74. letta_client/types/completion_create_params_streaming_tool_choice.py +0 -16
  75. letta_client/types/completion_create_params_streaming_tools_item.py +0 -8
  76. letta_client/types/completion_create_params_streaming_verbosity.py +0 -5
  77. letta_client/types/custom_format_grammar.py +0 -22
  78. letta_client/types/custom_format_grammar_grammar.py +0 -22
  79. letta_client/types/custom_format_grammar_grammar_syntax.py +0 -5
  80. letta_client/types/custom_format_text.py +0 -20
  81. letta_client/types/file.py +0 -22
  82. letta_client/types/file_file.py +0 -22
  83. letta_client/types/function_definition_output.py +0 -23
  84. letta_client/types/function_output.py +0 -21
  85. letta_client/types/image_url.py +0 -22
  86. letta_client/types/image_url_detail.py +0 -5
  87. letta_client/types/input_audio.py +0 -22
  88. letta_client/types/input_audio_format.py +0 -5
  89. letta_client/types/json_schema.py +0 -27
  90. letta_client/types/openai_types_chat_chat_completion_custom_tool_param_custom.py +0 -25
  91. letta_client/types/openai_types_chat_chat_completion_custom_tool_param_custom_format.py +0 -8
  92. letta_client/types/openai_types_chat_chat_completion_message_custom_tool_call_param_custom.py +0 -21
  93. letta_client/types/openai_types_chat_chat_completion_message_function_tool_call_function.py +0 -21
  94. letta_client/types/openai_types_chat_chat_completion_message_function_tool_call_param_function.py +0 -21
  95. letta_client/types/openai_types_chat_chat_completion_named_tool_choice_custom_param_custom.py +0 -20
  96. letta_client/types/openai_types_chat_chat_completion_named_tool_choice_param_function.py +0 -20
  97. letta_client/types/openai_types_chat_completion_create_params_function.py +0 -22
  98. letta_client/types/response_format_json_object.py +0 -20
  99. letta_client/types/response_format_json_schema.py +0 -22
  100. letta_client/types/response_format_text.py +0 -20
  101. letta_client/types/web_search_options.py +0 -23
  102. letta_client/types/web_search_options_search_context_size.py +0 -5
  103. letta_client/types/web_search_options_user_location.py +0 -22
  104. letta_client/types/web_search_options_user_location_approximate.py +0 -23
  105. {letta_client-0.1.320.dist-info → letta_client-0.1.322.dist-info}/WHEEL +0 -0
letta_client/__init__.py CHANGED
@@ -25,7 +25,6 @@ from .types import (
25
25
  Archive,
26
26
  AssistantMessage,
27
27
  AssistantMessageContent,
28
- Audio,
29
28
  AuthRequest,
30
29
  AuthResponse,
31
30
  AuthSchemeField,
@@ -37,69 +36,10 @@ from .types import (
37
36
  BlockSchema,
38
37
  BlockUpdate,
39
38
  BodyExportAgent,
40
- ChatCompletionAllowedToolChoiceParam,
41
- ChatCompletionAllowedToolsParam,
42
- ChatCompletionAllowedToolsParamMode,
43
- ChatCompletionAssistantMessageParam,
44
- ChatCompletionAssistantMessageParamContent,
45
- ChatCompletionAssistantMessageParamContentItem,
46
- ChatCompletionAssistantMessageParamToolCallsItem,
47
- ChatCompletionAudioParam,
48
- ChatCompletionAudioParamFormat,
49
- ChatCompletionAudioParamVoice,
50
- ChatCompletionContentPartImageParam,
51
- ChatCompletionContentPartInputAudioParam,
52
- ChatCompletionContentPartRefusalParam,
53
- ChatCompletionContentPartTextParam,
54
- ChatCompletionCustomToolParam,
55
- ChatCompletionDeveloperMessageParam,
56
- ChatCompletionDeveloperMessageParamContent,
57
- ChatCompletionFunctionCallOptionParam,
58
- ChatCompletionFunctionMessageParam,
59
- ChatCompletionFunctionToolParam,
60
- ChatCompletionMessageCustomToolCallParam,
61
- ChatCompletionMessageFunctionToolCallInput,
62
- ChatCompletionMessageFunctionToolCallOutput,
63
- ChatCompletionMessageFunctionToolCallParam,
64
- ChatCompletionNamedToolChoiceCustomParam,
65
- ChatCompletionNamedToolChoiceParam,
66
- ChatCompletionPredictionContentParam,
67
- ChatCompletionPredictionContentParamContent,
68
- ChatCompletionStreamOptionsParam,
69
- ChatCompletionSystemMessageParam,
70
- ChatCompletionSystemMessageParamContent,
71
- ChatCompletionToolMessageParam,
72
- ChatCompletionToolMessageParamContent,
73
- ChatCompletionUserMessageParam,
74
- ChatCompletionUserMessageParamContent,
75
- ChatCompletionUserMessageParamContentItem,
39
+ ChatCompletionMessageFunctionToolCall,
76
40
  ChildToolRule,
77
41
  ChildToolRuleSchema,
78
42
  CodeInput,
79
- CompletionCreateParamsNonStreaming,
80
- CompletionCreateParamsNonStreamingFunctionCall,
81
- CompletionCreateParamsNonStreamingMessagesItem,
82
- CompletionCreateParamsNonStreamingModalitiesItem,
83
- CompletionCreateParamsNonStreamingModel,
84
- CompletionCreateParamsNonStreamingReasoningEffort,
85
- CompletionCreateParamsNonStreamingResponseFormat,
86
- CompletionCreateParamsNonStreamingServiceTier,
87
- CompletionCreateParamsNonStreamingStop,
88
- CompletionCreateParamsNonStreamingToolChoice,
89
- CompletionCreateParamsNonStreamingToolsItem,
90
- CompletionCreateParamsNonStreamingVerbosity,
91
- CompletionCreateParamsStreaming,
92
- CompletionCreateParamsStreamingFunctionCall,
93
- CompletionCreateParamsStreamingMessagesItem,
94
- CompletionCreateParamsStreamingModalitiesItem,
95
- CompletionCreateParamsStreamingModel,
96
- CompletionCreateParamsStreamingReasoningEffort,
97
- CompletionCreateParamsStreamingResponseFormat,
98
- CompletionCreateParamsStreamingServiceTier,
99
- CompletionCreateParamsStreamingStop,
100
- CompletionCreateParamsStreamingToolChoice,
101
- CompletionCreateParamsStreamingToolsItem,
102
- CompletionCreateParamsStreamingVerbosity,
103
43
  ComponentsSchemasTextContent,
104
44
  ConditionalToolRule,
105
45
  ConditionalToolRuleSchema,
@@ -108,10 +48,6 @@ from .types import (
108
48
  ContinueToolRule,
109
49
  CoreMemoryBlockSchema,
110
50
  CreateBlock,
111
- CustomFormatGrammar,
112
- CustomFormatGrammarGrammar,
113
- CustomFormatGrammarGrammarSyntax,
114
- CustomFormatText,
115
51
  DeleteDeploymentResponse,
116
52
  DeploymentEntity,
117
53
  DuplicateFileHandling,
@@ -121,19 +57,15 @@ from .types import (
121
57
  EmbeddingConfig,
122
58
  EmbeddingConfigEmbeddingEndpointType,
123
59
  FeedbackType,
124
- File,
125
60
  FileAgentSchema,
126
61
  FileBlock,
127
- FileFile,
128
62
  FileMetadata,
129
63
  FileProcessingStatus,
130
64
  FileSchema,
131
65
  FileStats,
132
66
  Folder,
133
- FunctionCall,
134
- FunctionDefinitionInput,
135
- FunctionDefinitionOutput,
136
- FunctionOutput,
67
+ Function,
68
+ FunctionDefinition,
137
69
  FunctionTool,
138
70
  GenerateToolInput,
139
71
  GenerateToolOutput,
@@ -151,12 +83,8 @@ from .types import (
151
83
  IdentityType,
152
84
  ImageContent,
153
85
  ImageContentSource,
154
- ImageUrl,
155
- ImageUrlDetail,
156
86
  ImportedAgentsResponse,
157
87
  InitToolRule,
158
- InputAudio,
159
- InputAudioFormat,
160
88
  InternalServerErrorBody,
161
89
  InternalTemplateAgentCreate,
162
90
  InternalTemplateAgentCreateResponseFormat,
@@ -168,7 +96,6 @@ from .types import (
168
96
  JobStatus,
169
97
  JobType,
170
98
  JsonObjectResponseFormat,
171
- JsonSchema,
172
99
  JsonSchemaResponseFormat,
173
100
  LettaBatchMessages,
174
101
  LettaBatchRequest,
@@ -226,14 +153,6 @@ from .types import (
226
153
  NotFoundErrorBody,
227
154
  NpmRequirement,
228
155
  OmittedReasoningContent,
229
- OpenaiTypesChatChatCompletionCustomToolParamCustom,
230
- OpenaiTypesChatChatCompletionCustomToolParamCustomFormat,
231
- OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom,
232
- OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction,
233
- OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction,
234
- OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom,
235
- OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction,
236
- OpenaiTypesChatCompletionCreateParamsFunction,
237
156
  Organization,
238
157
  OrganizationCreate,
239
158
  OrganizationSourcesStats,
@@ -255,9 +174,6 @@ from .types import (
255
174
  RedactedReasoningContent,
256
175
  RequiredBeforeExitToolRule,
257
176
  RequiresApprovalToolRule,
258
- ResponseFormatJsonObject,
259
- ResponseFormatJsonSchema,
260
- ResponseFormatText,
261
177
  RoundRobinManager,
262
178
  RoundRobinManagerUpdate,
263
179
  Run,
@@ -331,10 +247,6 @@ from .types import (
331
247
  VectorDbProvider,
332
248
  VoiceSleeptimeManager,
333
249
  VoiceSleeptimeManagerUpdate,
334
- WebSearchOptions,
335
- WebSearchOptionsSearchContextSize,
336
- WebSearchOptionsUserLocation,
337
- WebSearchOptionsUserLocationApproximate,
338
250
  )
339
251
  from .errors import (
340
252
  BadRequestError,
@@ -504,7 +416,6 @@ __all__ = [
504
416
  "AssistantMessage",
505
417
  "AssistantMessageContent",
506
418
  "AsyncLetta",
507
- "Audio",
508
419
  "AuthRequest",
509
420
  "AuthResponse",
510
421
  "AuthSchemeField",
@@ -519,42 +430,7 @@ __all__ = [
519
430
  "BlockUpdate",
520
431
  "BlocksListRequestOrder",
521
432
  "BodyExportAgent",
522
- "ChatCompletionAllowedToolChoiceParam",
523
- "ChatCompletionAllowedToolsParam",
524
- "ChatCompletionAllowedToolsParamMode",
525
- "ChatCompletionAssistantMessageParam",
526
- "ChatCompletionAssistantMessageParamContent",
527
- "ChatCompletionAssistantMessageParamContentItem",
528
- "ChatCompletionAssistantMessageParamToolCallsItem",
529
- "ChatCompletionAudioParam",
530
- "ChatCompletionAudioParamFormat",
531
- "ChatCompletionAudioParamVoice",
532
- "ChatCompletionContentPartImageParam",
533
- "ChatCompletionContentPartInputAudioParam",
534
- "ChatCompletionContentPartRefusalParam",
535
- "ChatCompletionContentPartTextParam",
536
- "ChatCompletionCustomToolParam",
537
- "ChatCompletionDeveloperMessageParam",
538
- "ChatCompletionDeveloperMessageParamContent",
539
- "ChatCompletionFunctionCallOptionParam",
540
- "ChatCompletionFunctionMessageParam",
541
- "ChatCompletionFunctionToolParam",
542
- "ChatCompletionMessageCustomToolCallParam",
543
- "ChatCompletionMessageFunctionToolCallInput",
544
- "ChatCompletionMessageFunctionToolCallOutput",
545
- "ChatCompletionMessageFunctionToolCallParam",
546
- "ChatCompletionNamedToolChoiceCustomParam",
547
- "ChatCompletionNamedToolChoiceParam",
548
- "ChatCompletionPredictionContentParam",
549
- "ChatCompletionPredictionContentParamContent",
550
- "ChatCompletionStreamOptionsParam",
551
- "ChatCompletionSystemMessageParam",
552
- "ChatCompletionSystemMessageParamContent",
553
- "ChatCompletionToolMessageParam",
554
- "ChatCompletionToolMessageParamContent",
555
- "ChatCompletionUserMessageParam",
556
- "ChatCompletionUserMessageParamContent",
557
- "ChatCompletionUserMessageParamContentItem",
433
+ "ChatCompletionMessageFunctionToolCall",
558
434
  "ChildToolRule",
559
435
  "ChildToolRuleSchema",
560
436
  "ClientSideAccessTokensCreateRequestPolicyItem",
@@ -569,30 +445,6 @@ __all__ = [
569
445
  "ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItem",
570
446
  "ClientSideAccessTokensListClientSideAccessTokensResponseTokensItemPolicyDataItemAccessItem",
571
447
  "CodeInput",
572
- "CompletionCreateParamsNonStreaming",
573
- "CompletionCreateParamsNonStreamingFunctionCall",
574
- "CompletionCreateParamsNonStreamingMessagesItem",
575
- "CompletionCreateParamsNonStreamingModalitiesItem",
576
- "CompletionCreateParamsNonStreamingModel",
577
- "CompletionCreateParamsNonStreamingReasoningEffort",
578
- "CompletionCreateParamsNonStreamingResponseFormat",
579
- "CompletionCreateParamsNonStreamingServiceTier",
580
- "CompletionCreateParamsNonStreamingStop",
581
- "CompletionCreateParamsNonStreamingToolChoice",
582
- "CompletionCreateParamsNonStreamingToolsItem",
583
- "CompletionCreateParamsNonStreamingVerbosity",
584
- "CompletionCreateParamsStreaming",
585
- "CompletionCreateParamsStreamingFunctionCall",
586
- "CompletionCreateParamsStreamingMessagesItem",
587
- "CompletionCreateParamsStreamingModalitiesItem",
588
- "CompletionCreateParamsStreamingModel",
589
- "CompletionCreateParamsStreamingReasoningEffort",
590
- "CompletionCreateParamsStreamingResponseFormat",
591
- "CompletionCreateParamsStreamingServiceTier",
592
- "CompletionCreateParamsStreamingStop",
593
- "CompletionCreateParamsStreamingToolChoice",
594
- "CompletionCreateParamsStreamingToolsItem",
595
- "CompletionCreateParamsStreamingVerbosity",
596
448
  "ComponentsSchemasTextContent",
597
449
  "ConditionalToolRule",
598
450
  "ConditionalToolRuleSchema",
@@ -606,10 +458,6 @@ __all__ = [
606
458
  "CreateAgentRequestResponseFormat",
607
459
  "CreateAgentRequestToolRulesItem",
608
460
  "CreateBlock",
609
- "CustomFormatGrammar",
610
- "CustomFormatGrammarGrammar",
611
- "CustomFormatGrammarGrammarSyntax",
612
- "CustomFormatText",
613
461
  "DeleteDeploymentResponse",
614
462
  "DeleteMcpServerResponseItem",
615
463
  "DeploymentEntity",
@@ -620,20 +468,16 @@ __all__ = [
620
468
  "EmbeddingConfig",
621
469
  "EmbeddingConfigEmbeddingEndpointType",
622
470
  "FeedbackType",
623
- "File",
624
471
  "FileAgentSchema",
625
472
  "FileBlock",
626
- "FileFile",
627
473
  "FileMetadata",
628
474
  "FileProcessingStatus",
629
475
  "FileSchema",
630
476
  "FileStats",
631
477
  "Folder",
632
478
  "FoldersListRequestOrder",
633
- "FunctionCall",
634
- "FunctionDefinitionInput",
635
- "FunctionDefinitionOutput",
636
- "FunctionOutput",
479
+ "Function",
480
+ "FunctionDefinition",
637
481
  "FunctionTool",
638
482
  "GenerateToolInput",
639
483
  "GenerateToolOutput",
@@ -655,12 +499,8 @@ __all__ = [
655
499
  "IdentityType",
656
500
  "ImageContent",
657
501
  "ImageContentSource",
658
- "ImageUrl",
659
- "ImageUrlDetail",
660
502
  "ImportedAgentsResponse",
661
503
  "InitToolRule",
662
- "InputAudio",
663
- "InputAudioFormat",
664
504
  "InternalServerError",
665
505
  "InternalServerErrorBody",
666
506
  "InternalTemplateAgentCreate",
@@ -673,7 +513,6 @@ __all__ = [
673
513
  "JobStatus",
674
514
  "JobType",
675
515
  "JsonObjectResponseFormat",
676
- "JsonSchema",
677
516
  "JsonSchemaResponseFormat",
678
517
  "Letta",
679
518
  "LettaBatchMessages",
@@ -737,14 +576,6 @@ __all__ = [
737
576
  "NotFoundErrorBody",
738
577
  "NpmRequirement",
739
578
  "OmittedReasoningContent",
740
- "OpenaiTypesChatChatCompletionCustomToolParamCustom",
741
- "OpenaiTypesChatChatCompletionCustomToolParamCustomFormat",
742
- "OpenaiTypesChatChatCompletionMessageCustomToolCallParamCustom",
743
- "OpenaiTypesChatChatCompletionMessageFunctionToolCallFunction",
744
- "OpenaiTypesChatChatCompletionMessageFunctionToolCallParamFunction",
745
- "OpenaiTypesChatChatCompletionNamedToolChoiceCustomParamCustom",
746
- "OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction",
747
- "OpenaiTypesChatCompletionCreateParamsFunction",
748
579
  "Organization",
749
580
  "OrganizationCreate",
750
581
  "OrganizationSourcesStats",
@@ -770,9 +601,6 @@ __all__ = [
770
601
  "RedactedReasoningContent",
771
602
  "RequiredBeforeExitToolRule",
772
603
  "RequiresApprovalToolRule",
773
- "ResponseFormatJsonObject",
774
- "ResponseFormatJsonSchema",
775
- "ResponseFormatText",
776
604
  "RoundRobinManager",
777
605
  "RoundRobinManagerUpdate",
778
606
  "Run",
@@ -897,10 +725,6 @@ __all__ = [
897
725
  "VectorDbProvider",
898
726
  "VoiceSleeptimeManager",
899
727
  "VoiceSleeptimeManagerUpdate",
900
- "WebSearchOptions",
901
- "WebSearchOptionsSearchContextSize",
902
- "WebSearchOptionsUserLocation",
903
- "WebSearchOptionsUserLocationApproximate",
904
728
  "__version__",
905
729
  "agents",
906
730
  "archives",
@@ -24,10 +24,10 @@ class BaseClientWrapper:
24
24
 
25
25
  def get_headers(self) -> typing.Dict[str, str]:
26
26
  headers: typing.Dict[str, str] = {
27
- "User-Agent": "letta-client/0.1.320",
27
+ "User-Agent": "letta-client/0.1.322",
28
28
  "X-Fern-Language": "Python",
29
29
  "X-Fern-SDK-Name": "letta-client",
30
- "X-Fern-SDK-Version": "0.1.320",
30
+ "X-Fern-SDK-Version": "0.1.322",
31
31
  **(self.get_custom_headers() or {}),
32
32
  }
33
33
  if self._project is not None:
@@ -39,6 +39,7 @@ class RunsClient:
39
39
  def list(
40
40
  self,
41
41
  *,
42
+ agent_id: typing.Optional[str] = None,
42
43
  agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
43
44
  background: typing.Optional[bool] = None,
44
45
  stop_reason: typing.Optional[StopReasonType] = None,
@@ -54,9 +55,12 @@ class RunsClient:
54
55
 
55
56
  Parameters
56
57
  ----------
57
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
58
+ agent_id : typing.Optional[str]
58
59
  The unique identifier of the agent associated with the run.
59
60
 
61
+ agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
62
+ (DEPRECATED) The unique identifiers of the agents associated with the run.
63
+
60
64
  background : typing.Optional[bool]
61
65
  If True, filters for runs that were created in background mode.
62
66
 
@@ -97,6 +101,7 @@ class RunsClient:
97
101
  client.runs.list()
98
102
  """
99
103
  _response = self._raw_client.list(
104
+ agent_id=agent_id,
100
105
  agent_ids=agent_ids,
101
106
  background=background,
102
107
  stop_reason=stop_reason,
@@ -112,7 +117,7 @@ class RunsClient:
112
117
  def list_active(
113
118
  self,
114
119
  *,
115
- agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
120
+ agent_id: typing.Optional[str] = None,
116
121
  background: typing.Optional[bool] = None,
117
122
  request_options: typing.Optional[RequestOptions] = None,
118
123
  ) -> typing.List[Run]:
@@ -121,7 +126,7 @@ class RunsClient:
121
126
 
122
127
  Parameters
123
128
  ----------
124
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
129
+ agent_id : typing.Optional[str]
125
130
  The unique identifier of the agent associated with the run.
126
131
 
127
132
  background : typing.Optional[bool]
@@ -146,7 +151,7 @@ class RunsClient:
146
151
  client.runs.list_active()
147
152
  """
148
153
  _response = self._raw_client.list_active(
149
- agent_ids=agent_ids, background=background, request_options=request_options
154
+ agent_id=agent_id, background=background, request_options=request_options
150
155
  )
151
156
  return _response.data
152
157
 
@@ -295,6 +300,7 @@ class AsyncRunsClient:
295
300
  async def list(
296
301
  self,
297
302
  *,
303
+ agent_id: typing.Optional[str] = None,
298
304
  agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
299
305
  background: typing.Optional[bool] = None,
300
306
  stop_reason: typing.Optional[StopReasonType] = None,
@@ -310,9 +316,12 @@ class AsyncRunsClient:
310
316
 
311
317
  Parameters
312
318
  ----------
313
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
319
+ agent_id : typing.Optional[str]
314
320
  The unique identifier of the agent associated with the run.
315
321
 
322
+ agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
323
+ (DEPRECATED) The unique identifiers of the agents associated with the run.
324
+
316
325
  background : typing.Optional[bool]
317
326
  If True, filters for runs that were created in background mode.
318
327
 
@@ -361,6 +370,7 @@ class AsyncRunsClient:
361
370
  asyncio.run(main())
362
371
  """
363
372
  _response = await self._raw_client.list(
373
+ agent_id=agent_id,
364
374
  agent_ids=agent_ids,
365
375
  background=background,
366
376
  stop_reason=stop_reason,
@@ -376,7 +386,7 @@ class AsyncRunsClient:
376
386
  async def list_active(
377
387
  self,
378
388
  *,
379
- agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
389
+ agent_id: typing.Optional[str] = None,
380
390
  background: typing.Optional[bool] = None,
381
391
  request_options: typing.Optional[RequestOptions] = None,
382
392
  ) -> typing.List[Run]:
@@ -385,7 +395,7 @@ class AsyncRunsClient:
385
395
 
386
396
  Parameters
387
397
  ----------
388
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
398
+ agent_id : typing.Optional[str]
389
399
  The unique identifier of the agent associated with the run.
390
400
 
391
401
  background : typing.Optional[bool]
@@ -418,7 +428,7 @@ class AsyncRunsClient:
418
428
  asyncio.run(main())
419
429
  """
420
430
  _response = await self._raw_client.list_active(
421
- agent_ids=agent_ids, background=background, request_options=request_options
431
+ agent_id=agent_id, background=background, request_options=request_options
422
432
  )
423
433
  return _response.data
424
434
 
@@ -29,6 +29,7 @@ class RawRunsClient:
29
29
  def list(
30
30
  self,
31
31
  *,
32
+ agent_id: typing.Optional[str] = None,
32
33
  agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
33
34
  background: typing.Optional[bool] = None,
34
35
  stop_reason: typing.Optional[StopReasonType] = None,
@@ -44,9 +45,12 @@ class RawRunsClient:
44
45
 
45
46
  Parameters
46
47
  ----------
47
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
48
+ agent_id : typing.Optional[str]
48
49
  The unique identifier of the agent associated with the run.
49
50
 
51
+ agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
52
+ (DEPRECATED) The unique identifiers of the agents associated with the run.
53
+
50
54
  background : typing.Optional[bool]
51
55
  If True, filters for runs that were created in background mode.
52
56
 
@@ -80,6 +84,7 @@ class RawRunsClient:
80
84
  "v1/runs/",
81
85
  method="GET",
82
86
  params={
87
+ "agent_id": agent_id,
83
88
  "agent_ids": agent_ids,
84
89
  "background": background,
85
90
  "stop_reason": stop_reason,
@@ -120,7 +125,7 @@ class RawRunsClient:
120
125
  def list_active(
121
126
  self,
122
127
  *,
123
- agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
128
+ agent_id: typing.Optional[str] = None,
124
129
  background: typing.Optional[bool] = None,
125
130
  request_options: typing.Optional[RequestOptions] = None,
126
131
  ) -> HttpResponse[typing.List[Run]]:
@@ -129,7 +134,7 @@ class RawRunsClient:
129
134
 
130
135
  Parameters
131
136
  ----------
132
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
137
+ agent_id : typing.Optional[str]
133
138
  The unique identifier of the agent associated with the run.
134
139
 
135
140
  background : typing.Optional[bool]
@@ -147,7 +152,7 @@ class RawRunsClient:
147
152
  "v1/runs/active",
148
153
  method="GET",
149
154
  params={
150
- "agent_ids": agent_ids,
155
+ "agent_id": agent_id,
151
156
  "background": background,
152
157
  },
153
158
  request_options=request_options,
@@ -375,6 +380,7 @@ class AsyncRawRunsClient:
375
380
  async def list(
376
381
  self,
377
382
  *,
383
+ agent_id: typing.Optional[str] = None,
378
384
  agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
379
385
  background: typing.Optional[bool] = None,
380
386
  stop_reason: typing.Optional[StopReasonType] = None,
@@ -390,9 +396,12 @@ class AsyncRawRunsClient:
390
396
 
391
397
  Parameters
392
398
  ----------
393
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
399
+ agent_id : typing.Optional[str]
394
400
  The unique identifier of the agent associated with the run.
395
401
 
402
+ agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
403
+ (DEPRECATED) The unique identifiers of the agents associated with the run.
404
+
396
405
  background : typing.Optional[bool]
397
406
  If True, filters for runs that were created in background mode.
398
407
 
@@ -426,6 +435,7 @@ class AsyncRawRunsClient:
426
435
  "v1/runs/",
427
436
  method="GET",
428
437
  params={
438
+ "agent_id": agent_id,
429
439
  "agent_ids": agent_ids,
430
440
  "background": background,
431
441
  "stop_reason": stop_reason,
@@ -466,7 +476,7 @@ class AsyncRawRunsClient:
466
476
  async def list_active(
467
477
  self,
468
478
  *,
469
- agent_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
479
+ agent_id: typing.Optional[str] = None,
470
480
  background: typing.Optional[bool] = None,
471
481
  request_options: typing.Optional[RequestOptions] = None,
472
482
  ) -> AsyncHttpResponse[typing.List[Run]]:
@@ -475,7 +485,7 @@ class AsyncRawRunsClient:
475
485
 
476
486
  Parameters
477
487
  ----------
478
- agent_ids : typing.Optional[typing.Union[str, typing.Sequence[str]]]
488
+ agent_id : typing.Optional[str]
479
489
  The unique identifier of the agent associated with the run.
480
490
 
481
491
  background : typing.Optional[bool]
@@ -493,7 +503,7 @@ class AsyncRawRunsClient:
493
503
  "v1/runs/active",
494
504
  method="GET",
495
505
  params={
496
- "agent_ids": agent_ids,
506
+ "agent_id": agent_id,
497
507
  "background": background,
498
508
  },
499
509
  request_options=request_options,