letta-client 0.1.2__py3-none-any.whl → 0.1.6__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.
Files changed (65) hide show
  1. letta/__init__.py +40 -34
  2. letta/agents/__init__.py +55 -3
  3. letta/agents/client.py +513 -35
  4. letta/agents/messages/__init__.py +36 -2
  5. letta/agents/messages/client.py +46 -0
  6. letta/agents/messages/types/__init__.py +37 -3
  7. letta/agents/messages/types/letta_streaming_response.py +132 -14
  8. letta/agents/messages/types/messages_list_response_item.py +114 -7
  9. letta/agents/types/__init__.py +36 -2
  10. letta/agents/types/{agents_create_version_response.py → agents_get_agent_variables_response.py} +2 -5
  11. letta/agents/types/agents_search_deployed_agents_request_combinator.py +5 -0
  12. letta/agents/types/agents_search_deployed_agents_request_search_item.py +67 -0
  13. letta/agents/types/agents_search_deployed_agents_request_search_item_name.py +23 -0
  14. letta/agents/types/agents_search_deployed_agents_request_search_item_name_operator.py +7 -0
  15. letta/agents/types/agents_search_deployed_agents_request_search_item_order_by.py +26 -0
  16. letta/agents/types/agents_search_deployed_agents_request_search_item_order_by_direction.py +5 -0
  17. letta/agents/types/agents_search_deployed_agents_request_search_item_order_by_value.py +7 -0
  18. letta/{types/letta_response_tool_call.py → agents/types/agents_search_deployed_agents_request_search_item_version.py} +4 -6
  19. letta/client.py +8 -8
  20. letta/core/client_wrapper.py +7 -18
  21. letta/environment.py +1 -1
  22. letta/types/__init__.py +18 -32
  23. letta/types/agent_environment_variable.py +68 -0
  24. letta/types/agent_state.py +15 -9
  25. letta/types/assistant_message_output.py +1 -2
  26. letta/types/block.py +9 -9
  27. letta/types/context_window_overview.py +5 -0
  28. letta/types/embedding_config.py +13 -8
  29. letta/types/internal_server_error_body.py +1 -1
  30. letta/types/job.py +5 -5
  31. letta/types/letta_response.py +10 -97
  32. letta/types/letta_response_messages_item.py +120 -0
  33. letta/types/letta_schemas_message_message.py +10 -10
  34. letta/types/letta_schemas_tool_tool.py +5 -5
  35. letta/types/letta_usage_statistics.py +4 -4
  36. letta/types/llm_config.py +12 -7
  37. letta/types/not_found_error_body.py +2 -3
  38. letta/types/passage.py +8 -8
  39. letta/types/reasoning_message.py +4 -5
  40. letta/types/sandbox_environment_variable.py +4 -4
  41. letta/types/sandbox_environment_variable_update.py +0 -4
  42. letta/types/source.py +6 -6
  43. letta/types/system_message_output.py +4 -5
  44. letta/types/tool_call_message.py +4 -5
  45. letta/types/tool_return_message.py +8 -9
  46. letta/types/user.py +3 -3
  47. letta/types/user_message_output.py +4 -5
  48. {letta_client-0.1.2.dist-info → letta_client-0.1.6.dist-info}/METADATA +1 -1
  49. {letta_client-0.1.2.dist-info → letta_client-0.1.6.dist-info}/RECORD +50 -56
  50. {letta_client-0.1.2.dist-info → letta_client-0.1.6.dist-info}/WHEEL +1 -1
  51. letta/types/letta_response_assistant_message.py +0 -23
  52. letta/types/letta_response_letta_usage_statistics.py +0 -47
  53. letta/types/letta_response_reasoning_message.py +0 -32
  54. letta/types/letta_response_system_message.py +0 -32
  55. letta/types/letta_response_tool_call_delta.py +0 -21
  56. letta/types/letta_response_tool_call_message.py +0 -33
  57. letta/types/letta_response_tool_call_message_tool_call.py +0 -9
  58. letta/types/letta_response_tool_call_message_tool_call_one.py +0 -21
  59. letta/types/letta_response_tool_call_message_tool_call_zero.py +0 -21
  60. letta/types/letta_response_tool_return_message.py +0 -41
  61. letta/types/letta_response_tool_return_message_status.py +0 -5
  62. letta/types/letta_response_usage_message.py +0 -40
  63. letta/types/letta_response_usage_message_usage.py +0 -47
  64. letta/types/letta_response_user_message.py +0 -32
  65. letta/types/usage_message.py +0 -31
@@ -1,32 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- import datetime as dt
5
- import typing
6
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
- import pydantic
8
-
9
-
10
- class LettaResponseUserMessage(UniversalBaseModel):
11
- """
12
- A message sent by the user. Never streamed back on a response, only used for cursor pagination.
13
-
14
- Attributes:
15
- message (str): The message sent by the user
16
- id (str): The ID of the message
17
- date (datetime): The date the message was created in ISO format
18
- """
19
-
20
- id: str
21
- date: dt.datetime
22
- message_type: typing.Optional[typing.Literal["user_message"]] = None
23
- message: str
24
-
25
- if IS_PYDANTIC_V2:
26
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
27
- else:
28
-
29
- class Config:
30
- frozen = True
31
- smart_union = True
32
- extra = pydantic.Extra.allow
@@ -1,31 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- from ..core.pydantic_utilities import UniversalBaseModel
4
- import datetime as dt
5
- import typing
6
- from .letta_usage_statistics import LettaUsageStatistics
7
- from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
- import pydantic
9
-
10
-
11
- class UsageMessage(UniversalBaseModel):
12
- """
13
- A message representint the usage statistics for the agent interaction.
14
-
15
- Attributes:
16
- usage (LettaUsageStatistics): Usage statistics for the agent interaction.
17
- """
18
-
19
- id: str
20
- date: dt.datetime
21
- message_type: typing.Optional[typing.Literal["usage_message"]] = None
22
- usage: LettaUsageStatistics
23
-
24
- if IS_PYDANTIC_V2:
25
- model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
26
- else:
27
-
28
- class Config:
29
- frozen = True
30
- smart_union = True
31
- extra = pydantic.Extra.allow