letta-client 1.0.0a6__py3-none-any.whl → 1.0.0a7__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 (467) hide show
  1. {letta_sdk → letta_client}/__init__.py +8 -8
  2. {letta_sdk → letta_client}/_base_client.py +1 -1
  3. {letta_sdk → letta_client}/_client.py +124 -171
  4. {letta_sdk → letta_client}/_exceptions.py +2 -2
  5. {letta_sdk → letta_client}/_resource.py +5 -5
  6. {letta_sdk → letta_client}/_response.py +8 -6
  7. {letta_sdk → letta_client}/_streaming.py +3 -3
  8. {letta_sdk → letta_client}/_types.py +1 -1
  9. {letta_sdk → letta_client}/_utils/_logs.py +3 -3
  10. {letta_sdk → letta_client}/_utils/_resources_proxy.py +4 -4
  11. {letta_sdk → letta_client}/_version.py +2 -2
  12. {letta_sdk → letta_client}/resources/__init__.py +14 -154
  13. {letta_sdk → letta_client}/resources/agents/__init__.py +28 -42
  14. {letta_sdk → letta_client}/resources/agents/agents.py +216 -734
  15. {letta_sdk/resources/agents/core_memory → letta_client/resources/agents}/blocks.py +103 -12
  16. {letta_sdk → letta_client}/resources/agents/files.py +71 -8
  17. {letta_sdk → letta_client}/resources/agents/folders.py +90 -3
  18. letta_client/resources/agents/groups.py +242 -0
  19. {letta_sdk → letta_client}/resources/agents/messages.py +252 -480
  20. {letta_sdk → letta_client}/resources/agents/tools.py +135 -22
  21. letta_sdk/resources/jobs.py → letta_client/resources/archives.py +268 -280
  22. {letta_sdk/resources/messages → letta_client/resources/batches}/batches.py +35 -152
  23. letta_client/resources/batches/messages.py +238 -0
  24. {letta_sdk/resources/agents/core_memory → letta_client/resources/blocks}/__init__.py +14 -14
  25. letta_client/resources/blocks/agents.py +284 -0
  26. {letta_sdk/resources → letta_client/resources/blocks}/blocks.py +54 -167
  27. letta_client/resources/folders/__init__.py +47 -0
  28. letta_client/resources/folders/agents.py +234 -0
  29. letta_client/resources/folders/files.py +469 -0
  30. letta_sdk/resources/providers.py → letta_client/resources/folders/folders.py +292 -309
  31. {letta_sdk → letta_client}/resources/groups/groups.py +12 -78
  32. {letta_sdk → letta_client}/resources/groups/messages.py +165 -27
  33. letta_client/resources/identities/__init__.py +61 -0
  34. letta_client/resources/identities/agents.py +266 -0
  35. letta_client/resources/identities/blocks.py +234 -0
  36. {letta_sdk/resources → letta_client/resources/identities}/identities.py +267 -525
  37. letta_client/resources/identities/properties.py +174 -0
  38. letta_client/resources/models/__init__.py +33 -0
  39. {letta_sdk/resources → letta_client/resources/models}/embeddings.py +26 -49
  40. {letta_sdk/resources → letta_client/resources/models}/models.py +42 -117
  41. letta_client/resources/runs/__init__.py +61 -0
  42. letta_sdk/resources/archives.py → letta_client/resources/runs/messages.py +182 -153
  43. letta_client/resources/runs/runs.py +460 -0
  44. letta_sdk/resources/projects.py → letta_client/resources/runs/steps.py +93 -56
  45. letta_sdk/resources/voice_beta/chat.py → letta_client/resources/runs/usage.py +50 -57
  46. letta_client/resources/steps/__init__.py +75 -0
  47. letta_client/resources/steps/feedback.py +198 -0
  48. letta_client/resources/steps/messages.py +234 -0
  49. letta_client/resources/steps/metrics.py +167 -0
  50. letta_client/resources/steps/steps.py +511 -0
  51. letta_sdk/resources/telemetry.py → letta_client/resources/steps/trace.py +45 -56
  52. letta_client/resources/templates/__init__.py +33 -0
  53. letta_client/resources/templates/agents.py +236 -0
  54. letta_client/resources/templates/templates.py +102 -0
  55. {letta_sdk/resources/tools → letta_client/resources}/tools.py +239 -425
  56. letta_client/types/__init__.py +120 -0
  57. {letta_sdk → letta_client}/types/agent_create_params.py +5 -2
  58. {letta_sdk → letta_client}/types/agent_environment_variable.py +3 -0
  59. letta_client/types/agent_export_file_params.py +18 -0
  60. letta_sdk/types/agent_export_response.py → letta_client/types/agent_export_file_response.py +2 -2
  61. letta_sdk/types/agent_import_params.py → letta_client/types/agent_import_file_params.py +5 -2
  62. letta_sdk/types/agent_import_response.py → letta_client/types/agent_import_file_response.py +2 -2
  63. {letta_sdk → letta_client}/types/agent_list_params.py +19 -2
  64. {letta_sdk → letta_client}/types/agent_retrieve_params.py +20 -3
  65. {letta_sdk → letta_client}/types/agent_state.py +131 -3
  66. {letta_sdk → letta_client}/types/agent_type.py +1 -0
  67. {letta_sdk → letta_client}/types/agent_update_params.py +12 -0
  68. {letta_sdk → letta_client}/types/agents/__init__.py +12 -19
  69. letta_client/types/agents/approval_create_param.py +44 -0
  70. {letta_sdk → letta_client}/types/agents/approval_request_message.py +10 -2
  71. letta_client/types/agents/approval_response_message.py +63 -0
  72. {letta_sdk/types/agents/core_memory → letta_client/types/agents}/block.py +1 -1
  73. letta_sdk/types/identity_list_blocks_params.py → letta_client/types/agents/block_list_params.py +2 -2
  74. {letta_sdk/types/agents/core_memory → letta_client/types/agents}/block_update_params.py +1 -0
  75. letta_client/types/agents/file_list_params.py +40 -0
  76. letta_client/types/agents/folder_list_params.py +34 -0
  77. letta_sdk/types/source.py → letta_client/types/agents/folder_list_response.py +10 -6
  78. letta_client/types/agents/group_list_params.py +37 -0
  79. letta_client/types/agents/group_list_response.py +10 -0
  80. {letta_sdk → letta_client}/types/agents/letta_assistant_message_content_union.py +3 -0
  81. {letta_sdk → letta_client}/types/agents/letta_assistant_message_content_union_param.py +4 -0
  82. {letta_sdk → letta_client}/types/agents/letta_response.py +0 -4
  83. {letta_sdk → letta_client}/types/agents/message.py +93 -2
  84. {letta_sdk → letta_client}/types/agents/message_list_params.py +20 -5
  85. letta_sdk/types/agent_reset_messages_params.py → letta_client/types/agents/message_reset_params.py +2 -2
  86. {letta_sdk → letta_client}/types/agents/message_send_async_params.py +12 -3
  87. {letta_sdk → letta_client}/types/agents/message_send_params.py +12 -3
  88. letta_sdk/types/agents/message_send_stream_params.py → letta_client/types/agents/message_stream_params.py +14 -5
  89. {letta_sdk → letta_client}/types/agents/message_update_params.py +4 -0
  90. {letta_sdk → letta_client}/types/agents/omitted_reasoning_content.py +3 -0
  91. {letta_sdk → letta_client}/types/agents/omitted_reasoning_content_param.py +4 -0
  92. {letta_sdk → letta_client}/types/agents/run.py +16 -19
  93. {letta_sdk → letta_client}/types/agents/text_content.py +3 -0
  94. {letta_sdk → letta_client}/types/agents/text_content_param.py +4 -0
  95. {letta_sdk → letta_client}/types/agents/tool_call_content.py +3 -0
  96. {letta_sdk → letta_client}/types/agents/tool_call_content_param.py +4 -1
  97. {letta_sdk → letta_client}/types/agents/tool_call_message.py +6 -2
  98. letta_client/types/agents/tool_list_params.py +34 -0
  99. {letta_sdk → letta_client}/types/agents/tool_return.py +7 -3
  100. letta_client/types/agents/tool_return_param.py +25 -0
  101. letta_client/types/agents/tool_update_approval_params.py +21 -0
  102. {letta_sdk → letta_client}/types/archive.py +4 -0
  103. letta_client/types/archive_create_params.py +19 -0
  104. letta_sdk/types/archive_retrieve_params.py → letta_client/types/archive_list_params.py +2 -2
  105. letta_sdk/types/archive_retrieve_response.py → letta_client/types/archive_list_response.py +2 -2
  106. {letta_sdk → letta_client}/types/archive_update_params.py +3 -3
  107. {letta_sdk/types/messages → letta_client/types}/batch_create_params.py +15 -6
  108. letta_sdk/types/job.py → letta_client/types/batch_job.py +8 -3
  109. letta_client/types/batches/__init__.py +6 -0
  110. letta_sdk/types/messages/batch_list_messages_params.py → letta_client/types/batches/message_list_params.py +2 -2
  111. letta_sdk/types/messages/batch_list_messages_response.py → letta_client/types/batches/message_list_response.py +2 -2
  112. {letta_sdk → letta_client}/types/block_list_response.py +1 -1
  113. letta_client/types/blocks/__init__.py +6 -0
  114. letta_sdk/types/block_list_agents_params.py → letta_client/types/blocks/agent_list_params.py +22 -5
  115. letta_sdk/types/agent_list_groups_response.py → letta_client/types/blocks/agent_list_response.py +3 -3
  116. letta_client/types/child_tool_rule.py +40 -0
  117. letta_client/types/child_tool_rule_param.py +42 -0
  118. letta_client/types/folders/__init__.py +10 -0
  119. letta_sdk/types/folder_list_agents_params.py → letta_client/types/folders/agent_list_params.py +2 -2
  120. letta_sdk/types/run_list_active_response.py → letta_client/types/folders/agent_list_response.py +2 -4
  121. letta_sdk/types/folder_list_files_params.py → letta_client/types/folders/file_list_params.py +2 -2
  122. letta_client/types/folders/file_list_response.py +68 -0
  123. letta_sdk/types/source_upload_file_params.py → letta_client/types/folders/file_upload_params.py +5 -6
  124. letta_sdk/types/file_metadata.py → letta_client/types/folders/file_upload_response.py +5 -5
  125. {letta_sdk → letta_client}/types/groups/__init__.py +1 -1
  126. {letta_sdk → letta_client}/types/groups/message_send_params.py +12 -3
  127. letta_sdk/types/groups/message_send_stream_params.py → letta_client/types/groups/message_stream_params.py +14 -5
  128. {letta_sdk → letta_client}/types/groups/message_update_params.py +4 -0
  129. letta_sdk/types/health_check_response.py → letta_client/types/health_response.py +2 -2
  130. letta_client/types/identities/__init__.py +9 -0
  131. letta_sdk/types/identity_list_agents_params.py → letta_client/types/identities/agent_list_params.py +19 -3
  132. letta_client/types/identities/agent_list_response.py +10 -0
  133. letta_client/types/identities/block_list_params.py +34 -0
  134. letta_sdk/types/agents/folder_list_response.py → letta_client/types/identities/block_list_response.py +3 -3
  135. letta_sdk/types/identity_upsert_properties_params.py → letta_client/types/identities/property_upsert_params.py +3 -3
  136. letta_sdk/types/identity_modify_params.py → letta_client/types/identity_update_params.py +2 -2
  137. {letta_sdk → letta_client}/types/init_tool_rule.py +10 -1
  138. {letta_sdk → letta_client}/types/init_tool_rule_param.py +10 -1
  139. {letta_sdk → letta_client}/types/llm_config.py +6 -0
  140. {letta_sdk → letta_client}/types/llm_config_param.py +6 -0
  141. {letta_sdk/types/voice_beta → letta_client/types/models}/__init__.py +1 -1
  142. letta_sdk/types/agents/archival_memory_create_response.py → letta_client/types/models/embedding_list_response.py +3 -3
  143. {letta_sdk → letta_client}/types/run_list_params.py +29 -5
  144. letta_client/types/runs/__init__.py +10 -0
  145. letta_sdk/types/run_list_messages_params.py → letta_client/types/runs/message_list_params.py +5 -2
  146. letta_client/types/runs/message_list_response.py +10 -0
  147. letta_sdk/types/run_retrieve_stream_params.py → letta_client/types/runs/message_stream_params.py +2 -2
  148. letta_sdk/types/run_list_steps_params.py → letta_client/types/runs/step_list_params.py +9 -6
  149. letta_sdk/types/job_list_response.py → letta_client/types/runs/step_list_response.py +3 -3
  150. letta_sdk/types/run_retrieve_usage_response.py → letta_client/types/runs/usage_retrieve_response.py +3 -3
  151. {letta_sdk → letta_client}/types/step.py +6 -6
  152. letta_client/types/steps/__init__.py +8 -0
  153. letta_sdk/types/step_update_feedback_params.py → letta_client/types/steps/feedback_create_params.py +3 -3
  154. letta_sdk/types/step_list_messages_params.py → letta_client/types/steps/message_list_params.py +2 -2
  155. letta_client/types/steps/message_list_response.py +34 -0
  156. letta_sdk/types/step_retrieve_metrics_response.py → letta_client/types/steps/metric_retrieve_response.py +6 -6
  157. {letta_sdk/types/tools → letta_client/types/templates}/__init__.py +2 -0
  158. letta_sdk/types/template_create_agents_params.py → letta_client/types/templates/agent_create_params.py +4 -4
  159. {letta_sdk → letta_client}/types/tool.py +6 -0
  160. {letta_sdk → letta_client}/types/tool_create_params.py +6 -0
  161. {letta_sdk → letta_client}/types/tool_return_message.py +3 -0
  162. letta_sdk/types/tool_modify_params.py → letta_client/types/tool_update_params.py +8 -2
  163. letta_sdk/types/tool_upsert_base_response.py → letta_client/types/tool_upsert_base_tools_response.py +2 -2
  164. {letta_sdk → letta_client}/types/tool_upsert_params.py +6 -0
  165. {letta_client-1.0.0a6.dist-info → letta_client-1.0.0a7.dist-info}/METADATA +110 -70
  166. letta_client-1.0.0a7.dist-info/RECORD +307 -0
  167. {letta_client-1.0.0a6.dist-info → letta_client-1.0.0a7.dist-info}/licenses/LICENSE +1 -1
  168. letta_client-1.0.0a6.dist-info/RECORD +0 -420
  169. letta_sdk/resources/_internal_templates/__init__.py +0 -33
  170. letta_sdk/resources/_internal_templates/_internal_templates.py +0 -961
  171. letta_sdk/resources/_internal_templates/deployment.py +0 -268
  172. letta_sdk/resources/agents/archival_memory.py +0 -581
  173. letta_sdk/resources/agents/core_memory/core_memory.py +0 -278
  174. letta_sdk/resources/agents/sources.py +0 -332
  175. letta_sdk/resources/client_side_access_tokens.py +0 -402
  176. letta_sdk/resources/folders.py +0 -1562
  177. letta_sdk/resources/health.py +0 -135
  178. letta_sdk/resources/messages/messages.py +0 -102
  179. letta_sdk/resources/runs.py +0 -1016
  180. letta_sdk/resources/sources/__init__.py +0 -33
  181. letta_sdk/resources/sources/files.py +0 -341
  182. letta_sdk/resources/sources/sources.py +0 -1371
  183. letta_sdk/resources/steps.py +0 -784
  184. letta_sdk/resources/templates.py +0 -1310
  185. letta_sdk/resources/tools/__init__.py +0 -47
  186. letta_sdk/resources/tools/composio/__init__.py +0 -33
  187. letta_sdk/resources/tools/composio/apps.py +0 -214
  188. letta_sdk/resources/tools/composio/composio.py +0 -201
  189. letta_sdk/resources/tools/mcp/__init__.py +0 -47
  190. letta_sdk/resources/tools/mcp/mcp.py +0 -134
  191. letta_sdk/resources/tools/mcp/oauth.py +0 -214
  192. letta_sdk/resources/tools/mcp/servers/__init__.py +0 -33
  193. letta_sdk/resources/tools/mcp/servers/servers.py +0 -1785
  194. letta_sdk/resources/tools/mcp/servers/tools.py +0 -263
  195. letta_sdk/resources/voice_beta/__init__.py +0 -33
  196. letta_sdk/resources/voice_beta/voice_beta.py +0 -102
  197. letta_sdk/types/__init__.py +0 -226
  198. letta_sdk/types/_internal_templates/__init__.py +0 -7
  199. letta_sdk/types/_internal_templates/deployment_delete_response.py +0 -17
  200. letta_sdk/types/_internal_templates/deployment_list_entities_params.py +0 -15
  201. letta_sdk/types/_internal_templates/deployment_list_entities_response.py +0 -31
  202. letta_sdk/types/agent_export_params.py +0 -17
  203. letta_sdk/types/agent_list_groups_params.py +0 -13
  204. letta_sdk/types/agent_migrate_params.py +0 -19
  205. letta_sdk/types/agent_migrate_response.py +0 -11
  206. letta_sdk/types/agent_retrieve_context_response.py +0 -110
  207. letta_sdk/types/agent_search_params.py +0 -78
  208. letta_sdk/types/agent_search_response.py +0 -16
  209. letta_sdk/types/agent_summarize_params.py +0 -12
  210. letta_sdk/types/agents/approval_create_param.py +0 -22
  211. letta_sdk/types/agents/approval_response_message.py +0 -41
  212. letta_sdk/types/agents/archival_memory_create_params.py +0 -23
  213. letta_sdk/types/agents/archival_memory_list_params.py +0 -28
  214. letta_sdk/types/agents/archival_memory_list_response.py +0 -10
  215. letta_sdk/types/agents/archival_memory_search_params.py +0 -35
  216. letta_sdk/types/agents/archival_memory_search_response.py +0 -26
  217. letta_sdk/types/agents/core_memory/__init__.py +0 -7
  218. letta_sdk/types/agents/core_memory_retrieve_variables_response.py +0 -11
  219. letta_sdk/types/agents/file_list_params.py +0 -19
  220. letta_sdk/types/agents/letta_request_param.py +0 -45
  221. letta_sdk/types/agents/letta_streaming_request_param.py +0 -60
  222. letta_sdk/types/agents/memory.py +0 -92
  223. letta_sdk/types/agents/message_preview_raw_payload_params.py +0 -103
  224. letta_sdk/types/agents/message_preview_raw_payload_response.py +0 -8
  225. letta_sdk/types/agents/message_search_params.py +0 -38
  226. letta_sdk/types/agents/message_search_response.py +0 -29
  227. letta_sdk/types/agents/source_list_response.py +0 -10
  228. letta_sdk/types/agents/tool_modify_approval_params.py +0 -13
  229. letta_sdk/types/block_list_agents_response.py +0 -10
  230. letta_sdk/types/child_tool_rule.py +0 -21
  231. letta_sdk/types/child_tool_rule_param.py +0 -23
  232. letta_sdk/types/client_side_access_token_create_params.py +0 -32
  233. letta_sdk/types/client_side_access_token_create_response.py +0 -34
  234. letta_sdk/types/client_side_access_token_delete_params.py +0 -11
  235. letta_sdk/types/client_side_access_token_list_params.py +0 -23
  236. letta_sdk/types/client_side_access_token_list_response.py +0 -40
  237. letta_sdk/types/duplicate_file_handling.py +0 -7
  238. letta_sdk/types/embedding_get_total_storage_size_response.py +0 -7
  239. letta_sdk/types/file_processing_status.py +0 -7
  240. letta_sdk/types/folder_get_by_name_response.py +0 -7
  241. letta_sdk/types/folder_list_agents_response.py +0 -8
  242. letta_sdk/types/folder_list_files_response.py +0 -10
  243. letta_sdk/types/folder_list_passages_params.py +0 -34
  244. letta_sdk/types/folder_list_passages_response.py +0 -10
  245. letta_sdk/types/folder_retrieve_metadata_params.py +0 -11
  246. letta_sdk/types/folder_upload_file_params.py +0 -21
  247. letta_sdk/types/identity_list_agents_response.py +0 -10
  248. letta_sdk/types/identity_list_blocks_response.py +0 -10
  249. letta_sdk/types/internal_template_create_agent_params.py +0 -217
  250. letta_sdk/types/internal_template_create_block_params.py +0 -54
  251. letta_sdk/types/internal_template_create_group_params.py +0 -49
  252. letta_sdk/types/job_list_active_params.py +0 -28
  253. letta_sdk/types/job_list_active_response.py +0 -10
  254. letta_sdk/types/job_list_params.py +0 -31
  255. letta_sdk/types/messages/__init__.py +0 -10
  256. letta_sdk/types/messages/batch_job.py +0 -60
  257. letta_sdk/types/model_list_embedding_response.py +0 -10
  258. letta_sdk/types/organization_sources_stats.py +0 -49
  259. letta_sdk/types/passage.py +0 -56
  260. letta_sdk/types/project_list_params.py +0 -16
  261. letta_sdk/types/project_list_response.py +0 -23
  262. letta_sdk/types/provider.py +0 -42
  263. letta_sdk/types/provider_check_params.py +0 -30
  264. letta_sdk/types/provider_create_params.py +0 -33
  265. letta_sdk/types/provider_list_params.py +0 -42
  266. letta_sdk/types/provider_list_response.py +0 -10
  267. letta_sdk/types/provider_update_params.py +0 -25
  268. letta_sdk/types/run_list_active_params.py +0 -18
  269. letta_sdk/types/run_list_messages_response.py +0 -10
  270. letta_sdk/types/run_list_steps_response.py +0 -10
  271. letta_sdk/types/source_count_response.py +0 -7
  272. letta_sdk/types/source_create_params.py +0 -33
  273. letta_sdk/types/source_get_agents_response.py +0 -8
  274. letta_sdk/types/source_get_by_name_response.py +0 -7
  275. letta_sdk/types/source_get_metadata_params.py +0 -11
  276. letta_sdk/types/source_list_passages_params.py +0 -19
  277. letta_sdk/types/source_list_passages_response.py +0 -10
  278. letta_sdk/types/source_list_response.py +0 -10
  279. letta_sdk/types/source_update_params.py +0 -27
  280. letta_sdk/types/sources/__init__.py +0 -7
  281. letta_sdk/types/sources/file_list_params.py +0 -26
  282. letta_sdk/types/sources/file_list_response.py +0 -10
  283. letta_sdk/types/sources/file_retrieve_params.py +0 -14
  284. letta_sdk/types/step_list_messages_response.py +0 -34
  285. letta_sdk/types/template_create_agents_response.py +0 -12
  286. letta_sdk/types/template_create_params.py +0 -40
  287. letta_sdk/types/template_create_response.py +0 -29
  288. letta_sdk/types/template_delete_response.py +0 -9
  289. letta_sdk/types/template_fork_params.py +0 -17
  290. letta_sdk/types/template_fork_response.py +0 -29
  291. letta_sdk/types/template_get_snapshot_response.py +0 -258
  292. letta_sdk/types/template_list_params.py +0 -34
  293. letta_sdk/types/template_list_response.py +0 -35
  294. letta_sdk/types/template_list_versions_params.py +0 -16
  295. letta_sdk/types/template_list_versions_response.py +0 -29
  296. letta_sdk/types/template_rename_params.py +0 -14
  297. letta_sdk/types/template_rename_response.py +0 -9
  298. letta_sdk/types/template_save_version_params.py +0 -32
  299. letta_sdk/types/template_save_version_response.py +0 -29
  300. letta_sdk/types/template_update_description_params.py +0 -14
  301. letta_sdk/types/template_update_description_response.py +0 -9
  302. letta_sdk/types/tool_run_params.py +0 -43
  303. letta_sdk/types/tools/composio/__init__.py +0 -6
  304. letta_sdk/types/tools/composio/app_list_actions_response.py +0 -70
  305. letta_sdk/types/tools/composio/app_list_response.py +0 -103
  306. letta_sdk/types/tools/mcp/__init__.py +0 -21
  307. letta_sdk/types/tools/mcp/mcp_server_type.py +0 -7
  308. letta_sdk/types/tools/mcp/oauth_callback_params.py +0 -22
  309. letta_sdk/types/tools/mcp/server_add_params.py +0 -68
  310. letta_sdk/types/tools/mcp/server_add_response.py +0 -14
  311. letta_sdk/types/tools/mcp/server_connect_params.py +0 -68
  312. letta_sdk/types/tools/mcp/server_delete_response.py +0 -14
  313. letta_sdk/types/tools/mcp/server_list_response.py +0 -14
  314. letta_sdk/types/tools/mcp/server_resync_params.py +0 -12
  315. letta_sdk/types/tools/mcp/server_test_params.py +0 -68
  316. letta_sdk/types/tools/mcp/server_update_params.py +0 -43
  317. letta_sdk/types/tools/mcp/server_update_response.py +0 -12
  318. letta_sdk/types/tools/mcp/servers/__init__.py +0 -6
  319. letta_sdk/types/tools/mcp/servers/tool_execute_params.py +0 -15
  320. letta_sdk/types/tools/mcp/servers/tool_list_response.py +0 -85
  321. letta_sdk/types/tools/mcp/sse_server_config.py +0 -27
  322. letta_sdk/types/tools/mcp/sse_server_config_param.py +0 -29
  323. letta_sdk/types/tools/mcp/stdio_server_config.py +0 -24
  324. letta_sdk/types/tools/mcp/stdio_server_config_param.py +0 -27
  325. letta_sdk/types/tools/mcp/streamable_http_server_config.py +0 -27
  326. letta_sdk/types/tools/mcp/streamable_http_server_config_param.py +0 -29
  327. letta_sdk/types/voice_beta/chat_create_completion_params.py +0 -12
  328. {letta_sdk → letta_client}/_compat.py +0 -0
  329. {letta_sdk → letta_client}/_constants.py +0 -0
  330. {letta_sdk → letta_client}/_files.py +0 -0
  331. {letta_sdk → letta_client}/_models.py +0 -0
  332. {letta_sdk → letta_client}/_qs.py +0 -0
  333. {letta_sdk → letta_client}/_utils/__init__.py +0 -0
  334. {letta_sdk → letta_client}/_utils/_compat.py +0 -0
  335. {letta_sdk → letta_client}/_utils/_datetime_parse.py +0 -0
  336. {letta_sdk → letta_client}/_utils/_proxy.py +0 -0
  337. {letta_sdk → letta_client}/_utils/_reflection.py +0 -0
  338. {letta_sdk → letta_client}/_utils/_streams.py +0 -0
  339. {letta_sdk → letta_client}/_utils/_sync.py +0 -0
  340. {letta_sdk → letta_client}/_utils/_transform.py +0 -0
  341. {letta_sdk → letta_client}/_utils/_typing.py +0 -0
  342. {letta_sdk → letta_client}/_utils/_utils.py +0 -0
  343. {letta_sdk → letta_client}/lib/.keep +0 -0
  344. {letta_sdk → letta_client}/py.typed +0 -0
  345. {letta_sdk/resources/messages → letta_client/resources/batches}/__init__.py +6 -6
  346. {letta_sdk → letta_client}/resources/groups/__init__.py +0 -0
  347. {letta_sdk → letta_client}/resources/tags.py +0 -0
  348. {letta_sdk → letta_client}/types/agent_count_response.py +0 -0
  349. {letta_sdk → letta_client}/types/agent_list_response.py +0 -0
  350. {letta_sdk → letta_client}/types/agents/assistant_message.py +0 -0
  351. {letta_sdk/types/agents/core_memory → letta_client/types/agents}/block_list_response.py +0 -0
  352. {letta_sdk → letta_client}/types/agents/file_close_all_response.py +0 -0
  353. {letta_sdk → letta_client}/types/agents/file_list_response.py +0 -0
  354. {letta_sdk → letta_client}/types/agents/file_open_response.py +0 -0
  355. {letta_sdk → letta_client}/types/agents/hidden_reasoning_message.py +0 -0
  356. {letta_sdk → letta_client}/types/agents/image_content.py +0 -0
  357. {letta_sdk → letta_client}/types/agents/image_content_param.py +0 -0
  358. {letta_sdk → letta_client}/types/agents/job_status.py +0 -0
  359. {letta_sdk → letta_client}/types/agents/job_type.py +0 -0
  360. {letta_sdk → letta_client}/types/agents/letta_message_union.py +0 -0
  361. {letta_sdk → letta_client}/types/agents/letta_user_message_content_union.py +0 -0
  362. {letta_sdk → letta_client}/types/agents/letta_user_message_content_union_param.py +0 -0
  363. {letta_sdk → letta_client}/types/agents/message_cancel_params.py +0 -0
  364. {letta_sdk → letta_client}/types/agents/message_cancel_response.py +0 -0
  365. {letta_sdk → letta_client}/types/agents/message_list_response.py +0 -0
  366. {letta_sdk → letta_client}/types/agents/message_role.py +0 -0
  367. {letta_sdk → letta_client}/types/agents/message_type.py +0 -0
  368. {letta_sdk → letta_client}/types/agents/message_update_response.py +0 -0
  369. {letta_sdk → letta_client}/types/agents/reasoning_content.py +0 -0
  370. {letta_sdk → letta_client}/types/agents/reasoning_content_param.py +0 -0
  371. {letta_sdk → letta_client}/types/agents/reasoning_message.py +0 -0
  372. {letta_sdk → letta_client}/types/agents/redacted_reasoning_content.py +0 -0
  373. {letta_sdk → letta_client}/types/agents/redacted_reasoning_content_param.py +0 -0
  374. {letta_sdk → letta_client}/types/agents/system_message.py +0 -0
  375. {letta_sdk → letta_client}/types/agents/tool_call.py +0 -0
  376. {letta_sdk → letta_client}/types/agents/tool_call_delta.py +0 -0
  377. {letta_sdk → letta_client}/types/agents/tool_list_response.py +0 -0
  378. {letta_sdk → letta_client}/types/agents/tool_return_content.py +0 -0
  379. {letta_sdk → letta_client}/types/agents/tool_return_content_param.py +0 -0
  380. {letta_sdk → letta_client}/types/agents/update_assistant_message_param.py +0 -0
  381. {letta_sdk → letta_client}/types/agents/update_reasoning_message_param.py +0 -0
  382. {letta_sdk → letta_client}/types/agents/update_system_message_param.py +0 -0
  383. {letta_sdk → letta_client}/types/agents/update_user_message_param.py +0 -0
  384. {letta_sdk → letta_client}/types/agents/user_message.py +0 -0
  385. {letta_sdk/types/messages → letta_client/types}/batch_list_params.py +0 -0
  386. {letta_sdk/types/messages → letta_client/types}/batch_list_response.py +0 -0
  387. {letta_sdk → letta_client}/types/block_count_response.py +0 -0
  388. {letta_sdk → letta_client}/types/block_create_params.py +0 -0
  389. {letta_sdk → letta_client}/types/block_list_params.py +0 -0
  390. {letta_sdk → letta_client}/types/block_update_params.py +0 -0
  391. {letta_sdk → letta_client}/types/conditional_tool_rule.py +0 -0
  392. {letta_sdk → letta_client}/types/conditional_tool_rule_param.py +0 -0
  393. {letta_sdk → letta_client}/types/continue_tool_rule.py +0 -0
  394. {letta_sdk → letta_client}/types/continue_tool_rule_param.py +0 -0
  395. {letta_sdk → letta_client}/types/create_block_param.py +0 -0
  396. {letta_sdk → letta_client}/types/dynamic_manager_param.py +0 -0
  397. {letta_sdk → letta_client}/types/embedding_config.py +0 -0
  398. {letta_sdk → letta_client}/types/embedding_config_param.py +0 -0
  399. {letta_sdk → letta_client}/types/folder.py +0 -0
  400. {letta_sdk → letta_client}/types/folder_count_response.py +0 -0
  401. {letta_sdk → letta_client}/types/folder_create_params.py +0 -0
  402. {letta_sdk → letta_client}/types/folder_list_params.py +0 -0
  403. {letta_sdk → letta_client}/types/folder_list_response.py +0 -0
  404. {letta_sdk → letta_client}/types/folder_update_params.py +0 -0
  405. {letta_sdk → letta_client}/types/group.py +0 -0
  406. {letta_sdk → letta_client}/types/group_count_response.py +0 -0
  407. {letta_sdk → letta_client}/types/group_create_params.py +0 -0
  408. {letta_sdk → letta_client}/types/group_list_params.py +0 -0
  409. {letta_sdk → letta_client}/types/group_list_response.py +0 -0
  410. {letta_sdk → letta_client}/types/group_update_params.py +0 -0
  411. {letta_sdk → letta_client}/types/groups/message_list_params.py +0 -0
  412. {letta_sdk → letta_client}/types/groups/message_list_response.py +0 -0
  413. {letta_sdk → letta_client}/types/groups/message_update_response.py +0 -0
  414. {letta_sdk → letta_client}/types/identity.py +0 -0
  415. {letta_sdk → letta_client}/types/identity_count_response.py +0 -0
  416. {letta_sdk → letta_client}/types/identity_create_params.py +0 -0
  417. {letta_sdk → letta_client}/types/identity_list_params.py +0 -0
  418. {letta_sdk → letta_client}/types/identity_list_response.py +0 -0
  419. {letta_sdk → letta_client}/types/identity_property.py +0 -0
  420. {letta_sdk → letta_client}/types/identity_property_param.py +0 -0
  421. {letta_sdk → letta_client}/types/identity_type.py +0 -0
  422. {letta_sdk → letta_client}/types/identity_upsert_params.py +0 -0
  423. {letta_sdk → letta_client}/types/json_object_response_format.py +0 -0
  424. {letta_sdk → letta_client}/types/json_object_response_format_param.py +0 -0
  425. {letta_sdk → letta_client}/types/json_schema_response_format.py +0 -0
  426. {letta_sdk → letta_client}/types/json_schema_response_format_param.py +0 -0
  427. {letta_sdk → letta_client}/types/letta_message_content_union_param.py +0 -0
  428. {letta_sdk → letta_client}/types/manager_type.py +0 -0
  429. {letta_sdk → letta_client}/types/max_count_per_step_tool_rule.py +0 -0
  430. {letta_sdk → letta_client}/types/max_count_per_step_tool_rule_param.py +0 -0
  431. {letta_sdk → letta_client}/types/message_create_param.py +0 -0
  432. {letta_sdk → letta_client}/types/model_list_params.py +0 -0
  433. {letta_sdk → letta_client}/types/model_list_response.py +0 -0
  434. {letta_sdk → letta_client}/types/npm_requirement.py +0 -0
  435. {letta_sdk → letta_client}/types/npm_requirement_param.py +0 -0
  436. {letta_sdk → letta_client}/types/parent_tool_rule.py +0 -0
  437. {letta_sdk → letta_client}/types/parent_tool_rule_param.py +0 -0
  438. {letta_sdk → letta_client}/types/pip_requirement.py +0 -0
  439. {letta_sdk → letta_client}/types/pip_requirement_param.py +0 -0
  440. {letta_sdk → letta_client}/types/provider_category.py +0 -0
  441. {letta_sdk → letta_client}/types/provider_trace.py +0 -0
  442. {letta_sdk → letta_client}/types/provider_type.py +0 -0
  443. {letta_sdk → letta_client}/types/required_before_exit_tool_rule.py +0 -0
  444. {letta_sdk → letta_client}/types/required_before_exit_tool_rule_param.py +0 -0
  445. {letta_sdk → letta_client}/types/requires_approval_tool_rule.py +0 -0
  446. {letta_sdk → letta_client}/types/requires_approval_tool_rule_param.py +0 -0
  447. {letta_sdk → letta_client}/types/round_robin_manager_param.py +0 -0
  448. {letta_sdk → letta_client}/types/run_list_response.py +0 -0
  449. {letta_sdk → letta_client}/types/sleeptime_manager_param.py +0 -0
  450. {letta_sdk → letta_client}/types/step_list_params.py +0 -0
  451. {letta_sdk → letta_client}/types/step_list_response.py +0 -0
  452. {letta_sdk → letta_client}/types/stop_reason_type.py +0 -0
  453. {letta_sdk → letta_client}/types/supervisor_manager_param.py +0 -0
  454. {letta_sdk → letta_client}/types/tag_list_params.py +0 -0
  455. {letta_sdk → letta_client}/types/tag_list_response.py +0 -0
  456. {letta_sdk → letta_client}/types/terminal_tool_rule.py +0 -0
  457. {letta_sdk → letta_client}/types/terminal_tool_rule_param.py +0 -0
  458. {letta_sdk → letta_client}/types/text_response_format.py +0 -0
  459. {letta_sdk → letta_client}/types/text_response_format_param.py +0 -0
  460. {letta_sdk → letta_client}/types/tool_count_params.py +0 -0
  461. {letta_sdk → letta_client}/types/tool_count_response.py +0 -0
  462. {letta_sdk → letta_client}/types/tool_list_params.py +0 -0
  463. {letta_sdk → letta_client}/types/tool_list_response.py +0 -0
  464. {letta_sdk → letta_client}/types/tool_type.py +1 -1
  465. {letta_sdk → letta_client}/types/vector_db_provider.py +0 -0
  466. {letta_sdk → letta_client}/types/voice_sleeptime_manager_param.py +0 -0
  467. {letta_client-1.0.0a6.dist-info → letta_client-1.0.0a7.dist-info}/WHEEL +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, Union, Mapping, Iterable, Optional, cast
5
+ from typing import Dict, List, Union, Mapping, Iterable, Optional, cast
6
6
  from datetime import datetime
7
7
  from typing_extensions import Literal
8
8
 
@@ -24,19 +24,30 @@ from .tools import (
24
24
  ToolsResourceWithStreamingResponse,
25
25
  AsyncToolsResourceWithStreamingResponse,
26
26
  )
27
+ from .blocks import (
28
+ BlocksResource,
29
+ AsyncBlocksResource,
30
+ BlocksResourceWithRawResponse,
31
+ AsyncBlocksResourceWithRawResponse,
32
+ BlocksResourceWithStreamingResponse,
33
+ AsyncBlocksResourceWithStreamingResponse,
34
+ )
35
+ from .groups import (
36
+ GroupsResource,
37
+ AsyncGroupsResource,
38
+ GroupsResourceWithRawResponse,
39
+ AsyncGroupsResourceWithRawResponse,
40
+ GroupsResourceWithStreamingResponse,
41
+ AsyncGroupsResourceWithStreamingResponse,
42
+ )
27
43
  from ...types import (
28
44
  AgentType,
29
45
  agent_list_params,
30
46
  agent_create_params,
31
- agent_export_params,
32
- agent_import_params,
33
- agent_search_params,
34
47
  agent_update_params,
35
- agent_migrate_params,
36
48
  agent_retrieve_params,
37
- agent_summarize_params,
38
- agent_list_groups_params,
39
- agent_reset_messages_params,
49
+ agent_export_file_params,
50
+ agent_import_file_params,
40
51
  )
41
52
  from .folders import (
42
53
  FoldersResource,
@@ -46,20 +57,11 @@ from .folders import (
46
57
  FoldersResourceWithStreamingResponse,
47
58
  AsyncFoldersResourceWithStreamingResponse,
48
59
  )
49
- from .sources import (
50
- SourcesResource,
51
- AsyncSourcesResource,
52
- SourcesResourceWithRawResponse,
53
- AsyncSourcesResourceWithRawResponse,
54
- SourcesResourceWithStreamingResponse,
55
- AsyncSourcesResourceWithStreamingResponse,
56
- )
57
60
  from ..._types import (
58
61
  Body,
59
62
  Omit,
60
63
  Query,
61
64
  Headers,
62
- NoneType,
63
65
  NotGiven,
64
66
  FileTypes,
65
67
  SequenceNotStr,
@@ -84,35 +86,15 @@ from ..._response import (
84
86
  async_to_streamed_response_wrapper,
85
87
  )
86
88
  from ..._base_client import make_request_options
87
- from .archival_memory import (
88
- ArchivalMemoryResource,
89
- AsyncArchivalMemoryResource,
90
- ArchivalMemoryResourceWithRawResponse,
91
- AsyncArchivalMemoryResourceWithRawResponse,
92
- ArchivalMemoryResourceWithStreamingResponse,
93
- AsyncArchivalMemoryResourceWithStreamingResponse,
94
- )
95
89
  from ...types.agent_type import AgentType
96
90
  from ...types.agent_state import AgentState
97
- from .core_memory.core_memory import (
98
- CoreMemoryResource,
99
- AsyncCoreMemoryResource,
100
- CoreMemoryResourceWithRawResponse,
101
- AsyncCoreMemoryResourceWithRawResponse,
102
- CoreMemoryResourceWithStreamingResponse,
103
- AsyncCoreMemoryResourceWithStreamingResponse,
104
- )
105
91
  from ...types.llm_config_param import LlmConfigParam
106
92
  from ...types.create_block_param import CreateBlockParam
107
93
  from ...types.agent_list_response import AgentListResponse
108
94
  from ...types.agent_count_response import AgentCountResponse
109
95
  from ...types.message_create_param import MessageCreateParam
110
- from ...types.agent_import_response import AgentImportResponse
111
- from ...types.agent_search_response import AgentSearchResponse
112
- from ...types.agent_migrate_response import AgentMigrateResponse
113
96
  from ...types.embedding_config_param import EmbeddingConfigParam
114
- from ...types.agent_list_groups_response import AgentListGroupsResponse
115
- from ...types.agent_retrieve_context_response import AgentRetrieveContextResponse
97
+ from ...types.agent_import_file_response import AgentImportFileResponse
116
98
 
117
99
  __all__ = ["AgentsResource", "AsyncAgentsResource"]
118
100
 
@@ -122,10 +104,6 @@ class AgentsResource(SyncAPIResource):
122
104
  def tools(self) -> ToolsResource:
123
105
  return ToolsResource(self._client)
124
106
 
125
- @cached_property
126
- def sources(self) -> SourcesResource:
127
- return SourcesResource(self._client)
128
-
129
107
  @cached_property
130
108
  def folders(self) -> FoldersResource:
131
109
  return FoldersResource(self._client)
@@ -135,12 +113,12 @@ class AgentsResource(SyncAPIResource):
135
113
  return FilesResource(self._client)
136
114
 
137
115
  @cached_property
138
- def core_memory(self) -> CoreMemoryResource:
139
- return CoreMemoryResource(self._client)
116
+ def blocks(self) -> BlocksResource:
117
+ return BlocksResource(self._client)
140
118
 
141
119
  @cached_property
142
- def archival_memory(self) -> ArchivalMemoryResource:
143
- return ArchivalMemoryResource(self._client)
120
+ def groups(self) -> GroupsResource:
121
+ return GroupsResource(self._client)
144
122
 
145
123
  @cached_property
146
124
  def messages(self) -> MessagesResource:
@@ -196,6 +174,7 @@ class AgentsResource(SyncAPIResource):
196
174
  metadata: Optional[Dict[str, object]] | Omit = omit,
197
175
  model: Optional[str] | Omit = omit,
198
176
  name: str | Omit = omit,
177
+ parallel_tool_calls: Optional[bool] | Omit = omit,
199
178
  per_file_view_window_char_limit: Optional[int] | Omit = omit,
200
179
  project: Optional[str] | Omit = omit,
201
180
  project_id: Optional[str] | Omit = omit,
@@ -245,7 +224,7 @@ class AgentsResource(SyncAPIResource):
245
224
 
246
225
  enable_sleeptime: If set to True, memory management will move to a background agent thread.
247
226
 
248
- from_template: The template id used to configure the agent
227
+ from_template: Deprecated: please use the 'create agents from a template' endpoint instead.
249
228
 
250
229
  hidden: If set to True, the agent will be hidden.
251
230
 
@@ -290,6 +269,8 @@ class AgentsResource(SyncAPIResource):
290
269
 
291
270
  name: The name of the agent.
292
271
 
272
+ parallel_tool_calls: If set to True, enables parallel tool calling. Defaults to False.
273
+
293
274
  per_file_view_window_char_limit: The per-file view window character limit for this agent. Setting this too high
294
275
  may exceed the context window, which will break the agent.
295
276
 
@@ -311,7 +292,7 @@ class AgentsResource(SyncAPIResource):
311
292
 
312
293
  tags: The tags associated with the agent.
313
294
 
314
- template: Whether the agent is a template
295
+ template: Deprecated: No longer used
315
296
 
316
297
  template_id: The id of the template the agent belongs to.
317
298
 
@@ -368,6 +349,7 @@ class AgentsResource(SyncAPIResource):
368
349
  "metadata": metadata,
369
350
  "model": model,
370
351
  "name": name,
352
+ "parallel_tool_calls": parallel_tool_calls,
371
353
  "per_file_view_window_char_limit": per_file_view_window_char_limit,
372
354
  "project": project,
373
355
  "project_id": project_id,
@@ -397,6 +379,18 @@ class AgentsResource(SyncAPIResource):
397
379
  self,
398
380
  agent_id: str,
399
381
  *,
382
+ include: List[
383
+ Literal[
384
+ "agent.blocks",
385
+ "agent.identities",
386
+ "agent.managed_group",
387
+ "agent.secrets",
388
+ "agent.sources",
389
+ "agent.tags",
390
+ "agent.tools",
391
+ ]
392
+ ]
393
+ | Omit = omit,
400
394
  include_relationships: Optional[SequenceNotStr[str]] | Omit = omit,
401
395
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
402
396
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -409,9 +403,15 @@ class AgentsResource(SyncAPIResource):
409
403
  Get the state of the agent.
410
404
 
411
405
  Args:
406
+ agent_id: The ID of the agent in the format 'agent-<uuid4>'
407
+
408
+ include: Specify which relational fields to include in the response. No relationships are
409
+ included by default.
410
+
412
411
  include_relationships: Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include
413
412
  in the response. If not provided, all relationships are loaded by default. Using
414
- this can optimize performance by reducing unnecessary joins.
413
+ this can optimize performance by reducing unnecessary joins.This is a legacy
414
+ parameter, and no longer supported after 1.0.0 SDK versions.
415
415
 
416
416
  extra_headers: Send extra headers
417
417
 
@@ -431,7 +431,11 @@ class AgentsResource(SyncAPIResource):
431
431
  extra_body=extra_body,
432
432
  timeout=timeout,
433
433
  query=maybe_transform(
434
- {"include_relationships": include_relationships}, agent_retrieve_params.AgentRetrieveParams
434
+ {
435
+ "include": include,
436
+ "include_relationships": include_relationships,
437
+ },
438
+ agent_retrieve_params.AgentRetrieveParams,
435
439
  ),
436
440
  ),
437
441
  cast_to=AgentState,
@@ -443,6 +447,7 @@ class AgentsResource(SyncAPIResource):
443
447
  *,
444
448
  base_template_id: Optional[str] | Omit = omit,
445
449
  block_ids: Optional[SequenceNotStr[str]] | Omit = omit,
450
+ context_window_limit: Optional[int] | Omit = omit,
446
451
  description: Optional[str] | Omit = omit,
447
452
  embedding: Optional[str] | Omit = omit,
448
453
  embedding_config: Optional[EmbeddingConfigParam] | Omit = omit,
@@ -453,11 +458,13 @@ class AgentsResource(SyncAPIResource):
453
458
  last_run_duration_ms: Optional[int] | Omit = omit,
454
459
  llm_config: Optional[LlmConfigParam] | Omit = omit,
455
460
  max_files_open: Optional[int] | Omit = omit,
461
+ max_tokens: Optional[int] | Omit = omit,
456
462
  message_buffer_autoclear: Optional[bool] | Omit = omit,
457
463
  message_ids: Optional[SequenceNotStr[str]] | Omit = omit,
458
464
  metadata: Optional[Dict[str, object]] | Omit = omit,
459
465
  model: Optional[str] | Omit = omit,
460
466
  name: Optional[str] | Omit = omit,
467
+ parallel_tool_calls: Optional[bool] | Omit = omit,
461
468
  per_file_view_window_char_limit: Optional[int] | Omit = omit,
462
469
  project_id: Optional[str] | Omit = omit,
463
470
  reasoning: Optional[bool] | Omit = omit,
@@ -482,10 +489,14 @@ class AgentsResource(SyncAPIResource):
482
489
  Update an existing agent.
483
490
 
484
491
  Args:
492
+ agent_id: The ID of the agent in the format 'agent-<uuid4>'
493
+
485
494
  base_template_id: The base template id of the agent.
486
495
 
487
496
  block_ids: The ids of the blocks used by the agent.
488
497
 
498
+ context_window_limit: The context window limit used by the agent.
499
+
489
500
  description: The description of the agent.
490
501
 
491
502
  embedding: The embedding configuration handle used by the agent, specified in the format
@@ -508,6 +519,9 @@ class AgentsResource(SyncAPIResource):
508
519
  max_files_open: Maximum number of files that can be open at once for this agent. Setting this
509
520
  too high may exceed the context window, which will break the agent.
510
521
 
522
+ max_tokens: The maximum number of tokens to generate, including reasoning step. If not set,
523
+ the model will use its default value.
524
+
511
525
  message_buffer_autoclear: If set to True, the agent will not remember previous messages (though the agent
512
526
  will still retain state via core memory blocks and archival/recall memory). Not
513
527
  recommended unless you have an advanced use case.
@@ -521,6 +535,8 @@ class AgentsResource(SyncAPIResource):
521
535
 
522
536
  name: The name of the agent.
523
537
 
538
+ parallel_tool_calls: If set to True, enables parallel tool calling. Defaults to False.
539
+
524
540
  per_file_view_window_char_limit: The per-file view window character limit for this agent. Setting this too high
525
541
  may exceed the context window, which will break the agent.
526
542
 
@@ -564,6 +580,7 @@ class AgentsResource(SyncAPIResource):
564
580
  {
565
581
  "base_template_id": base_template_id,
566
582
  "block_ids": block_ids,
583
+ "context_window_limit": context_window_limit,
567
584
  "description": description,
568
585
  "embedding": embedding,
569
586
  "embedding_config": embedding_config,
@@ -574,11 +591,13 @@ class AgentsResource(SyncAPIResource):
574
591
  "last_run_duration_ms": last_run_duration_ms,
575
592
  "llm_config": llm_config,
576
593
  "max_files_open": max_files_open,
594
+ "max_tokens": max_tokens,
577
595
  "message_buffer_autoclear": message_buffer_autoclear,
578
596
  "message_ids": message_ids,
579
597
  "metadata": metadata,
580
598
  "model": model,
581
599
  "name": name,
600
+ "parallel_tool_calls": parallel_tool_calls,
582
601
  "per_file_view_window_char_limit": per_file_view_window_char_limit,
583
602
  "project_id": project_id,
584
603
  "reasoning": reasoning,
@@ -610,6 +629,18 @@ class AgentsResource(SyncAPIResource):
610
629
  before: Optional[str] | Omit = omit,
611
630
  identifier_keys: Optional[SequenceNotStr[str]] | Omit = omit,
612
631
  identity_id: Optional[str] | Omit = omit,
632
+ include: List[
633
+ Literal[
634
+ "agent.blocks",
635
+ "agent.identities",
636
+ "agent.managed_group",
637
+ "agent.secrets",
638
+ "agent.sources",
639
+ "agent.tags",
640
+ "agent.tools",
641
+ ]
642
+ ]
643
+ | Omit = omit,
613
644
  include_relationships: Optional[SequenceNotStr[str]] | Omit = omit,
614
645
  limit: Optional[int] | Omit = omit,
615
646
  match_all_tags: bool | Omit = omit,
@@ -645,9 +676,13 @@ class AgentsResource(SyncAPIResource):
645
676
 
646
677
  identity_id: Search agents by identity ID
647
678
 
679
+ include: Specify which relational fields to include in the response. No relationships are
680
+ included by default.
681
+
648
682
  include_relationships: Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include
649
683
  in the response. If not provided, all relationships are loaded by default. Using
650
- this can optimize performance by reducing unnecessary joins.
684
+ this can optimize performance by reducing unnecessary joins.This is a legacy
685
+ parameter, and no longer supported after 1.0.0 SDK versions.
651
686
 
652
687
  limit: Limit for pagination
653
688
 
@@ -694,6 +729,7 @@ class AgentsResource(SyncAPIResource):
694
729
  "before": before,
695
730
  "identifier_keys": identifier_keys,
696
731
  "identity_id": identity_id,
732
+ "include": include,
697
733
  "include_relationships": include_relationships,
698
734
  "limit": limit,
699
735
  "match_all_tags": match_all_tags,
@@ -727,6 +763,8 @@ class AgentsResource(SyncAPIResource):
727
763
  Delete an agent.
728
764
 
729
765
  Args:
766
+ agent_id: The ID of the agent in the format 'agent-<uuid4>'
767
+
730
768
  extra_headers: Send extra headers
731
769
 
732
770
  extra_query: Add additional query parameters to the request
@@ -764,7 +802,7 @@ class AgentsResource(SyncAPIResource):
764
802
  cast_to=int,
765
803
  )
766
804
 
767
- def export(
805
+ def export_file(
768
806
  self,
769
807
  agent_id: str,
770
808
  *,
@@ -781,15 +819,10 @@ class AgentsResource(SyncAPIResource):
781
819
  Export the serialized JSON representation of an agent, formatted with
782
820
  indentation.
783
821
 
784
- Supports two export formats:
785
-
786
- - Legacy format (use_legacy_format=true): Single agent with inline tools/blocks
787
- - New format (default): Multi-entity format with separate agents, tools, blocks,
788
- files, etc.
789
-
790
822
  Args:
791
- use_legacy_format: If true, exports using the legacy single-agent format (v1). If false, exports
792
- using the new multi-entity format (v2).
823
+ use_legacy_format: If True, exports using the legacy single-agent 'v1' format with inline
824
+ tools/blocks. If False, exports using the new multi-entity 'v2' format, with
825
+ separate agents, tools, blocks, files, etc.
793
826
 
794
827
  extra_headers: Send extra headers
795
828
 
@@ -813,13 +846,13 @@ class AgentsResource(SyncAPIResource):
813
846
  "max_steps": max_steps,
814
847
  "use_legacy_format": use_legacy_format,
815
848
  },
816
- agent_export_params.AgentExportParams,
849
+ agent_export_file_params.AgentExportFileParams,
817
850
  ),
818
851
  ),
819
852
  cast_to=str,
820
853
  )
821
854
 
822
- def import_(
855
+ def import_file(
823
856
  self,
824
857
  *,
825
858
  file: FileTypes,
@@ -827,6 +860,7 @@ class AgentsResource(SyncAPIResource):
827
860
  env_vars_json: Optional[str] | Omit = omit,
828
861
  override_embedding_handle: Optional[str] | Omit = omit,
829
862
  override_existing_tools: bool | Omit = omit,
863
+ override_name: Optional[str] | Omit = omit,
830
864
  project_id: Optional[str] | Omit = omit,
831
865
  strip_messages: bool | Omit = omit,
832
866
  x_override_embedding_model: str | Omit = omit,
@@ -836,7 +870,7 @@ class AgentsResource(SyncAPIResource):
836
870
  extra_query: Query | None = None,
837
871
  extra_body: Body | None = None,
838
872
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
839
- ) -> AgentImportResponse:
873
+ ) -> AgentImportFileResponse:
840
874
  """Import a serialized agent file and recreate the agent(s) in the system.
841
875
 
842
876
  Returns
@@ -853,6 +887,8 @@ class AgentsResource(SyncAPIResource):
853
887
  uploaded tool definitions. Note that Letta core tools can never be updated
854
888
  externally.
855
889
 
890
+ override_name: If provided, overrides the agent name with this value.
891
+
856
892
  project_id: The project ID to associate the uploaded agent with.
857
893
 
858
894
  strip_messages: If set to True, strips all messages from the agent before importing.
@@ -876,6 +912,7 @@ class AgentsResource(SyncAPIResource):
876
912
  "env_vars_json": env_vars_json,
877
913
  "override_embedding_handle": override_embedding_handle,
878
914
  "override_existing_tools": override_existing_tools,
915
+ "override_name": override_name,
879
916
  "project_id": project_id,
880
917
  "strip_messages": strip_messages,
881
918
  }
@@ -887,272 +924,12 @@ class AgentsResource(SyncAPIResource):
887
924
  extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
888
925
  return self._post(
889
926
  "/v1/agents/import",
890
- body=maybe_transform(body, agent_import_params.AgentImportParams),
927
+ body=maybe_transform(body, agent_import_file_params.AgentImportFileParams),
891
928
  files=files,
892
929
  options=make_request_options(
893
930
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
894
931
  ),
895
- cast_to=AgentImportResponse,
896
- )
897
-
898
- def list_groups(
899
- self,
900
- agent_id: str,
901
- *,
902
- manager_type: Optional[str] | Omit = omit,
903
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
904
- # The extra values given here take precedence over values defined on the client or passed to this method.
905
- extra_headers: Headers | None = None,
906
- extra_query: Query | None = None,
907
- extra_body: Body | None = None,
908
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
909
- ) -> AgentListGroupsResponse:
910
- """
911
- Lists the groups for an agent
912
-
913
- Args:
914
- manager_type: Manager type to filter groups by
915
-
916
- extra_headers: Send extra headers
917
-
918
- extra_query: Add additional query parameters to the request
919
-
920
- extra_body: Add additional JSON properties to the request
921
-
922
- timeout: Override the client-level default timeout for this request, in seconds
923
- """
924
- if not agent_id:
925
- raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
926
- return self._get(
927
- f"/v1/agents/{agent_id}/groups",
928
- options=make_request_options(
929
- extra_headers=extra_headers,
930
- extra_query=extra_query,
931
- extra_body=extra_body,
932
- timeout=timeout,
933
- query=maybe_transform({"manager_type": manager_type}, agent_list_groups_params.AgentListGroupsParams),
934
- ),
935
- cast_to=AgentListGroupsResponse,
936
- )
937
-
938
- def migrate(
939
- self,
940
- agent_id: str,
941
- *,
942
- preserve_core_memories: bool,
943
- to_template: str,
944
- preserve_tool_variables: bool | Omit = omit,
945
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
946
- # The extra values given here take precedence over values defined on the client or passed to this method.
947
- extra_headers: Headers | None = None,
948
- extra_query: Query | None = None,
949
- extra_body: Body | None = None,
950
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
951
- ) -> AgentMigrateResponse:
952
- """Migrate an agent to a new versioned agent template.
953
-
954
- This will only work for
955
- "classic" and non-multiagent agent templates.
956
-
957
- Args:
958
- preserve_tool_variables: If true, preserves the existing agent's tool environment variables instead of
959
- using the template's variables
960
-
961
- extra_headers: Send extra headers
962
-
963
- extra_query: Add additional query parameters to the request
964
-
965
- extra_body: Add additional JSON properties to the request
966
-
967
- timeout: Override the client-level default timeout for this request, in seconds
968
- """
969
- if not agent_id:
970
- raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
971
- return self._post(
972
- f"/v1/agents/{agent_id}/migrate",
973
- body=maybe_transform(
974
- {
975
- "preserve_core_memories": preserve_core_memories,
976
- "to_template": to_template,
977
- "preserve_tool_variables": preserve_tool_variables,
978
- },
979
- agent_migrate_params.AgentMigrateParams,
980
- ),
981
- options=make_request_options(
982
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
983
- ),
984
- cast_to=AgentMigrateResponse,
985
- )
986
-
987
- def reset_messages(
988
- self,
989
- agent_id: str,
990
- *,
991
- add_default_initial_messages: bool | Omit = omit,
992
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
993
- # The extra values given here take precedence over values defined on the client or passed to this method.
994
- extra_headers: Headers | None = None,
995
- extra_query: Query | None = None,
996
- extra_body: Body | None = None,
997
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
998
- ) -> AgentState:
999
- """
1000
- Resets the messages for an agent
1001
-
1002
- Args:
1003
- add_default_initial_messages: If true, adds the default initial messages after resetting.
1004
-
1005
- extra_headers: Send extra headers
1006
-
1007
- extra_query: Add additional query parameters to the request
1008
-
1009
- extra_body: Add additional JSON properties to the request
1010
-
1011
- timeout: Override the client-level default timeout for this request, in seconds
1012
- """
1013
- if not agent_id:
1014
- raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
1015
- return self._patch(
1016
- f"/v1/agents/{agent_id}/reset-messages",
1017
- options=make_request_options(
1018
- extra_headers=extra_headers,
1019
- extra_query=extra_query,
1020
- extra_body=extra_body,
1021
- timeout=timeout,
1022
- query=maybe_transform(
1023
- {"add_default_initial_messages": add_default_initial_messages},
1024
- agent_reset_messages_params.AgentResetMessagesParams,
1025
- ),
1026
- ),
1027
- cast_to=AgentState,
1028
- )
1029
-
1030
- def retrieve_context(
1031
- self,
1032
- agent_id: str,
1033
- *,
1034
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1035
- # The extra values given here take precedence over values defined on the client or passed to this method.
1036
- extra_headers: Headers | None = None,
1037
- extra_query: Query | None = None,
1038
- extra_body: Body | None = None,
1039
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
1040
- ) -> AgentRetrieveContextResponse:
1041
- """
1042
- Retrieve the context window of a specific agent.
1043
-
1044
- Args:
1045
- extra_headers: Send extra headers
1046
-
1047
- extra_query: Add additional query parameters to the request
1048
-
1049
- extra_body: Add additional JSON properties to the request
1050
-
1051
- timeout: Override the client-level default timeout for this request, in seconds
1052
- """
1053
- if not agent_id:
1054
- raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
1055
- return self._get(
1056
- f"/v1/agents/{agent_id}/context",
1057
- options=make_request_options(
1058
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
1059
- ),
1060
- cast_to=AgentRetrieveContextResponse,
1061
- )
1062
-
1063
- def search(
1064
- self,
1065
- *,
1066
- after: Optional[str] | Omit = omit,
1067
- ascending: bool | Omit = omit,
1068
- combinator: Literal["AND"] | Omit = omit,
1069
- limit: float | Omit = omit,
1070
- project_id: str | Omit = omit,
1071
- search: Iterable[agent_search_params.Search] | Omit = omit,
1072
- sort_by: Literal["created_at", "last_run_completion"] | Omit = omit,
1073
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1074
- # The extra values given here take precedence over values defined on the client or passed to this method.
1075
- extra_headers: Headers | None = None,
1076
- extra_query: Query | None = None,
1077
- extra_body: Body | None = None,
1078
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
1079
- ) -> AgentSearchResponse:
1080
- """
1081
- Search deployed agents
1082
-
1083
- Args:
1084
- extra_headers: Send extra headers
1085
-
1086
- extra_query: Add additional query parameters to the request
1087
-
1088
- extra_body: Add additional JSON properties to the request
1089
-
1090
- timeout: Override the client-level default timeout for this request, in seconds
1091
- """
1092
- return self._post(
1093
- "/v1/agents/search",
1094
- body=maybe_transform(
1095
- {
1096
- "after": after,
1097
- "ascending": ascending,
1098
- "combinator": combinator,
1099
- "limit": limit,
1100
- "project_id": project_id,
1101
- "search": search,
1102
- "sort_by": sort_by,
1103
- },
1104
- agent_search_params.AgentSearchParams,
1105
- ),
1106
- options=make_request_options(
1107
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
1108
- ),
1109
- cast_to=AgentSearchResponse,
1110
- )
1111
-
1112
- def summarize(
1113
- self,
1114
- agent_id: str,
1115
- *,
1116
- max_message_length: int,
1117
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1118
- # The extra values given here take precedence over values defined on the client or passed to this method.
1119
- extra_headers: Headers | None = None,
1120
- extra_query: Query | None = None,
1121
- extra_body: Body | None = None,
1122
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
1123
- ) -> None:
1124
- """
1125
- Summarize an agent's conversation history to a target message length.
1126
-
1127
- This endpoint summarizes the current message history for a given agent,
1128
- truncating and compressing it down to the specified `max_message_length`.
1129
-
1130
- Args:
1131
- max_message_length: Maximum number of messages to retain after summarization.
1132
-
1133
- extra_headers: Send extra headers
1134
-
1135
- extra_query: Add additional query parameters to the request
1136
-
1137
- extra_body: Add additional JSON properties to the request
1138
-
1139
- timeout: Override the client-level default timeout for this request, in seconds
1140
- """
1141
- if not agent_id:
1142
- raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
1143
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
1144
- return self._post(
1145
- f"/v1/agents/{agent_id}/summarize",
1146
- options=make_request_options(
1147
- extra_headers=extra_headers,
1148
- extra_query=extra_query,
1149
- extra_body=extra_body,
1150
- timeout=timeout,
1151
- query=maybe_transform(
1152
- {"max_message_length": max_message_length}, agent_summarize_params.AgentSummarizeParams
1153
- ),
1154
- ),
1155
- cast_to=NoneType,
932
+ cast_to=AgentImportFileResponse,
1156
933
  )
1157
934
 
1158
935
 
@@ -1161,10 +938,6 @@ class AsyncAgentsResource(AsyncAPIResource):
1161
938
  def tools(self) -> AsyncToolsResource:
1162
939
  return AsyncToolsResource(self._client)
1163
940
 
1164
- @cached_property
1165
- def sources(self) -> AsyncSourcesResource:
1166
- return AsyncSourcesResource(self._client)
1167
-
1168
941
  @cached_property
1169
942
  def folders(self) -> AsyncFoldersResource:
1170
943
  return AsyncFoldersResource(self._client)
@@ -1174,12 +947,12 @@ class AsyncAgentsResource(AsyncAPIResource):
1174
947
  return AsyncFilesResource(self._client)
1175
948
 
1176
949
  @cached_property
1177
- def core_memory(self) -> AsyncCoreMemoryResource:
1178
- return AsyncCoreMemoryResource(self._client)
950
+ def blocks(self) -> AsyncBlocksResource:
951
+ return AsyncBlocksResource(self._client)
1179
952
 
1180
953
  @cached_property
1181
- def archival_memory(self) -> AsyncArchivalMemoryResource:
1182
- return AsyncArchivalMemoryResource(self._client)
954
+ def groups(self) -> AsyncGroupsResource:
955
+ return AsyncGroupsResource(self._client)
1183
956
 
1184
957
  @cached_property
1185
958
  def messages(self) -> AsyncMessagesResource:
@@ -1235,6 +1008,7 @@ class AsyncAgentsResource(AsyncAPIResource):
1235
1008
  metadata: Optional[Dict[str, object]] | Omit = omit,
1236
1009
  model: Optional[str] | Omit = omit,
1237
1010
  name: str | Omit = omit,
1011
+ parallel_tool_calls: Optional[bool] | Omit = omit,
1238
1012
  per_file_view_window_char_limit: Optional[int] | Omit = omit,
1239
1013
  project: Optional[str] | Omit = omit,
1240
1014
  project_id: Optional[str] | Omit = omit,
@@ -1284,7 +1058,7 @@ class AsyncAgentsResource(AsyncAPIResource):
1284
1058
 
1285
1059
  enable_sleeptime: If set to True, memory management will move to a background agent thread.
1286
1060
 
1287
- from_template: The template id used to configure the agent
1061
+ from_template: Deprecated: please use the 'create agents from a template' endpoint instead.
1288
1062
 
1289
1063
  hidden: If set to True, the agent will be hidden.
1290
1064
 
@@ -1329,6 +1103,8 @@ class AsyncAgentsResource(AsyncAPIResource):
1329
1103
 
1330
1104
  name: The name of the agent.
1331
1105
 
1106
+ parallel_tool_calls: If set to True, enables parallel tool calling. Defaults to False.
1107
+
1332
1108
  per_file_view_window_char_limit: The per-file view window character limit for this agent. Setting this too high
1333
1109
  may exceed the context window, which will break the agent.
1334
1110
 
@@ -1350,7 +1126,7 @@ class AsyncAgentsResource(AsyncAPIResource):
1350
1126
 
1351
1127
  tags: The tags associated with the agent.
1352
1128
 
1353
- template: Whether the agent is a template
1129
+ template: Deprecated: No longer used
1354
1130
 
1355
1131
  template_id: The id of the template the agent belongs to.
1356
1132
 
@@ -1407,6 +1183,7 @@ class AsyncAgentsResource(AsyncAPIResource):
1407
1183
  "metadata": metadata,
1408
1184
  "model": model,
1409
1185
  "name": name,
1186
+ "parallel_tool_calls": parallel_tool_calls,
1410
1187
  "per_file_view_window_char_limit": per_file_view_window_char_limit,
1411
1188
  "project": project,
1412
1189
  "project_id": project_id,
@@ -1436,6 +1213,18 @@ class AsyncAgentsResource(AsyncAPIResource):
1436
1213
  self,
1437
1214
  agent_id: str,
1438
1215
  *,
1216
+ include: List[
1217
+ Literal[
1218
+ "agent.blocks",
1219
+ "agent.identities",
1220
+ "agent.managed_group",
1221
+ "agent.secrets",
1222
+ "agent.sources",
1223
+ "agent.tags",
1224
+ "agent.tools",
1225
+ ]
1226
+ ]
1227
+ | Omit = omit,
1439
1228
  include_relationships: Optional[SequenceNotStr[str]] | Omit = omit,
1440
1229
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1441
1230
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -1448,9 +1237,15 @@ class AsyncAgentsResource(AsyncAPIResource):
1448
1237
  Get the state of the agent.
1449
1238
 
1450
1239
  Args:
1240
+ agent_id: The ID of the agent in the format 'agent-<uuid4>'
1241
+
1242
+ include: Specify which relational fields to include in the response. No relationships are
1243
+ included by default.
1244
+
1451
1245
  include_relationships: Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include
1452
1246
  in the response. If not provided, all relationships are loaded by default. Using
1453
- this can optimize performance by reducing unnecessary joins.
1247
+ this can optimize performance by reducing unnecessary joins.This is a legacy
1248
+ parameter, and no longer supported after 1.0.0 SDK versions.
1454
1249
 
1455
1250
  extra_headers: Send extra headers
1456
1251
 
@@ -1470,7 +1265,11 @@ class AsyncAgentsResource(AsyncAPIResource):
1470
1265
  extra_body=extra_body,
1471
1266
  timeout=timeout,
1472
1267
  query=await async_maybe_transform(
1473
- {"include_relationships": include_relationships}, agent_retrieve_params.AgentRetrieveParams
1268
+ {
1269
+ "include": include,
1270
+ "include_relationships": include_relationships,
1271
+ },
1272
+ agent_retrieve_params.AgentRetrieveParams,
1474
1273
  ),
1475
1274
  ),
1476
1275
  cast_to=AgentState,
@@ -1482,6 +1281,7 @@ class AsyncAgentsResource(AsyncAPIResource):
1482
1281
  *,
1483
1282
  base_template_id: Optional[str] | Omit = omit,
1484
1283
  block_ids: Optional[SequenceNotStr[str]] | Omit = omit,
1284
+ context_window_limit: Optional[int] | Omit = omit,
1485
1285
  description: Optional[str] | Omit = omit,
1486
1286
  embedding: Optional[str] | Omit = omit,
1487
1287
  embedding_config: Optional[EmbeddingConfigParam] | Omit = omit,
@@ -1492,11 +1292,13 @@ class AsyncAgentsResource(AsyncAPIResource):
1492
1292
  last_run_duration_ms: Optional[int] | Omit = omit,
1493
1293
  llm_config: Optional[LlmConfigParam] | Omit = omit,
1494
1294
  max_files_open: Optional[int] | Omit = omit,
1295
+ max_tokens: Optional[int] | Omit = omit,
1495
1296
  message_buffer_autoclear: Optional[bool] | Omit = omit,
1496
1297
  message_ids: Optional[SequenceNotStr[str]] | Omit = omit,
1497
1298
  metadata: Optional[Dict[str, object]] | Omit = omit,
1498
1299
  model: Optional[str] | Omit = omit,
1499
1300
  name: Optional[str] | Omit = omit,
1301
+ parallel_tool_calls: Optional[bool] | Omit = omit,
1500
1302
  per_file_view_window_char_limit: Optional[int] | Omit = omit,
1501
1303
  project_id: Optional[str] | Omit = omit,
1502
1304
  reasoning: Optional[bool] | Omit = omit,
@@ -1521,10 +1323,14 @@ class AsyncAgentsResource(AsyncAPIResource):
1521
1323
  Update an existing agent.
1522
1324
 
1523
1325
  Args:
1326
+ agent_id: The ID of the agent in the format 'agent-<uuid4>'
1327
+
1524
1328
  base_template_id: The base template id of the agent.
1525
1329
 
1526
1330
  block_ids: The ids of the blocks used by the agent.
1527
1331
 
1332
+ context_window_limit: The context window limit used by the agent.
1333
+
1528
1334
  description: The description of the agent.
1529
1335
 
1530
1336
  embedding: The embedding configuration handle used by the agent, specified in the format
@@ -1547,6 +1353,9 @@ class AsyncAgentsResource(AsyncAPIResource):
1547
1353
  max_files_open: Maximum number of files that can be open at once for this agent. Setting this
1548
1354
  too high may exceed the context window, which will break the agent.
1549
1355
 
1356
+ max_tokens: The maximum number of tokens to generate, including reasoning step. If not set,
1357
+ the model will use its default value.
1358
+
1550
1359
  message_buffer_autoclear: If set to True, the agent will not remember previous messages (though the agent
1551
1360
  will still retain state via core memory blocks and archival/recall memory). Not
1552
1361
  recommended unless you have an advanced use case.
@@ -1560,6 +1369,8 @@ class AsyncAgentsResource(AsyncAPIResource):
1560
1369
 
1561
1370
  name: The name of the agent.
1562
1371
 
1372
+ parallel_tool_calls: If set to True, enables parallel tool calling. Defaults to False.
1373
+
1563
1374
  per_file_view_window_char_limit: The per-file view window character limit for this agent. Setting this too high
1564
1375
  may exceed the context window, which will break the agent.
1565
1376
 
@@ -1603,6 +1414,7 @@ class AsyncAgentsResource(AsyncAPIResource):
1603
1414
  {
1604
1415
  "base_template_id": base_template_id,
1605
1416
  "block_ids": block_ids,
1417
+ "context_window_limit": context_window_limit,
1606
1418
  "description": description,
1607
1419
  "embedding": embedding,
1608
1420
  "embedding_config": embedding_config,
@@ -1613,11 +1425,13 @@ class AsyncAgentsResource(AsyncAPIResource):
1613
1425
  "last_run_duration_ms": last_run_duration_ms,
1614
1426
  "llm_config": llm_config,
1615
1427
  "max_files_open": max_files_open,
1428
+ "max_tokens": max_tokens,
1616
1429
  "message_buffer_autoclear": message_buffer_autoclear,
1617
1430
  "message_ids": message_ids,
1618
1431
  "metadata": metadata,
1619
1432
  "model": model,
1620
1433
  "name": name,
1434
+ "parallel_tool_calls": parallel_tool_calls,
1621
1435
  "per_file_view_window_char_limit": per_file_view_window_char_limit,
1622
1436
  "project_id": project_id,
1623
1437
  "reasoning": reasoning,
@@ -1649,6 +1463,18 @@ class AsyncAgentsResource(AsyncAPIResource):
1649
1463
  before: Optional[str] | Omit = omit,
1650
1464
  identifier_keys: Optional[SequenceNotStr[str]] | Omit = omit,
1651
1465
  identity_id: Optional[str] | Omit = omit,
1466
+ include: List[
1467
+ Literal[
1468
+ "agent.blocks",
1469
+ "agent.identities",
1470
+ "agent.managed_group",
1471
+ "agent.secrets",
1472
+ "agent.sources",
1473
+ "agent.tags",
1474
+ "agent.tools",
1475
+ ]
1476
+ ]
1477
+ | Omit = omit,
1652
1478
  include_relationships: Optional[SequenceNotStr[str]] | Omit = omit,
1653
1479
  limit: Optional[int] | Omit = omit,
1654
1480
  match_all_tags: bool | Omit = omit,
@@ -1684,9 +1510,13 @@ class AsyncAgentsResource(AsyncAPIResource):
1684
1510
 
1685
1511
  identity_id: Search agents by identity ID
1686
1512
 
1513
+ include: Specify which relational fields to include in the response. No relationships are
1514
+ included by default.
1515
+
1687
1516
  include_relationships: Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include
1688
1517
  in the response. If not provided, all relationships are loaded by default. Using
1689
- this can optimize performance by reducing unnecessary joins.
1518
+ this can optimize performance by reducing unnecessary joins.This is a legacy
1519
+ parameter, and no longer supported after 1.0.0 SDK versions.
1690
1520
 
1691
1521
  limit: Limit for pagination
1692
1522
 
@@ -1733,6 +1563,7 @@ class AsyncAgentsResource(AsyncAPIResource):
1733
1563
  "before": before,
1734
1564
  "identifier_keys": identifier_keys,
1735
1565
  "identity_id": identity_id,
1566
+ "include": include,
1736
1567
  "include_relationships": include_relationships,
1737
1568
  "limit": limit,
1738
1569
  "match_all_tags": match_all_tags,
@@ -1766,6 +1597,8 @@ class AsyncAgentsResource(AsyncAPIResource):
1766
1597
  Delete an agent.
1767
1598
 
1768
1599
  Args:
1600
+ agent_id: The ID of the agent in the format 'agent-<uuid4>'
1601
+
1769
1602
  extra_headers: Send extra headers
1770
1603
 
1771
1604
  extra_query: Add additional query parameters to the request
@@ -1803,7 +1636,7 @@ class AsyncAgentsResource(AsyncAPIResource):
1803
1636
  cast_to=int,
1804
1637
  )
1805
1638
 
1806
- async def export(
1639
+ async def export_file(
1807
1640
  self,
1808
1641
  agent_id: str,
1809
1642
  *,
@@ -1820,15 +1653,10 @@ class AsyncAgentsResource(AsyncAPIResource):
1820
1653
  Export the serialized JSON representation of an agent, formatted with
1821
1654
  indentation.
1822
1655
 
1823
- Supports two export formats:
1824
-
1825
- - Legacy format (use_legacy_format=true): Single agent with inline tools/blocks
1826
- - New format (default): Multi-entity format with separate agents, tools, blocks,
1827
- files, etc.
1828
-
1829
1656
  Args:
1830
- use_legacy_format: If true, exports using the legacy single-agent format (v1). If false, exports
1831
- using the new multi-entity format (v2).
1657
+ use_legacy_format: If True, exports using the legacy single-agent 'v1' format with inline
1658
+ tools/blocks. If False, exports using the new multi-entity 'v2' format, with
1659
+ separate agents, tools, blocks, files, etc.
1832
1660
 
1833
1661
  extra_headers: Send extra headers
1834
1662
 
@@ -1852,13 +1680,13 @@ class AsyncAgentsResource(AsyncAPIResource):
1852
1680
  "max_steps": max_steps,
1853
1681
  "use_legacy_format": use_legacy_format,
1854
1682
  },
1855
- agent_export_params.AgentExportParams,
1683
+ agent_export_file_params.AgentExportFileParams,
1856
1684
  ),
1857
1685
  ),
1858
1686
  cast_to=str,
1859
1687
  )
1860
1688
 
1861
- async def import_(
1689
+ async def import_file(
1862
1690
  self,
1863
1691
  *,
1864
1692
  file: FileTypes,
@@ -1866,6 +1694,7 @@ class AsyncAgentsResource(AsyncAPIResource):
1866
1694
  env_vars_json: Optional[str] | Omit = omit,
1867
1695
  override_embedding_handle: Optional[str] | Omit = omit,
1868
1696
  override_existing_tools: bool | Omit = omit,
1697
+ override_name: Optional[str] | Omit = omit,
1869
1698
  project_id: Optional[str] | Omit = omit,
1870
1699
  strip_messages: bool | Omit = omit,
1871
1700
  x_override_embedding_model: str | Omit = omit,
@@ -1875,7 +1704,7 @@ class AsyncAgentsResource(AsyncAPIResource):
1875
1704
  extra_query: Query | None = None,
1876
1705
  extra_body: Body | None = None,
1877
1706
  timeout: float | httpx.Timeout | None | NotGiven = not_given,
1878
- ) -> AgentImportResponse:
1707
+ ) -> AgentImportFileResponse:
1879
1708
  """Import a serialized agent file and recreate the agent(s) in the system.
1880
1709
 
1881
1710
  Returns
@@ -1892,6 +1721,8 @@ class AsyncAgentsResource(AsyncAPIResource):
1892
1721
  uploaded tool definitions. Note that Letta core tools can never be updated
1893
1722
  externally.
1894
1723
 
1724
+ override_name: If provided, overrides the agent name with this value.
1725
+
1895
1726
  project_id: The project ID to associate the uploaded agent with.
1896
1727
 
1897
1728
  strip_messages: If set to True, strips all messages from the agent before importing.
@@ -1915,6 +1746,7 @@ class AsyncAgentsResource(AsyncAPIResource):
1915
1746
  "env_vars_json": env_vars_json,
1916
1747
  "override_embedding_handle": override_embedding_handle,
1917
1748
  "override_existing_tools": override_existing_tools,
1749
+ "override_name": override_name,
1918
1750
  "project_id": project_id,
1919
1751
  "strip_messages": strip_messages,
1920
1752
  }
@@ -1926,274 +1758,12 @@ class AsyncAgentsResource(AsyncAPIResource):
1926
1758
  extra_headers = {"Content-Type": "multipart/form-data", **(extra_headers or {})}
1927
1759
  return await self._post(
1928
1760
  "/v1/agents/import",
1929
- body=await async_maybe_transform(body, agent_import_params.AgentImportParams),
1761
+ body=await async_maybe_transform(body, agent_import_file_params.AgentImportFileParams),
1930
1762
  files=files,
1931
1763
  options=make_request_options(
1932
1764
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
1933
1765
  ),
1934
- cast_to=AgentImportResponse,
1935
- )
1936
-
1937
- async def list_groups(
1938
- self,
1939
- agent_id: str,
1940
- *,
1941
- manager_type: Optional[str] | Omit = omit,
1942
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1943
- # The extra values given here take precedence over values defined on the client or passed to this method.
1944
- extra_headers: Headers | None = None,
1945
- extra_query: Query | None = None,
1946
- extra_body: Body | None = None,
1947
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
1948
- ) -> AgentListGroupsResponse:
1949
- """
1950
- Lists the groups for an agent
1951
-
1952
- Args:
1953
- manager_type: Manager type to filter groups by
1954
-
1955
- extra_headers: Send extra headers
1956
-
1957
- extra_query: Add additional query parameters to the request
1958
-
1959
- extra_body: Add additional JSON properties to the request
1960
-
1961
- timeout: Override the client-level default timeout for this request, in seconds
1962
- """
1963
- if not agent_id:
1964
- raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
1965
- return await self._get(
1966
- f"/v1/agents/{agent_id}/groups",
1967
- options=make_request_options(
1968
- extra_headers=extra_headers,
1969
- extra_query=extra_query,
1970
- extra_body=extra_body,
1971
- timeout=timeout,
1972
- query=await async_maybe_transform(
1973
- {"manager_type": manager_type}, agent_list_groups_params.AgentListGroupsParams
1974
- ),
1975
- ),
1976
- cast_to=AgentListGroupsResponse,
1977
- )
1978
-
1979
- async def migrate(
1980
- self,
1981
- agent_id: str,
1982
- *,
1983
- preserve_core_memories: bool,
1984
- to_template: str,
1985
- preserve_tool_variables: bool | Omit = omit,
1986
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
1987
- # The extra values given here take precedence over values defined on the client or passed to this method.
1988
- extra_headers: Headers | None = None,
1989
- extra_query: Query | None = None,
1990
- extra_body: Body | None = None,
1991
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
1992
- ) -> AgentMigrateResponse:
1993
- """Migrate an agent to a new versioned agent template.
1994
-
1995
- This will only work for
1996
- "classic" and non-multiagent agent templates.
1997
-
1998
- Args:
1999
- preserve_tool_variables: If true, preserves the existing agent's tool environment variables instead of
2000
- using the template's variables
2001
-
2002
- extra_headers: Send extra headers
2003
-
2004
- extra_query: Add additional query parameters to the request
2005
-
2006
- extra_body: Add additional JSON properties to the request
2007
-
2008
- timeout: Override the client-level default timeout for this request, in seconds
2009
- """
2010
- if not agent_id:
2011
- raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
2012
- return await self._post(
2013
- f"/v1/agents/{agent_id}/migrate",
2014
- body=await async_maybe_transform(
2015
- {
2016
- "preserve_core_memories": preserve_core_memories,
2017
- "to_template": to_template,
2018
- "preserve_tool_variables": preserve_tool_variables,
2019
- },
2020
- agent_migrate_params.AgentMigrateParams,
2021
- ),
2022
- options=make_request_options(
2023
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
2024
- ),
2025
- cast_to=AgentMigrateResponse,
2026
- )
2027
-
2028
- async def reset_messages(
2029
- self,
2030
- agent_id: str,
2031
- *,
2032
- add_default_initial_messages: bool | Omit = omit,
2033
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
2034
- # The extra values given here take precedence over values defined on the client or passed to this method.
2035
- extra_headers: Headers | None = None,
2036
- extra_query: Query | None = None,
2037
- extra_body: Body | None = None,
2038
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
2039
- ) -> AgentState:
2040
- """
2041
- Resets the messages for an agent
2042
-
2043
- Args:
2044
- add_default_initial_messages: If true, adds the default initial messages after resetting.
2045
-
2046
- extra_headers: Send extra headers
2047
-
2048
- extra_query: Add additional query parameters to the request
2049
-
2050
- extra_body: Add additional JSON properties to the request
2051
-
2052
- timeout: Override the client-level default timeout for this request, in seconds
2053
- """
2054
- if not agent_id:
2055
- raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
2056
- return await self._patch(
2057
- f"/v1/agents/{agent_id}/reset-messages",
2058
- options=make_request_options(
2059
- extra_headers=extra_headers,
2060
- extra_query=extra_query,
2061
- extra_body=extra_body,
2062
- timeout=timeout,
2063
- query=await async_maybe_transform(
2064
- {"add_default_initial_messages": add_default_initial_messages},
2065
- agent_reset_messages_params.AgentResetMessagesParams,
2066
- ),
2067
- ),
2068
- cast_to=AgentState,
2069
- )
2070
-
2071
- async def retrieve_context(
2072
- self,
2073
- agent_id: str,
2074
- *,
2075
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
2076
- # The extra values given here take precedence over values defined on the client or passed to this method.
2077
- extra_headers: Headers | None = None,
2078
- extra_query: Query | None = None,
2079
- extra_body: Body | None = None,
2080
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
2081
- ) -> AgentRetrieveContextResponse:
2082
- """
2083
- Retrieve the context window of a specific agent.
2084
-
2085
- Args:
2086
- extra_headers: Send extra headers
2087
-
2088
- extra_query: Add additional query parameters to the request
2089
-
2090
- extra_body: Add additional JSON properties to the request
2091
-
2092
- timeout: Override the client-level default timeout for this request, in seconds
2093
- """
2094
- if not agent_id:
2095
- raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
2096
- return await self._get(
2097
- f"/v1/agents/{agent_id}/context",
2098
- options=make_request_options(
2099
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
2100
- ),
2101
- cast_to=AgentRetrieveContextResponse,
2102
- )
2103
-
2104
- async def search(
2105
- self,
2106
- *,
2107
- after: Optional[str] | Omit = omit,
2108
- ascending: bool | Omit = omit,
2109
- combinator: Literal["AND"] | Omit = omit,
2110
- limit: float | Omit = omit,
2111
- project_id: str | Omit = omit,
2112
- search: Iterable[agent_search_params.Search] | Omit = omit,
2113
- sort_by: Literal["created_at", "last_run_completion"] | Omit = omit,
2114
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
2115
- # The extra values given here take precedence over values defined on the client or passed to this method.
2116
- extra_headers: Headers | None = None,
2117
- extra_query: Query | None = None,
2118
- extra_body: Body | None = None,
2119
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
2120
- ) -> AgentSearchResponse:
2121
- """
2122
- Search deployed agents
2123
-
2124
- Args:
2125
- extra_headers: Send extra headers
2126
-
2127
- extra_query: Add additional query parameters to the request
2128
-
2129
- extra_body: Add additional JSON properties to the request
2130
-
2131
- timeout: Override the client-level default timeout for this request, in seconds
2132
- """
2133
- return await self._post(
2134
- "/v1/agents/search",
2135
- body=await async_maybe_transform(
2136
- {
2137
- "after": after,
2138
- "ascending": ascending,
2139
- "combinator": combinator,
2140
- "limit": limit,
2141
- "project_id": project_id,
2142
- "search": search,
2143
- "sort_by": sort_by,
2144
- },
2145
- agent_search_params.AgentSearchParams,
2146
- ),
2147
- options=make_request_options(
2148
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
2149
- ),
2150
- cast_to=AgentSearchResponse,
2151
- )
2152
-
2153
- async def summarize(
2154
- self,
2155
- agent_id: str,
2156
- *,
2157
- max_message_length: int,
2158
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
2159
- # The extra values given here take precedence over values defined on the client or passed to this method.
2160
- extra_headers: Headers | None = None,
2161
- extra_query: Query | None = None,
2162
- extra_body: Body | None = None,
2163
- timeout: float | httpx.Timeout | None | NotGiven = not_given,
2164
- ) -> None:
2165
- """
2166
- Summarize an agent's conversation history to a target message length.
2167
-
2168
- This endpoint summarizes the current message history for a given agent,
2169
- truncating and compressing it down to the specified `max_message_length`.
2170
-
2171
- Args:
2172
- max_message_length: Maximum number of messages to retain after summarization.
2173
-
2174
- extra_headers: Send extra headers
2175
-
2176
- extra_query: Add additional query parameters to the request
2177
-
2178
- extra_body: Add additional JSON properties to the request
2179
-
2180
- timeout: Override the client-level default timeout for this request, in seconds
2181
- """
2182
- if not agent_id:
2183
- raise ValueError(f"Expected a non-empty value for `agent_id` but received {agent_id!r}")
2184
- extra_headers = {"Accept": "*/*", **(extra_headers or {})}
2185
- return await self._post(
2186
- f"/v1/agents/{agent_id}/summarize",
2187
- options=make_request_options(
2188
- extra_headers=extra_headers,
2189
- extra_query=extra_query,
2190
- extra_body=extra_body,
2191
- timeout=timeout,
2192
- query=await async_maybe_transform(
2193
- {"max_message_length": max_message_length}, agent_summarize_params.AgentSummarizeParams
2194
- ),
2195
- ),
2196
- cast_to=NoneType,
1766
+ cast_to=AgentImportFileResponse,
2197
1767
  )
2198
1768
 
2199
1769
 
@@ -2219,39 +1789,17 @@ class AgentsResourceWithRawResponse:
2219
1789
  self.count = to_raw_response_wrapper(
2220
1790
  agents.count,
2221
1791
  )
2222
- self.export = to_raw_response_wrapper(
2223
- agents.export,
2224
- )
2225
- self.import_ = to_raw_response_wrapper(
2226
- agents.import_,
2227
- )
2228
- self.list_groups = to_raw_response_wrapper(
2229
- agents.list_groups,
2230
- )
2231
- self.migrate = to_raw_response_wrapper(
2232
- agents.migrate,
1792
+ self.export_file = to_raw_response_wrapper(
1793
+ agents.export_file,
2233
1794
  )
2234
- self.reset_messages = to_raw_response_wrapper(
2235
- agents.reset_messages,
2236
- )
2237
- self.retrieve_context = to_raw_response_wrapper(
2238
- agents.retrieve_context,
2239
- )
2240
- self.search = to_raw_response_wrapper(
2241
- agents.search,
2242
- )
2243
- self.summarize = to_raw_response_wrapper(
2244
- agents.summarize,
1795
+ self.import_file = to_raw_response_wrapper(
1796
+ agents.import_file,
2245
1797
  )
2246
1798
 
2247
1799
  @cached_property
2248
1800
  def tools(self) -> ToolsResourceWithRawResponse:
2249
1801
  return ToolsResourceWithRawResponse(self._agents.tools)
2250
1802
 
2251
- @cached_property
2252
- def sources(self) -> SourcesResourceWithRawResponse:
2253
- return SourcesResourceWithRawResponse(self._agents.sources)
2254
-
2255
1803
  @cached_property
2256
1804
  def folders(self) -> FoldersResourceWithRawResponse:
2257
1805
  return FoldersResourceWithRawResponse(self._agents.folders)
@@ -2261,12 +1809,12 @@ class AgentsResourceWithRawResponse:
2261
1809
  return FilesResourceWithRawResponse(self._agents.files)
2262
1810
 
2263
1811
  @cached_property
2264
- def core_memory(self) -> CoreMemoryResourceWithRawResponse:
2265
- return CoreMemoryResourceWithRawResponse(self._agents.core_memory)
1812
+ def blocks(self) -> BlocksResourceWithRawResponse:
1813
+ return BlocksResourceWithRawResponse(self._agents.blocks)
2266
1814
 
2267
1815
  @cached_property
2268
- def archival_memory(self) -> ArchivalMemoryResourceWithRawResponse:
2269
- return ArchivalMemoryResourceWithRawResponse(self._agents.archival_memory)
1816
+ def groups(self) -> GroupsResourceWithRawResponse:
1817
+ return GroupsResourceWithRawResponse(self._agents.groups)
2270
1818
 
2271
1819
  @cached_property
2272
1820
  def messages(self) -> MessagesResourceWithRawResponse:
@@ -2295,39 +1843,17 @@ class AsyncAgentsResourceWithRawResponse:
2295
1843
  self.count = async_to_raw_response_wrapper(
2296
1844
  agents.count,
2297
1845
  )
2298
- self.export = async_to_raw_response_wrapper(
2299
- agents.export,
2300
- )
2301
- self.import_ = async_to_raw_response_wrapper(
2302
- agents.import_,
2303
- )
2304
- self.list_groups = async_to_raw_response_wrapper(
2305
- agents.list_groups,
2306
- )
2307
- self.migrate = async_to_raw_response_wrapper(
2308
- agents.migrate,
1846
+ self.export_file = async_to_raw_response_wrapper(
1847
+ agents.export_file,
2309
1848
  )
2310
- self.reset_messages = async_to_raw_response_wrapper(
2311
- agents.reset_messages,
2312
- )
2313
- self.retrieve_context = async_to_raw_response_wrapper(
2314
- agents.retrieve_context,
2315
- )
2316
- self.search = async_to_raw_response_wrapper(
2317
- agents.search,
2318
- )
2319
- self.summarize = async_to_raw_response_wrapper(
2320
- agents.summarize,
1849
+ self.import_file = async_to_raw_response_wrapper(
1850
+ agents.import_file,
2321
1851
  )
2322
1852
 
2323
1853
  @cached_property
2324
1854
  def tools(self) -> AsyncToolsResourceWithRawResponse:
2325
1855
  return AsyncToolsResourceWithRawResponse(self._agents.tools)
2326
1856
 
2327
- @cached_property
2328
- def sources(self) -> AsyncSourcesResourceWithRawResponse:
2329
- return AsyncSourcesResourceWithRawResponse(self._agents.sources)
2330
-
2331
1857
  @cached_property
2332
1858
  def folders(self) -> AsyncFoldersResourceWithRawResponse:
2333
1859
  return AsyncFoldersResourceWithRawResponse(self._agents.folders)
@@ -2337,12 +1863,12 @@ class AsyncAgentsResourceWithRawResponse:
2337
1863
  return AsyncFilesResourceWithRawResponse(self._agents.files)
2338
1864
 
2339
1865
  @cached_property
2340
- def core_memory(self) -> AsyncCoreMemoryResourceWithRawResponse:
2341
- return AsyncCoreMemoryResourceWithRawResponse(self._agents.core_memory)
1866
+ def blocks(self) -> AsyncBlocksResourceWithRawResponse:
1867
+ return AsyncBlocksResourceWithRawResponse(self._agents.blocks)
2342
1868
 
2343
1869
  @cached_property
2344
- def archival_memory(self) -> AsyncArchivalMemoryResourceWithRawResponse:
2345
- return AsyncArchivalMemoryResourceWithRawResponse(self._agents.archival_memory)
1870
+ def groups(self) -> AsyncGroupsResourceWithRawResponse:
1871
+ return AsyncGroupsResourceWithRawResponse(self._agents.groups)
2346
1872
 
2347
1873
  @cached_property
2348
1874
  def messages(self) -> AsyncMessagesResourceWithRawResponse:
@@ -2371,39 +1897,17 @@ class AgentsResourceWithStreamingResponse:
2371
1897
  self.count = to_streamed_response_wrapper(
2372
1898
  agents.count,
2373
1899
  )
2374
- self.export = to_streamed_response_wrapper(
2375
- agents.export,
2376
- )
2377
- self.import_ = to_streamed_response_wrapper(
2378
- agents.import_,
2379
- )
2380
- self.list_groups = to_streamed_response_wrapper(
2381
- agents.list_groups,
1900
+ self.export_file = to_streamed_response_wrapper(
1901
+ agents.export_file,
2382
1902
  )
2383
- self.migrate = to_streamed_response_wrapper(
2384
- agents.migrate,
2385
- )
2386
- self.reset_messages = to_streamed_response_wrapper(
2387
- agents.reset_messages,
2388
- )
2389
- self.retrieve_context = to_streamed_response_wrapper(
2390
- agents.retrieve_context,
2391
- )
2392
- self.search = to_streamed_response_wrapper(
2393
- agents.search,
2394
- )
2395
- self.summarize = to_streamed_response_wrapper(
2396
- agents.summarize,
1903
+ self.import_file = to_streamed_response_wrapper(
1904
+ agents.import_file,
2397
1905
  )
2398
1906
 
2399
1907
  @cached_property
2400
1908
  def tools(self) -> ToolsResourceWithStreamingResponse:
2401
1909
  return ToolsResourceWithStreamingResponse(self._agents.tools)
2402
1910
 
2403
- @cached_property
2404
- def sources(self) -> SourcesResourceWithStreamingResponse:
2405
- return SourcesResourceWithStreamingResponse(self._agents.sources)
2406
-
2407
1911
  @cached_property
2408
1912
  def folders(self) -> FoldersResourceWithStreamingResponse:
2409
1913
  return FoldersResourceWithStreamingResponse(self._agents.folders)
@@ -2413,12 +1917,12 @@ class AgentsResourceWithStreamingResponse:
2413
1917
  return FilesResourceWithStreamingResponse(self._agents.files)
2414
1918
 
2415
1919
  @cached_property
2416
- def core_memory(self) -> CoreMemoryResourceWithStreamingResponse:
2417
- return CoreMemoryResourceWithStreamingResponse(self._agents.core_memory)
1920
+ def blocks(self) -> BlocksResourceWithStreamingResponse:
1921
+ return BlocksResourceWithStreamingResponse(self._agents.blocks)
2418
1922
 
2419
1923
  @cached_property
2420
- def archival_memory(self) -> ArchivalMemoryResourceWithStreamingResponse:
2421
- return ArchivalMemoryResourceWithStreamingResponse(self._agents.archival_memory)
1924
+ def groups(self) -> GroupsResourceWithStreamingResponse:
1925
+ return GroupsResourceWithStreamingResponse(self._agents.groups)
2422
1926
 
2423
1927
  @cached_property
2424
1928
  def messages(self) -> MessagesResourceWithStreamingResponse:
@@ -2447,39 +1951,17 @@ class AsyncAgentsResourceWithStreamingResponse:
2447
1951
  self.count = async_to_streamed_response_wrapper(
2448
1952
  agents.count,
2449
1953
  )
2450
- self.export = async_to_streamed_response_wrapper(
2451
- agents.export,
2452
- )
2453
- self.import_ = async_to_streamed_response_wrapper(
2454
- agents.import_,
1954
+ self.export_file = async_to_streamed_response_wrapper(
1955
+ agents.export_file,
2455
1956
  )
2456
- self.list_groups = async_to_streamed_response_wrapper(
2457
- agents.list_groups,
2458
- )
2459
- self.migrate = async_to_streamed_response_wrapper(
2460
- agents.migrate,
2461
- )
2462
- self.reset_messages = async_to_streamed_response_wrapper(
2463
- agents.reset_messages,
2464
- )
2465
- self.retrieve_context = async_to_streamed_response_wrapper(
2466
- agents.retrieve_context,
2467
- )
2468
- self.search = async_to_streamed_response_wrapper(
2469
- agents.search,
2470
- )
2471
- self.summarize = async_to_streamed_response_wrapper(
2472
- agents.summarize,
1957
+ self.import_file = async_to_streamed_response_wrapper(
1958
+ agents.import_file,
2473
1959
  )
2474
1960
 
2475
1961
  @cached_property
2476
1962
  def tools(self) -> AsyncToolsResourceWithStreamingResponse:
2477
1963
  return AsyncToolsResourceWithStreamingResponse(self._agents.tools)
2478
1964
 
2479
- @cached_property
2480
- def sources(self) -> AsyncSourcesResourceWithStreamingResponse:
2481
- return AsyncSourcesResourceWithStreamingResponse(self._agents.sources)
2482
-
2483
1965
  @cached_property
2484
1966
  def folders(self) -> AsyncFoldersResourceWithStreamingResponse:
2485
1967
  return AsyncFoldersResourceWithStreamingResponse(self._agents.folders)
@@ -2489,12 +1971,12 @@ class AsyncAgentsResourceWithStreamingResponse:
2489
1971
  return AsyncFilesResourceWithStreamingResponse(self._agents.files)
2490
1972
 
2491
1973
  @cached_property
2492
- def core_memory(self) -> AsyncCoreMemoryResourceWithStreamingResponse:
2493
- return AsyncCoreMemoryResourceWithStreamingResponse(self._agents.core_memory)
1974
+ def blocks(self) -> AsyncBlocksResourceWithStreamingResponse:
1975
+ return AsyncBlocksResourceWithStreamingResponse(self._agents.blocks)
2494
1976
 
2495
1977
  @cached_property
2496
- def archival_memory(self) -> AsyncArchivalMemoryResourceWithStreamingResponse:
2497
- return AsyncArchivalMemoryResourceWithStreamingResponse(self._agents.archival_memory)
1978
+ def groups(self) -> AsyncGroupsResourceWithStreamingResponse:
1979
+ return AsyncGroupsResourceWithStreamingResponse(self._agents.groups)
2498
1980
 
2499
1981
  @cached_property
2500
1982
  def messages(self) -> AsyncMessagesResourceWithStreamingResponse: