letta-client 0.1.22__py3-none-any.whl → 0.1.23__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 (250) hide show
  1. letta_client/__init__.py +464 -7
  2. letta_client/agents/__init__.py +1 -2
  3. letta_client/agents/messages/__init__.py +2 -2
  4. letta_client/agents/messages/client.py +114 -63
  5. letta_client/agents/messages/types/__init__.py +1 -2
  6. letta_client/base_client.py +4 -0
  7. letta_client/core/client_wrapper.py +1 -1
  8. letta_client/templates/__init__.py +335 -0
  9. letta_client/templates/client.py +188 -0
  10. letta_client/templates/types/__init__.py +659 -0
  11. letta_client/templates/types/templates_create_agents_from_template_response.py +22 -0
  12. letta_client/templates/types/templates_create_agents_from_template_response_agents_item.py +88 -0
  13. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_agent_type.py +7 -0
  14. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_at.py +13 -0
  15. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_at_item.py +5 -0
  16. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_by_id.py +13 -0
  17. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_created_by_id_item.py +5 -0
  18. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_description.py +13 -0
  19. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_description_item.py +5 -0
  20. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config.py +58 -0
  21. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_deployment.py +13 -0
  22. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_deployment_item.py +7 -0
  23. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_endpoint.py +13 -0
  24. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_endpoint_item.py +7 -0
  25. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_version.py +13 -0
  26. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_azure_version_item.py +7 -0
  27. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_chunk_size.py +15 -0
  28. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_chunk_size_item.py +7 -0
  29. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_endpoint.py +15 -0
  30. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_endpoint_item.py +7 -0
  31. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_embedding_endpoint_type.py +27 -0
  32. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_handle.py +13 -0
  33. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_embedding_config_handle_item.py +5 -0
  34. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_updated_by_id.py +13 -0
  35. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_last_updated_by_id_item.py +5 -0
  36. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config.py +46 -0
  37. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_handle.py +13 -0
  38. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_handle_item.py +5 -0
  39. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_endpoint.py +13 -0
  40. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_endpoint_item.py +5 -0
  41. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_endpoint_type.py +27 -0
  42. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_wrapper.py +13 -0
  43. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_model_wrapper_item.py +5 -0
  44. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_put_inner_thoughts_in_kwargs.py +15 -0
  45. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_put_inner_thoughts_in_kwargs_item.py +7 -0
  46. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_llm_config_temperature.py +7 -0
  47. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory.py +26 -0
  48. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item.py +65 -0
  49. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_created_by_id.py +13 -0
  50. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_created_by_id_item.py +7 -0
  51. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_description.py +13 -0
  52. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_description_item.py +7 -0
  53. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_id.py +5 -0
  54. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_is_template.py +7 -0
  55. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_label.py +13 -0
  56. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_label_item.py +5 -0
  57. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_last_updated_by_id.py +15 -0
  58. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_last_updated_by_id_item.py +7 -0
  59. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_limit.py +7 -0
  60. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_metadata.py +12 -0
  61. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_metadata_item.py +7 -0
  62. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_name.py +13 -0
  63. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_name_item.py +5 -0
  64. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_organization_id.py +13 -0
  65. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_blocks_item_organization_id_item.py +7 -0
  66. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_memory_prompt_template.py +5 -0
  67. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_message_ids.py +13 -0
  68. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_message_ids_item.py +5 -0
  69. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_metadata.py +12 -0
  70. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_metadata_item.py +7 -0
  71. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_organization_id.py +13 -0
  72. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_organization_id_item.py +5 -0
  73. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item.py +59 -0
  74. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_at.py +13 -0
  75. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_at_item.py +5 -0
  76. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_by_id.py +13 -0
  77. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_created_by_id_item.py +5 -0
  78. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_description.py +13 -0
  79. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_description_item.py +5 -0
  80. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config.py +60 -0
  81. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_deployment.py +17 -0
  82. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_deployment_item.py +7 -0
  83. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_endpoint.py +15 -0
  84. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_endpoint_item.py +7 -0
  85. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_version.py +15 -0
  86. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_azure_version_item.py +7 -0
  87. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_chunk_size.py +17 -0
  88. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_chunk_size_item.py +7 -0
  89. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_endpoint.py +17 -0
  90. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_endpoint_item.py +7 -0
  91. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_embedding_endpoint_type.py +27 -0
  92. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_handle.py +15 -0
  93. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_embedding_config_handle_item.py +7 -0
  94. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_id.py +5 -0
  95. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_last_updated_by_id.py +13 -0
  96. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_last_updated_by_id_item.py +7 -0
  97. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_metadata.py +12 -0
  98. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_metadata_item.py +7 -0
  99. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_organization_id.py +13 -0
  100. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_organization_id_item.py +7 -0
  101. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_updated_at.py +13 -0
  102. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_sources_item_updated_at_item.py +5 -0
  103. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables.py +11 -0
  104. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item.py +61 -0
  105. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_at.py +17 -0
  106. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_at_item.py +7 -0
  107. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_by_id.py +17 -0
  108. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_created_by_id_item.py +7 -0
  109. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_description.py +17 -0
  110. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_description_item.py +7 -0
  111. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_id.py +7 -0
  112. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_last_updated_by_id.py +17 -0
  113. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_last_updated_by_id_item.py +7 -0
  114. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_organization_id.py +17 -0
  115. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_organization_id_item.py +7 -0
  116. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_updated_at.py +17 -0
  117. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_exec_environment_variables_item_updated_at_item.py +7 -0
  118. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules.py +13 -0
  119. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item.py +10 -0
  120. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping.py +36 -0
  121. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_default_child.py +17 -0
  122. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_default_child_item.py +7 -0
  123. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_require_output_mapping.py +7 -0
  124. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_child_output_mapping_type.py +13 -0
  125. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_children.py +24 -0
  126. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_children_type.py +13 -0
  127. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item.py +26 -0
  128. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping.py +38 -0
  129. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_default_child.py +17 -0
  130. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_default_child_item.py +7 -0
  131. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_require_output_mapping.py +7 -0
  132. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_child_output_mapping_type.py +13 -0
  133. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_children.py +24 -0
  134. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_children_type.py +13 -0
  135. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item.py +22 -0
  136. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_child_output_mapping.py +38 -0
  137. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_child_output_mapping_default_child.py +17 -0
  138. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_child_output_mapping_default_child_item.py +7 -0
  139. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_child_output_mapping_require_output_mapping.py +7 -0
  140. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_child_output_mapping_type.py +13 -0
  141. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_children.py +24 -0
  142. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_children_type.py +13 -0
  143. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_one.py +23 -0
  144. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_one_type.py +13 -0
  145. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_two.py +23 -0
  146. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_item_two_type.py +13 -0
  147. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_one.py +23 -0
  148. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_one_type.py +13 -0
  149. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two.py +23 -0
  150. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_item_two_type.py +13 -0
  151. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_one.py +23 -0
  152. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_one_type.py +13 -0
  153. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two.py +23 -0
  154. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tool_rules_item_two_type.py +13 -0
  155. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item.py +59 -0
  156. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_created_by_id.py +12 -0
  157. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_created_by_id_item.py +5 -0
  158. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_description.py +12 -0
  159. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_description_item.py +5 -0
  160. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_json_schema.py +12 -0
  161. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_json_schema_item.py +7 -0
  162. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_last_updated_by_id.py +12 -0
  163. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_last_updated_by_id_item.py +7 -0
  164. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_name.py +12 -0
  165. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_name_item.py +5 -0
  166. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_organization_id.py +12 -0
  167. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_organization_id_item.py +5 -0
  168. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_code.py +12 -0
  169. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_code_item.py +5 -0
  170. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_type.py +12 -0
  171. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_source_type_item.py +5 -0
  172. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_tools_item_tool_type.py +8 -0
  173. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_updated_at.py +13 -0
  174. letta_client/templates/types/templates_create_agents_from_template_response_agents_item_updated_at_item.py +5 -0
  175. letta_client/types/__init__.py +138 -6
  176. letta_client/types/action_model.py +6 -4
  177. letta_client/types/audio.py +19 -0
  178. letta_client/types/chat_completion_assistant_message_param.py +29 -0
  179. letta_client/types/chat_completion_assistant_message_param_content.py +8 -0
  180. letta_client/types/chat_completion_assistant_message_param_content_item.py +9 -0
  181. letta_client/types/chat_completion_audio_param.py +22 -0
  182. letta_client/types/chat_completion_audio_param_format.py +5 -0
  183. letta_client/types/chat_completion_audio_param_voice.py +7 -0
  184. letta_client/types/chat_completion_content_part_image_param.py +21 -0
  185. letta_client/types/chat_completion_content_part_input_audio_param.py +21 -0
  186. letta_client/types/chat_completion_content_part_refusal_param.py +20 -0
  187. letta_client/types/chat_completion_content_part_text_param.py +20 -0
  188. letta_client/types/chat_completion_developer_message_param.py +22 -0
  189. letta_client/types/chat_completion_developer_message_param_content.py +6 -0
  190. letta_client/types/chat_completion_function_call_option_param.py +19 -0
  191. letta_client/types/chat_completion_function_message_param.py +21 -0
  192. letta_client/types/chat_completion_message_tool_call_input.py +24 -0
  193. letta_client/types/{chat_completion_message_tool_call.py → chat_completion_message_tool_call_output.py} +3 -3
  194. letta_client/types/chat_completion_message_tool_call_param.py +24 -0
  195. letta_client/types/chat_completion_named_tool_choice_param.py +23 -0
  196. letta_client/types/chat_completion_prediction_content_param.py +21 -0
  197. letta_client/types/chat_completion_prediction_content_param_content.py +6 -0
  198. letta_client/types/chat_completion_stream_options_param.py +19 -0
  199. letta_client/types/chat_completion_system_message_param.py +22 -0
  200. letta_client/types/chat_completion_system_message_param_content.py +6 -0
  201. letta_client/types/chat_completion_tool_message_param.py +22 -0
  202. letta_client/types/chat_completion_tool_message_param_content.py +6 -0
  203. letta_client/types/chat_completion_tool_param.py +21 -0
  204. letta_client/types/chat_completion_user_message_param.py +22 -0
  205. letta_client/types/chat_completion_user_message_param_content.py +6 -0
  206. letta_client/types/chat_completion_user_message_param_content_item.py +10 -0
  207. letta_client/types/completion_create_params_non_streaming.py +62 -0
  208. letta_client/types/completion_create_params_non_streaming_function_call.py +8 -0
  209. letta_client/types/completion_create_params_non_streaming_messages_item.py +18 -0
  210. letta_client/types/completion_create_params_non_streaming_modalities_item.py +5 -0
  211. letta_client/types/completion_create_params_non_streaming_model.py +44 -0
  212. letta_client/types/completion_create_params_non_streaming_reasoning_effort.py +5 -0
  213. letta_client/types/completion_create_params_non_streaming_response_format.py +10 -0
  214. letta_client/types/completion_create_params_non_streaming_service_tier.py +5 -0
  215. letta_client/types/completion_create_params_non_streaming_stop.py +5 -0
  216. letta_client/types/completion_create_params_non_streaming_tool_choice.py +8 -0
  217. letta_client/types/completion_create_params_streaming.py +62 -0
  218. letta_client/types/completion_create_params_streaming_function_call.py +8 -0
  219. letta_client/types/completion_create_params_streaming_messages_item.py +18 -0
  220. letta_client/types/completion_create_params_streaming_modalities_item.py +5 -0
  221. letta_client/types/completion_create_params_streaming_model.py +44 -0
  222. letta_client/types/completion_create_params_streaming_reasoning_effort.py +5 -0
  223. letta_client/types/completion_create_params_streaming_response_format.py +10 -0
  224. letta_client/types/completion_create_params_streaming_service_tier.py +5 -0
  225. letta_client/types/completion_create_params_streaming_stop.py +5 -0
  226. letta_client/types/completion_create_params_streaming_tool_choice.py +8 -0
  227. letta_client/types/{function.py → function_call.py} +1 -1
  228. letta_client/types/{function_definition.py → function_definition_input.py} +1 -1
  229. letta_client/types/function_definition_output.py +22 -0
  230. letta_client/types/function_output.py +20 -0
  231. letta_client/types/function_tool.py +2 -2
  232. letta_client/types/image_url.py +21 -0
  233. letta_client/types/image_url_detail.py +5 -0
  234. letta_client/types/input_audio.py +21 -0
  235. letta_client/types/input_audio_format.py +5 -0
  236. letta_client/types/json_schema.py +26 -0
  237. letta_client/types/letta_request.py +12 -3
  238. letta_client/types/message.py +2 -2
  239. letta_client/types/openai_types_chat_chat_completion_message_tool_call_function.py +20 -0
  240. letta_client/types/openai_types_chat_chat_completion_message_tool_call_param_function.py +20 -0
  241. letta_client/types/openai_types_chat_chat_completion_named_tool_choice_param_function.py +19 -0
  242. letta_client/types/openai_types_chat_completion_create_params_function.py +21 -0
  243. letta_client/types/response_format_json_object.py +19 -0
  244. letta_client/types/response_format_json_schema.py +21 -0
  245. letta_client/types/response_format_text.py +19 -0
  246. {letta_client-0.1.22.dist-info → letta_client-0.1.23.dist-info}/METADATA +1 -1
  247. letta_client-0.1.23.dist-info/RECORD +408 -0
  248. letta_client/agents/messages/types/messages_list_response.py +0 -7
  249. letta_client-0.1.22.dist-info/RECORD +0 -179
  250. {letta_client-0.1.22.dist-info → letta_client-0.1.23.dist-info}/WHEEL +0 -0
@@ -0,0 +1,22 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import typing
5
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+ import pydantic
7
+
8
+
9
+ class FunctionDefinitionOutput(UncheckedBaseModel):
10
+ name: str
11
+ description: typing.Optional[str] = None
12
+ parameters: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
13
+ strict: typing.Optional[bool] = None
14
+
15
+ if IS_PYDANTIC_V2:
16
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
17
+ else:
18
+
19
+ class Config:
20
+ frozen = True
21
+ smart_union = True
22
+ extra = pydantic.Extra.allow
@@ -0,0 +1,20 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
5
+ import typing
6
+ import pydantic
7
+
8
+
9
+ class FunctionOutput(UncheckedBaseModel):
10
+ arguments: str
11
+ name: str
12
+
13
+ if IS_PYDANTIC_V2:
14
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
15
+ else:
16
+
17
+ class Config:
18
+ frozen = True
19
+ smart_union = True
20
+ extra = pydantic.Extra.allow
@@ -1,14 +1,14 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  from ..core.unchecked_base_model import UncheckedBaseModel
4
- from .function_definition import FunctionDefinition
4
+ from .function_definition_output import FunctionDefinitionOutput
5
5
  import typing
6
6
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
7
  import pydantic
8
8
 
9
9
 
10
10
  class FunctionTool(UncheckedBaseModel):
11
- function: FunctionDefinition
11
+ function: FunctionDefinitionOutput
12
12
  type: typing.Literal["function"] = "function"
13
13
 
14
14
  if IS_PYDANTIC_V2:
@@ -0,0 +1,21 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import typing
5
+ from .image_url_detail import ImageUrlDetail
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import pydantic
8
+
9
+
10
+ class ImageUrl(UncheckedBaseModel):
11
+ url: str
12
+ detail: typing.Optional[ImageUrlDetail] = None
13
+
14
+ if IS_PYDANTIC_V2:
15
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
16
+ else:
17
+
18
+ class Config:
19
+ frozen = True
20
+ smart_union = True
21
+ extra = pydantic.Extra.allow
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ ImageUrlDetail = typing.Union[typing.Literal["auto", "low", "high"], typing.Any]
@@ -0,0 +1,21 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ from .input_audio_format import InputAudioFormat
5
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+ import typing
7
+ import pydantic
8
+
9
+
10
+ class InputAudio(UncheckedBaseModel):
11
+ data: str
12
+ format: InputAudioFormat
13
+
14
+ if IS_PYDANTIC_V2:
15
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
16
+ else:
17
+
18
+ class Config:
19
+ frozen = True
20
+ smart_union = True
21
+ extra = pydantic.Extra.allow
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ InputAudioFormat = typing.Union[typing.Literal["wav", "mp3"], typing.Any]
@@ -0,0 +1,26 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import typing
5
+ import typing_extensions
6
+ from ..core.serialization import FieldMetadata
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
+ import pydantic
9
+
10
+
11
+ class JsonSchema(UncheckedBaseModel):
12
+ name: str
13
+ description: typing.Optional[str] = None
14
+ schema_: typing_extensions.Annotated[
15
+ typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]], FieldMetadata(alias="schema")
16
+ ] = None
17
+ strict: typing.Optional[bool] = None
18
+
19
+ if IS_PYDANTIC_V2:
20
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
21
+ else:
22
+
23
+ class Config:
24
+ frozen = True
25
+ smart_union = True
26
+ extra = pydantic.Extra.allow
@@ -4,7 +4,6 @@ from ..core.unchecked_base_model import UncheckedBaseModel
4
4
  import typing
5
5
  from .message_create import MessageCreate
6
6
  import pydantic
7
- from .letta_request_config import LettaRequestConfig
8
7
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
8
 
10
9
 
@@ -14,9 +13,19 @@ class LettaRequest(UncheckedBaseModel):
14
13
  The messages to be sent to the agent.
15
14
  """
16
15
 
17
- config: typing.Optional[LettaRequestConfig] = pydantic.Field(default=None)
16
+ use_assistant_message: typing.Optional[bool] = pydantic.Field(default=None)
18
17
  """
19
- Configuration options for the LettaRequest.
18
+ Whether the server should parse specific tool call arguments (default `send_message`) as `AssistantMessage` objects.
19
+ """
20
+
21
+ assistant_message_tool_name: typing.Optional[str] = pydantic.Field(default=None)
22
+ """
23
+ The name of the designated message tool.
24
+ """
25
+
26
+ assistant_message_tool_kwarg: typing.Optional[str] = pydantic.Field(default=None)
27
+ """
28
+ The name of the message argument in the designated message tool.
20
29
  """
21
30
 
22
31
  if IS_PYDANTIC_V2:
@@ -6,7 +6,7 @@ import pydantic
6
6
  import datetime as dt
7
7
  from .message_role import MessageRole
8
8
  from .text_content import TextContent
9
- from .chat_completion_message_tool_call import ChatCompletionMessageToolCall
9
+ from .chat_completion_message_tool_call_output import ChatCompletionMessageToolCallOutput
10
10
  from ..core.pydantic_utilities import IS_PYDANTIC_V2
11
11
 
12
12
 
@@ -77,7 +77,7 @@ class Message(UncheckedBaseModel):
77
77
  The name of the participant.
78
78
  """
79
79
 
80
- tool_calls: typing.Optional[typing.List[ChatCompletionMessageToolCall]] = pydantic.Field(default=None)
80
+ tool_calls: typing.Optional[typing.List[ChatCompletionMessageToolCallOutput]] = pydantic.Field(default=None)
81
81
  """
82
82
  The list of tool calls requested.
83
83
  """
@@ -0,0 +1,20 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
5
+ import typing
6
+ import pydantic
7
+
8
+
9
+ class OpenaiTypesChatChatCompletionMessageToolCallFunction(UncheckedBaseModel):
10
+ arguments: str
11
+ name: str
12
+
13
+ if IS_PYDANTIC_V2:
14
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
15
+ else:
16
+
17
+ class Config:
18
+ frozen = True
19
+ smart_union = True
20
+ extra = pydantic.Extra.allow
@@ -0,0 +1,20 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
5
+ import typing
6
+ import pydantic
7
+
8
+
9
+ class OpenaiTypesChatChatCompletionMessageToolCallParamFunction(UncheckedBaseModel):
10
+ arguments: str
11
+ name: str
12
+
13
+ if IS_PYDANTIC_V2:
14
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
15
+ else:
16
+
17
+ class Config:
18
+ frozen = True
19
+ smart_union = True
20
+ extra = pydantic.Extra.allow
@@ -0,0 +1,19 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
5
+ import typing
6
+ import pydantic
7
+
8
+
9
+ class OpenaiTypesChatChatCompletionNamedToolChoiceParamFunction(UncheckedBaseModel):
10
+ name: str
11
+
12
+ if IS_PYDANTIC_V2:
13
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
14
+ else:
15
+
16
+ class Config:
17
+ frozen = True
18
+ smart_union = True
19
+ extra = pydantic.Extra.allow
@@ -0,0 +1,21 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import typing
5
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+ import pydantic
7
+
8
+
9
+ class OpenaiTypesChatCompletionCreateParamsFunction(UncheckedBaseModel):
10
+ name: str
11
+ description: typing.Optional[str] = None
12
+ parameters: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
13
+
14
+ if IS_PYDANTIC_V2:
15
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
16
+ else:
17
+
18
+ class Config:
19
+ frozen = True
20
+ smart_union = True
21
+ extra = pydantic.Extra.allow
@@ -0,0 +1,19 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import typing
5
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+ import pydantic
7
+
8
+
9
+ class ResponseFormatJsonObject(UncheckedBaseModel):
10
+ type: typing.Literal["json_object"] = "json_object"
11
+
12
+ if IS_PYDANTIC_V2:
13
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
14
+ else:
15
+
16
+ class Config:
17
+ frozen = True
18
+ smart_union = True
19
+ extra = pydantic.Extra.allow
@@ -0,0 +1,21 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ from .json_schema import JsonSchema
5
+ import typing
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import pydantic
8
+
9
+
10
+ class ResponseFormatJsonSchema(UncheckedBaseModel):
11
+ json_schema: JsonSchema
12
+ type: typing.Literal["json_schema"] = "json_schema"
13
+
14
+ if IS_PYDANTIC_V2:
15
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
16
+ else:
17
+
18
+ class Config:
19
+ frozen = True
20
+ smart_union = True
21
+ extra = pydantic.Extra.allow
@@ -0,0 +1,19 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import typing
5
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+ import pydantic
7
+
8
+
9
+ class ResponseFormatText(UncheckedBaseModel):
10
+ type: typing.Literal["text"] = "text"
11
+
12
+ if IS_PYDANTIC_V2:
13
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
14
+ else:
15
+
16
+ class Config:
17
+ frozen = True
18
+ smart_union = True
19
+ extra = pydantic.Extra.allow
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.22
3
+ Version: 0.1.23
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers