letta-client 0.1.15__py3-none-any.whl → 0.1.17__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.
- letta_client/__init__.py +14 -34
- letta_client/agents/__init__.py +1 -26
- letta_client/agents/archival_memory/client.py +7 -132
- letta_client/agents/client.py +26 -20
- letta_client/agents/core_memory/client.py +17 -144
- letta_client/agents/memory_variables/client.py +2 -2
- letta_client/agents/messages/__init__.py +0 -14
- letta_client/agents/messages/client.py +4 -4
- letta_client/agents/messages/types/__init__.py +0 -16
- letta_client/agents/messages/types/messages_list_response.py +2 -2
- letta_client/core/client_wrapper.py +1 -1
- letta_client/providers/client.py +74 -74
- letta_client/runs/__init__.py +0 -19
- letta_client/runs/client.py +9 -9
- letta_client/tools/client.py +0 -120
- letta_client/types/__init__.py +16 -20
- letta_client/types/embedding_config_embedding_endpoint_type.py +1 -0
- letta_client/types/{letta_response_messages_item.py → letta_message_union.py} +13 -13
- letta_client/types/letta_response.py +2 -2
- letta_client/types/letta_schemas_message_message.py +5 -0
- letta_client/types/llm_config_model_endpoint_type.py +1 -0
- letta_client/types/tool_type.py +3 -1
- {letta_client-0.1.15.dist-info → letta_client-0.1.17.dist-info}/METADATA +2 -2
- {letta_client-0.1.15.dist-info → letta_client-0.1.17.dist-info}/RECORD +25 -32
- letta_client/agents/messages/types/messages_list_response_item.py +0 -125
- letta_client/agents/recall_memory/__init__.py +0 -2
- letta_client/agents/recall_memory/client.py +0 -147
- letta_client/runs/types/__init__.py +0 -21
- letta_client/runs/types/get_run_messages_response_item.py +0 -125
- letta_client/types/archival_memory_summary.py +0 -22
- letta_client/types/recall_memory_summary.py +0 -22
- {letta_client-0.1.15.dist-info → letta_client-0.1.17.dist-info}/WHEEL +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
|
-
from .
|
|
5
|
+
from .letta_message_union import LettaMessageUnion
|
|
6
6
|
import pydantic
|
|
7
7
|
from .letta_usage_statistics import LettaUsageStatistics
|
|
8
8
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
@@ -18,7 +18,7 @@ class LettaResponse(UncheckedBaseModel):
|
|
|
18
18
|
usage (LettaUsageStatistics): The usage statistics
|
|
19
19
|
"""
|
|
20
20
|
|
|
21
|
-
messages: typing.List[
|
|
21
|
+
messages: typing.List[LettaMessageUnion] = pydantic.Field()
|
|
22
22
|
"""
|
|
23
23
|
The messages returned by the agent.
|
|
24
24
|
"""
|
|
@@ -88,6 +88,11 @@ class LettaSchemasMessageMessage(UncheckedBaseModel):
|
|
|
88
88
|
The id of the tool call.
|
|
89
89
|
"""
|
|
90
90
|
|
|
91
|
+
step_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
92
|
+
"""
|
|
93
|
+
The id of the step that this message was created in.
|
|
94
|
+
"""
|
|
95
|
+
|
|
91
96
|
if IS_PYDANTIC_V2:
|
|
92
97
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
93
98
|
else:
|
letta_client/types/tool_type.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: letta-client
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.17
|
|
4
4
|
Summary:
|
|
5
5
|
Requires-Python: >=3.8,<4.0
|
|
6
6
|
Classifier: Intended Audience :: Developers
|
|
@@ -105,7 +105,7 @@ from letta_client import Letta, MessageCreate
|
|
|
105
105
|
client = Letta(
|
|
106
106
|
token="YOUR_TOKEN",
|
|
107
107
|
)
|
|
108
|
-
response = client.agents.messages.
|
|
108
|
+
response = client.agents.messages.create_stream(
|
|
109
109
|
agent_id="agent_id",
|
|
110
110
|
messages=[
|
|
111
111
|
MessageCreate(
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
letta_client/__init__.py,sha256=
|
|
2
|
-
letta_client/agents/__init__.py,sha256=
|
|
1
|
+
letta_client/__init__.py,sha256=wDNZgKycs5zFV8p-ICgUpcWY_Ctcf1ri34daE6cIDSQ,8514
|
|
2
|
+
letta_client/agents/__init__.py,sha256=w-JcTnVKKOdp2_RyIIKrffno0N0kxAiRXnmtXzMa9NI,2537
|
|
3
3
|
letta_client/agents/archival_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
4
|
-
letta_client/agents/archival_memory/client.py,sha256=
|
|
5
|
-
letta_client/agents/client.py,sha256=
|
|
4
|
+
letta_client/agents/archival_memory/client.py,sha256=bsTZssfmEPO0adZTf1KlgaDtnoQKxBt2GVDO0Hhh2OM,14872
|
|
5
|
+
letta_client/agents/client.py,sha256=nJPSIgvB1KqjoYAz1aQS1mCbFIts8jR6qal-zSHMIM0,54568
|
|
6
6
|
letta_client/agents/context/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
7
7
|
letta_client/agents/context/client.py,sha256=s9dQA3yJo8KVSinnZz0Mv0GWs0tEqoSH5HgdTTD_klc,4781
|
|
8
8
|
letta_client/agents/core_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
9
|
-
letta_client/agents/core_memory/client.py,sha256=
|
|
9
|
+
letta_client/agents/core_memory/client.py,sha256=fYZ6D8Myd25NBREyhlNBolIKGGDoNcst3p6hfjMFdAk,30399
|
|
10
10
|
letta_client/agents/memory_variables/__init__.py,sha256=PkxamlalbQ8edaZ2O0eWrPYzkL47cWJq__AzUHK3tDY,153
|
|
11
|
-
letta_client/agents/memory_variables/client.py,sha256=
|
|
11
|
+
letta_client/agents/memory_variables/client.py,sha256=GOzgxqEcjGTcAnWLIZ9-l0hTYhPLFvNngi_ignF4pPU,4951
|
|
12
12
|
letta_client/agents/memory_variables/types/__init__.py,sha256=F97IDCgZgUMB04F4EFK8_sEiHIaSxeY3uZFOKWjIu7s,177
|
|
13
13
|
letta_client/agents/memory_variables/types/memory_variables_get_response.py,sha256=rc-8h_zEPBmHCjJlEPNoz8enpNcmKkrJz1pbSRQmJy4,598
|
|
14
|
-
letta_client/agents/messages/__init__.py,sha256=
|
|
15
|
-
letta_client/agents/messages/client.py,sha256=
|
|
16
|
-
letta_client/agents/messages/types/__init__.py,sha256=
|
|
14
|
+
letta_client/agents/messages/__init__.py,sha256=LYdFebT_xZUy18Gep6nGkjvgP7GJm_xap9IxmM3PBj4,841
|
|
15
|
+
letta_client/agents/messages/client.py,sha256=Hs0ENZgeLwf6gzEfrX7kuhLgnqsjdqAi7URLdcuhKpY,34689
|
|
16
|
+
letta_client/agents/messages/types/__init__.py,sha256=B9jyLPU7esk_34bILLZl5Nw6qbk3sDJd7ygfeivDwYI,891
|
|
17
17
|
letta_client/agents/messages/types/letta_streaming_response.py,sha256=wy__JtXiybvfOjsjMq5ZSnTJt9A5x_nALgCqq32Dd_A,4707
|
|
18
|
-
letta_client/agents/messages/types/messages_list_response.py,sha256=
|
|
19
|
-
letta_client/agents/messages/types/messages_list_response_item.py,sha256=tn2phVX0ulMvOAk9Ei8sWmAGv4m2ah5l6dCMCxMISCQ,4061
|
|
20
|
-
letta_client/agents/recall_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
21
|
-
letta_client/agents/recall_memory/client.py,sha256=ZAe42LBqWQZSkbWY70O6KZNWm1030gYx4EhXW4af0MQ,4869
|
|
18
|
+
letta_client/agents/messages/types/messages_list_response.py,sha256=95iOFCbgI3gFk5P-ZoTnQrMJTrnOp7KATNi1PXLnTMU,328
|
|
22
19
|
letta_client/agents/sources/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
23
20
|
letta_client/agents/sources/client.py,sha256=ATvEfFKfhnsq-nUqq8MskYjhi66Iun-TMaP1jL4RdV8,4719
|
|
24
21
|
letta_client/agents/templates/__init__.py,sha256=fTLYBFybZ1xFP8phgz2b7Nlygau7OHa3CUqtZjG2JRI,149
|
|
@@ -45,7 +42,7 @@ letta_client/blocks/client.py,sha256=-4_DMOmUdzPxCqmOYJv3O9Yrf3ZG-gpzyciTe9qbI7k
|
|
|
45
42
|
letta_client/client.py,sha256=a5YTj-G-1W4JXvxggyTU1riqiKJ-ga0iZ4VYP15b1A4,2656
|
|
46
43
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
47
44
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
48
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
45
|
+
letta_client/core/client_wrapper.py,sha256=m1_kbVKuX7eZa0QEquj3H3XJRugTnCtH9DGgBg1COKU,1997
|
|
49
46
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
50
47
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
51
48
|
letta_client/core/http_client.py,sha256=siUQ6UV0ARZALlxubqWSSAAPC9B4VW8y6MGlHStfaeo,19552
|
|
@@ -69,12 +66,10 @@ letta_client/jobs/client.py,sha256=rhLATeG8dAyxLONZ5oSZ5iN22N4hzcyg0xl71fOyYIE,1
|
|
|
69
66
|
letta_client/models/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
70
67
|
letta_client/models/client.py,sha256=Rd9IHjSdXRzzZyabpq8pDTc9XDnwLPnmm5by335g1D0,6306
|
|
71
68
|
letta_client/providers/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
72
|
-
letta_client/providers/client.py,sha256=
|
|
69
|
+
letta_client/providers/client.py,sha256=JOoagQo1mdg7y9-iC2d8bue-IOrWzidnoPwMm4hf9b8,18236
|
|
73
70
|
letta_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
74
|
-
letta_client/runs/__init__.py,sha256
|
|
75
|
-
letta_client/runs/client.py,sha256
|
|
76
|
-
letta_client/runs/types/__init__.py,sha256=NtzmO_SLLlr4510ajC14ou1eqEGlA8nkYZFeRWbjnd8,778
|
|
77
|
-
letta_client/runs/types/get_run_messages_response_item.py,sha256=RAU7L6yCk9rMYXEtulEwesrsodWt1f1eCWEaKzcZMYM,4082
|
|
71
|
+
letta_client/runs/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
72
|
+
letta_client/runs/client.py,sha256=-KIljMB39AkyIIrqiz7GIUNdZa0YetgB9bxuc6zt9Cg,25594
|
|
78
73
|
letta_client/sources/__init__.py,sha256=kswgCv4UdkSVk1Y4tsMM1HadOwvhh_Fr96VTSMV4Umc,128
|
|
79
74
|
letta_client/sources/client.py,sha256=fpf8nq6ahmuqSF5Pl5vxnczamWAmh6sVSbUkAmXA4BE,36643
|
|
80
75
|
letta_client/sources/files/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
@@ -84,8 +79,8 @@ letta_client/sources/passages/client.py,sha256=n0QVtLC0W1X6_SjhiEGSl9oZexocnsLZY
|
|
|
84
79
|
letta_client/tag/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
85
80
|
letta_client/tag/client.py,sha256=zAy0hjEOVNZV3QAd9iiVuapAXQNCi0wKvZ_wvqj0TmI,5191
|
|
86
81
|
letta_client/tools/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
87
|
-
letta_client/tools/client.py,sha256=
|
|
88
|
-
letta_client/types/__init__.py,sha256=
|
|
82
|
+
letta_client/tools/client.py,sha256=rvvXvPwxsqwodxITxHKsAluHQvOpd9t81vY0hooabR4,55048
|
|
83
|
+
letta_client/types/__init__.py,sha256=ysUrB6v6EagUc-6q_mrP1pyXNm8TKdNuVxC6FOQL1EE,10144
|
|
89
84
|
letta_client/types/action_model.py,sha256=65eLvLD-9-zK9hrDun7wjVlXsCiI7zujv8aGPuIb3jE,1206
|
|
90
85
|
letta_client/types/action_parameters_model.py,sha256=zKzJkjtu1pt4BEA2GHlg9rMWja5a0uZygOpOx3FbgIM,749
|
|
91
86
|
letta_client/types/action_response_model.py,sha256=5OuImT0EQFkAnc81F6tZsVEwYG8rKbIrx_ydGiKqwog,745
|
|
@@ -96,7 +91,6 @@ letta_client/types/agent_type.py,sha256=iZ3Wa4BUddDeFSgcK3Z0WUKCQYDRCEo0aJICKsc3
|
|
|
96
91
|
letta_client/types/app_auth_scheme.py,sha256=_6FLlw3drQ3HDSP9SecStBwQyE0DgL6UvKFArCC4yp8,1242
|
|
97
92
|
letta_client/types/app_auth_scheme_auth_mode.py,sha256=Zafrac9piNVjCVppCv0CS34Yx4rFaFPieeNCrtaPSwk,225
|
|
98
93
|
letta_client/types/app_model.py,sha256=cypZdZ12NW9pbG23XW9qTtGnZNwNlJxoxBERaFcLmso,1519
|
|
99
|
-
letta_client/types/archival_memory_summary.py,sha256=UDmcWnpoE8HNf1RdRuWyoYcenJRA1rUGtuMqRdzmF0I,639
|
|
100
94
|
letta_client/types/assistant_file.py,sha256=9_yzzOMH5Ab10MRCJ44WEI0POh4aTOU1R5LCfDF_EnQ,881
|
|
101
95
|
letta_client/types/assistant_message_input.py,sha256=wta9fA0F5XNya-0uqy7odOjTp7NP-DyOs88E7LOnusQ,886
|
|
102
96
|
letta_client/types/assistant_message_output.py,sha256=rhe1PjM24FcKxmNZH0mrfUbNFTs1yRSKu2GyHe3MU-Q,636
|
|
@@ -123,7 +117,7 @@ letta_client/types/delete_assistant_file_response.py,sha256=7j0Qr9mp2bMS42na9IP0
|
|
|
123
117
|
letta_client/types/delete_assistant_response.py,sha256=1OX7gczbWmiAKYkzETkcQCHRlsTqySUHjkGiWA_Pygk,770
|
|
124
118
|
letta_client/types/e_2_b_sandbox_config.py,sha256=w3R4QpPjeie5aKw8sb_eKhl78J0k5vLCcATNS3Qaeyw,957
|
|
125
119
|
letta_client/types/embedding_config.py,sha256=ubGDLn8_H1qOoZUUj6de0MVrQnM2umVR2vdnOolPyr4,2539
|
|
126
|
-
letta_client/types/embedding_config_embedding_endpoint_type.py,sha256=
|
|
120
|
+
letta_client/types/embedding_config_embedding_endpoint_type.py,sha256=1_ytkZZHdP7vBoaQ3oSf_fSLmPa_C9P4mEeUBzTB700,534
|
|
127
121
|
letta_client/types/file_metadata.py,sha256=vORZH5WZO8AwAuKq0h0W9TTuydjmDlkZC6YyZMy2jbc,1973
|
|
128
122
|
letta_client/types/function_call_input.py,sha256=bxHxCXbkzah5gLjgcbxktKuQrOATItZQ9ZeMMoNYlJw,562
|
|
129
123
|
letta_client/types/function_call_output.py,sha256=PfRMUZziEt8K-hhVvpIa4e-63KnpREep7eRPe-w476U,582
|
|
@@ -135,12 +129,12 @@ letta_client/types/internal_server_error_body.py,sha256=xR9n1zptgmImbH6apQAuwBbl
|
|
|
135
129
|
letta_client/types/job.py,sha256=JEXfmTDxmHoEUxKQ8GH2yMUGbD7HfIeCdzUelMb3wsI,2470
|
|
136
130
|
letta_client/types/job_status.py,sha256=0Gu5Tku79SDVzCxnjVXQyDPNCizGWUP1ppohAck6a2U,189
|
|
137
131
|
letta_client/types/job_type.py,sha256=Roa04Ry0I-8YMYcDHiHSQwqBavZyPonzkZtjf098e-Q,145
|
|
132
|
+
letta_client/types/letta_message_union.py,sha256=wqZjJm8EgS3yx5i7x0P_CLB2ojzH-9BdZM5M4A3LV98,3946
|
|
138
133
|
letta_client/types/letta_request.py,sha256=Xps139s6e0fc7HWi0YJHFz51AfY3iDAB9kh-yBa4e38,900
|
|
139
134
|
letta_client/types/letta_request_config.py,sha256=b6K4QtDdHjcZKfBb1fugUuoPrT2N4d5TTB0PIRNI2SU,1085
|
|
140
|
-
letta_client/types/letta_response.py,sha256=
|
|
141
|
-
letta_client/types/letta_response_messages_item.py,sha256=8Rgye6ZhLkCel6sCYHcYOvQoqM4A4uwPuEapxL4qqJY,4050
|
|
135
|
+
letta_client/types/letta_response.py,sha256=i5gAUTgWzIst_RP8I_zSh0GSnLIS3z--1BmK6EF1mkQ,1315
|
|
142
136
|
letta_client/types/letta_schemas_letta_message_tool_call.py,sha256=KrRbLhWx8uVpZIpt1nuVIIBemjFnQufPR1vm6NlMMM4,618
|
|
143
|
-
letta_client/types/letta_schemas_message_message.py,sha256=
|
|
137
|
+
letta_client/types/letta_schemas_message_message.py,sha256=iQ7W_DQZMkT1Oira00_EUofvTdXspUIs8Ra9DOpW57c,3136
|
|
144
138
|
letta_client/types/letta_schemas_openai_chat_completion_request_tool.py,sha256=fdQxtc1tO3kQzpOPxNuELJl5vSaU9pdSdrTpnWJeK5Y,708
|
|
145
139
|
letta_client/types/letta_schemas_openai_chat_completion_request_tool_call.py,sha256=IlL9RDjVQhhLL56zkl2HKIe90czi2zNsthEXErbuKnc,863
|
|
146
140
|
letta_client/types/letta_schemas_openai_chat_completion_request_tool_call_function.py,sha256=kH0koggWWYihst_VCvWoahU0PZDQ8wonfHyYeCP6ZRk,619
|
|
@@ -152,7 +146,7 @@ letta_client/types/letta_schemas_openai_chat_completions_tool_call_output.py,sha
|
|
|
152
146
|
letta_client/types/letta_schemas_tool_tool.py,sha256=QPsaOdK_VB_TDC_GDRFU8w-kf_p8ClRKuegfssPnXV8,2351
|
|
153
147
|
letta_client/types/letta_usage_statistics.py,sha256=Sr8g9QBOIAMpPDr_HMQOkkhMhNEw8j846wkuTg69YxI,1460
|
|
154
148
|
letta_client/types/llm_config.py,sha256=Jk6uKehnhOxaEWZptE09781Pa8LGIh1SlIKGj_eX6oA,2447
|
|
155
|
-
letta_client/types/llm_config_model_endpoint_type.py,sha256=
|
|
149
|
+
letta_client/types/llm_config_model_endpoint_type.py,sha256=zz7qt0dCqX06vu8mTN1vIvO7iPl1CNbKTFHd-Qg6q6E,524
|
|
156
150
|
letta_client/types/local_sandbox_config.py,sha256=Q4riu4FS69VmC6WsJYcN5YzRCPJwn0hRHRV9bEI_vHY,1044
|
|
157
151
|
letta_client/types/log_prob_token.py,sha256=ueghwzOAxC14TuztG4rkTcYgkRCK6RilqGYqZYC0xbY,629
|
|
158
152
|
letta_client/types/memory.py,sha256=KD5MkDQB-vbRPT9f_-yFBWY1WUW_NWxYEI0IiflG6P8,1035
|
|
@@ -168,7 +162,6 @@ letta_client/types/organization_create.py,sha256=xlF1FgDRa7zpv49kVGWYchcSEUjPEsj
|
|
|
168
162
|
letta_client/types/passage.py,sha256=CPg_I9h4yNdVYXCnslKlGsPq6rYe6qTvGT4RjBF7620,3183
|
|
169
163
|
letta_client/types/provider.py,sha256=RvdE9dzGFJ4hcmyvk2xeO7RNpxQvXhB_S9DNy8t_z-E,1053
|
|
170
164
|
letta_client/types/reasoning_message.py,sha256=kCoRIXdsCjj48jDaZKuxIXqxwnlLYGR3qAAumeQIA-M,882
|
|
171
|
-
letta_client/types/recall_memory_summary.py,sha256=aHLAjDWxs6tLFJVtF4CUiS6IiP0bWFcIDNC0J5njJtY,635
|
|
172
165
|
letta_client/types/response_format.py,sha256=Ot93aFi9mH4h6xWuSDzbXu_6nd2_caFqCzG1wd-cAiw,583
|
|
173
166
|
letta_client/types/run.py,sha256=MZUXM24ipEHJU4iaGWxHkYVPMI8KCsRe42IihzchEkQ,2654
|
|
174
167
|
letta_client/types/sandbox_config.py,sha256=nvVdB0WnK_-bEHIehvBGiiD0hvujA93Ko4FuGMAJDdk,1550
|
|
@@ -195,7 +188,7 @@ letta_client/types/tool_message.py,sha256=Ak3rItXVRStenBXqyYOhUDr3T6EudLkMOEi1ev
|
|
|
195
188
|
letta_client/types/tool_return_message.py,sha256=Urb1zWAemckUEQDxOXlQrQz_DaXxyPQGvcOL_T8tFh4,1511
|
|
196
189
|
letta_client/types/tool_return_message_status.py,sha256=FvFOMaG9mnmgnHi2UBQVQQMtHFabbWnQnHTxGUDgVl0,167
|
|
197
190
|
letta_client/types/tool_rule_type.py,sha256=W6lVaYVYzSzhFHgqitmw6XLtxgxBhINgHZJfSnxg6ts,265
|
|
198
|
-
letta_client/types/tool_type.py,sha256=
|
|
191
|
+
letta_client/types/tool_type.py,sha256=T0bjaTPWmGEfi2IgtyVAcfS6MI0LA4k7k6TpSCzL-pU,209
|
|
199
192
|
letta_client/types/usage_statistics.py,sha256=btEmMUxFVu7oQQtBCdQqFJ6XddgmR84799-AdlsHh0w,690
|
|
200
193
|
letta_client/types/user.py,sha256=z_v1uqQ6HYwV_Pp7wDDqS6QWhslHgdUH-AldV-jnmKQ,1349
|
|
201
194
|
letta_client/types/user_create.py,sha256=prQea3xb2-Cm64wv6Y84OfhWNWrA2P8SH5yhUxejzOI,616
|
|
@@ -206,6 +199,6 @@ letta_client/types/user_update.py,sha256=0Bl1OjO7bfmlpsGQ36dSh6DH1UB_wJOTNewS0wD
|
|
|
206
199
|
letta_client/types/validation_error.py,sha256=ACDS7wL5nQbS8ymFhWljwbBJmbugNa8bs2O5xEZC3u4,680
|
|
207
200
|
letta_client/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
|
|
208
201
|
letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
209
|
-
letta_client-0.1.
|
|
210
|
-
letta_client-0.1.
|
|
211
|
-
letta_client-0.1.
|
|
202
|
+
letta_client-0.1.17.dist-info/METADATA,sha256=rITh5NhQptAlc_189cCTWmQ4ajL-U3OgVLRAkTwEDE8,4936
|
|
203
|
+
letta_client-0.1.17.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
204
|
+
letta_client-0.1.17.dist-info/RECORD,,
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from ....core.unchecked_base_model import UncheckedBaseModel
|
|
5
|
-
import typing
|
|
6
|
-
import datetime as dt
|
|
7
|
-
from ....core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
-
import pydantic
|
|
9
|
-
from ....types.tool_call_message_tool_call import ToolCallMessageToolCall
|
|
10
|
-
from ....types.tool_return_message_status import ToolReturnMessageStatus
|
|
11
|
-
import typing_extensions
|
|
12
|
-
from ....core.unchecked_base_model import UnionMetadata
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class MessagesListResponseItem_SystemMessage(UncheckedBaseModel):
|
|
16
|
-
message_type: typing.Literal["system_message"] = "system_message"
|
|
17
|
-
id: str
|
|
18
|
-
date: dt.datetime
|
|
19
|
-
message: str
|
|
20
|
-
|
|
21
|
-
if IS_PYDANTIC_V2:
|
|
22
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
23
|
-
else:
|
|
24
|
-
|
|
25
|
-
class Config:
|
|
26
|
-
frozen = True
|
|
27
|
-
smart_union = True
|
|
28
|
-
extra = pydantic.Extra.allow
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class MessagesListResponseItem_UserMessage(UncheckedBaseModel):
|
|
32
|
-
message_type: typing.Literal["user_message"] = "user_message"
|
|
33
|
-
id: str
|
|
34
|
-
date: dt.datetime
|
|
35
|
-
message: str
|
|
36
|
-
|
|
37
|
-
if IS_PYDANTIC_V2:
|
|
38
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
39
|
-
else:
|
|
40
|
-
|
|
41
|
-
class Config:
|
|
42
|
-
frozen = True
|
|
43
|
-
smart_union = True
|
|
44
|
-
extra = pydantic.Extra.allow
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
class MessagesListResponseItem_ReasoningMessage(UncheckedBaseModel):
|
|
48
|
-
message_type: typing.Literal["reasoning_message"] = "reasoning_message"
|
|
49
|
-
id: str
|
|
50
|
-
date: dt.datetime
|
|
51
|
-
reasoning: str
|
|
52
|
-
|
|
53
|
-
if IS_PYDANTIC_V2:
|
|
54
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
55
|
-
else:
|
|
56
|
-
|
|
57
|
-
class Config:
|
|
58
|
-
frozen = True
|
|
59
|
-
smart_union = True
|
|
60
|
-
extra = pydantic.Extra.allow
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
class MessagesListResponseItem_ToolCallMessage(UncheckedBaseModel):
|
|
64
|
-
message_type: typing.Literal["tool_call_message"] = "tool_call_message"
|
|
65
|
-
id: str
|
|
66
|
-
date: dt.datetime
|
|
67
|
-
tool_call: ToolCallMessageToolCall
|
|
68
|
-
|
|
69
|
-
if IS_PYDANTIC_V2:
|
|
70
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
71
|
-
else:
|
|
72
|
-
|
|
73
|
-
class Config:
|
|
74
|
-
frozen = True
|
|
75
|
-
smart_union = True
|
|
76
|
-
extra = pydantic.Extra.allow
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
class MessagesListResponseItem_ToolReturnMessage(UncheckedBaseModel):
|
|
80
|
-
message_type: typing.Literal["tool_return_message"] = "tool_return_message"
|
|
81
|
-
id: str
|
|
82
|
-
date: dt.datetime
|
|
83
|
-
tool_return: str
|
|
84
|
-
status: ToolReturnMessageStatus
|
|
85
|
-
tool_call_id: str
|
|
86
|
-
stdout: typing.Optional[typing.List[str]] = None
|
|
87
|
-
stderr: typing.Optional[typing.List[str]] = None
|
|
88
|
-
|
|
89
|
-
if IS_PYDANTIC_V2:
|
|
90
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
91
|
-
else:
|
|
92
|
-
|
|
93
|
-
class Config:
|
|
94
|
-
frozen = True
|
|
95
|
-
smart_union = True
|
|
96
|
-
extra = pydantic.Extra.allow
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
class MessagesListResponseItem_AssistantMessage(UncheckedBaseModel):
|
|
100
|
-
message_type: typing.Literal["assistant_message"] = "assistant_message"
|
|
101
|
-
id: str
|
|
102
|
-
date: dt.datetime
|
|
103
|
-
assistant_message: str
|
|
104
|
-
|
|
105
|
-
if IS_PYDANTIC_V2:
|
|
106
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
107
|
-
else:
|
|
108
|
-
|
|
109
|
-
class Config:
|
|
110
|
-
frozen = True
|
|
111
|
-
smart_union = True
|
|
112
|
-
extra = pydantic.Extra.allow
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
MessagesListResponseItem = typing_extensions.Annotated[
|
|
116
|
-
typing.Union[
|
|
117
|
-
MessagesListResponseItem_SystemMessage,
|
|
118
|
-
MessagesListResponseItem_UserMessage,
|
|
119
|
-
MessagesListResponseItem_ReasoningMessage,
|
|
120
|
-
MessagesListResponseItem_ToolCallMessage,
|
|
121
|
-
MessagesListResponseItem_ToolReturnMessage,
|
|
122
|
-
MessagesListResponseItem_AssistantMessage,
|
|
123
|
-
],
|
|
124
|
-
UnionMetadata(discriminant="message_type"),
|
|
125
|
-
]
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ...core.client_wrapper import SyncClientWrapper
|
|
4
|
-
import typing
|
|
5
|
-
from ...core.request_options import RequestOptions
|
|
6
|
-
from ...types.recall_memory_summary import RecallMemorySummary
|
|
7
|
-
from ...core.jsonable_encoder import jsonable_encoder
|
|
8
|
-
from ...core.unchecked_base_model import construct_type
|
|
9
|
-
from ...errors.unprocessable_entity_error import UnprocessableEntityError
|
|
10
|
-
from ...types.http_validation_error import HttpValidationError
|
|
11
|
-
from json.decoder import JSONDecodeError
|
|
12
|
-
from ...core.api_error import ApiError
|
|
13
|
-
from ...core.client_wrapper import AsyncClientWrapper
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class RecallMemoryClient:
|
|
17
|
-
def __init__(self, *, client_wrapper: SyncClientWrapper):
|
|
18
|
-
self._client_wrapper = client_wrapper
|
|
19
|
-
|
|
20
|
-
def get_summary(
|
|
21
|
-
self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
22
|
-
) -> RecallMemorySummary:
|
|
23
|
-
"""
|
|
24
|
-
Retrieve the summary of the recall memory of a specific agent.
|
|
25
|
-
|
|
26
|
-
Parameters
|
|
27
|
-
----------
|
|
28
|
-
agent_id : str
|
|
29
|
-
|
|
30
|
-
request_options : typing.Optional[RequestOptions]
|
|
31
|
-
Request-specific configuration.
|
|
32
|
-
|
|
33
|
-
Returns
|
|
34
|
-
-------
|
|
35
|
-
RecallMemorySummary
|
|
36
|
-
Successful Response
|
|
37
|
-
|
|
38
|
-
Examples
|
|
39
|
-
--------
|
|
40
|
-
from letta_client import Letta
|
|
41
|
-
|
|
42
|
-
client = Letta(
|
|
43
|
-
token="YOUR_TOKEN",
|
|
44
|
-
)
|
|
45
|
-
client.agents.recall_memory.get_summary(
|
|
46
|
-
agent_id="agent_id",
|
|
47
|
-
)
|
|
48
|
-
"""
|
|
49
|
-
_response = self._client_wrapper.httpx_client.request(
|
|
50
|
-
f"v1/agents/{jsonable_encoder(agent_id)}/memory/recall",
|
|
51
|
-
method="GET",
|
|
52
|
-
request_options=request_options,
|
|
53
|
-
)
|
|
54
|
-
try:
|
|
55
|
-
if 200 <= _response.status_code < 300:
|
|
56
|
-
return typing.cast(
|
|
57
|
-
RecallMemorySummary,
|
|
58
|
-
construct_type(
|
|
59
|
-
type_=RecallMemorySummary, # type: ignore
|
|
60
|
-
object_=_response.json(),
|
|
61
|
-
),
|
|
62
|
-
)
|
|
63
|
-
if _response.status_code == 422:
|
|
64
|
-
raise UnprocessableEntityError(
|
|
65
|
-
typing.cast(
|
|
66
|
-
HttpValidationError,
|
|
67
|
-
construct_type(
|
|
68
|
-
type_=HttpValidationError, # type: ignore
|
|
69
|
-
object_=_response.json(),
|
|
70
|
-
),
|
|
71
|
-
)
|
|
72
|
-
)
|
|
73
|
-
_response_json = _response.json()
|
|
74
|
-
except JSONDecodeError:
|
|
75
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
76
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
class AsyncRecallMemoryClient:
|
|
80
|
-
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
81
|
-
self._client_wrapper = client_wrapper
|
|
82
|
-
|
|
83
|
-
async def get_summary(
|
|
84
|
-
self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None
|
|
85
|
-
) -> RecallMemorySummary:
|
|
86
|
-
"""
|
|
87
|
-
Retrieve the summary of the recall memory of a specific agent.
|
|
88
|
-
|
|
89
|
-
Parameters
|
|
90
|
-
----------
|
|
91
|
-
agent_id : str
|
|
92
|
-
|
|
93
|
-
request_options : typing.Optional[RequestOptions]
|
|
94
|
-
Request-specific configuration.
|
|
95
|
-
|
|
96
|
-
Returns
|
|
97
|
-
-------
|
|
98
|
-
RecallMemorySummary
|
|
99
|
-
Successful Response
|
|
100
|
-
|
|
101
|
-
Examples
|
|
102
|
-
--------
|
|
103
|
-
import asyncio
|
|
104
|
-
|
|
105
|
-
from letta_client import AsyncLetta
|
|
106
|
-
|
|
107
|
-
client = AsyncLetta(
|
|
108
|
-
token="YOUR_TOKEN",
|
|
109
|
-
)
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
async def main() -> None:
|
|
113
|
-
await client.agents.recall_memory.get_summary(
|
|
114
|
-
agent_id="agent_id",
|
|
115
|
-
)
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
asyncio.run(main())
|
|
119
|
-
"""
|
|
120
|
-
_response = await self._client_wrapper.httpx_client.request(
|
|
121
|
-
f"v1/agents/{jsonable_encoder(agent_id)}/memory/recall",
|
|
122
|
-
method="GET",
|
|
123
|
-
request_options=request_options,
|
|
124
|
-
)
|
|
125
|
-
try:
|
|
126
|
-
if 200 <= _response.status_code < 300:
|
|
127
|
-
return typing.cast(
|
|
128
|
-
RecallMemorySummary,
|
|
129
|
-
construct_type(
|
|
130
|
-
type_=RecallMemorySummary, # type: ignore
|
|
131
|
-
object_=_response.json(),
|
|
132
|
-
),
|
|
133
|
-
)
|
|
134
|
-
if _response.status_code == 422:
|
|
135
|
-
raise UnprocessableEntityError(
|
|
136
|
-
typing.cast(
|
|
137
|
-
HttpValidationError,
|
|
138
|
-
construct_type(
|
|
139
|
-
type_=HttpValidationError, # type: ignore
|
|
140
|
-
object_=_response.json(),
|
|
141
|
-
),
|
|
142
|
-
)
|
|
143
|
-
)
|
|
144
|
-
_response_json = _response.json()
|
|
145
|
-
except JSONDecodeError:
|
|
146
|
-
raise ApiError(status_code=_response.status_code, body=_response.text)
|
|
147
|
-
raise ApiError(status_code=_response.status_code, body=_response_json)
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from .get_run_messages_response_item import (
|
|
4
|
-
GetRunMessagesResponseItem,
|
|
5
|
-
GetRunMessagesResponseItem_AssistantMessage,
|
|
6
|
-
GetRunMessagesResponseItem_ReasoningMessage,
|
|
7
|
-
GetRunMessagesResponseItem_SystemMessage,
|
|
8
|
-
GetRunMessagesResponseItem_ToolCallMessage,
|
|
9
|
-
GetRunMessagesResponseItem_ToolReturnMessage,
|
|
10
|
-
GetRunMessagesResponseItem_UserMessage,
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
__all__ = [
|
|
14
|
-
"GetRunMessagesResponseItem",
|
|
15
|
-
"GetRunMessagesResponseItem_AssistantMessage",
|
|
16
|
-
"GetRunMessagesResponseItem_ReasoningMessage",
|
|
17
|
-
"GetRunMessagesResponseItem_SystemMessage",
|
|
18
|
-
"GetRunMessagesResponseItem_ToolCallMessage",
|
|
19
|
-
"GetRunMessagesResponseItem_ToolReturnMessage",
|
|
20
|
-
"GetRunMessagesResponseItem_UserMessage",
|
|
21
|
-
]
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
from ...core.unchecked_base_model import UncheckedBaseModel
|
|
5
|
-
import typing
|
|
6
|
-
import datetime as dt
|
|
7
|
-
from ...core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
-
import pydantic
|
|
9
|
-
from ...types.tool_call_message_tool_call import ToolCallMessageToolCall
|
|
10
|
-
from ...types.tool_return_message_status import ToolReturnMessageStatus
|
|
11
|
-
import typing_extensions
|
|
12
|
-
from ...core.unchecked_base_model import UnionMetadata
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class GetRunMessagesResponseItem_SystemMessage(UncheckedBaseModel):
|
|
16
|
-
message_type: typing.Literal["system_message"] = "system_message"
|
|
17
|
-
id: str
|
|
18
|
-
date: dt.datetime
|
|
19
|
-
message: str
|
|
20
|
-
|
|
21
|
-
if IS_PYDANTIC_V2:
|
|
22
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
23
|
-
else:
|
|
24
|
-
|
|
25
|
-
class Config:
|
|
26
|
-
frozen = True
|
|
27
|
-
smart_union = True
|
|
28
|
-
extra = pydantic.Extra.allow
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class GetRunMessagesResponseItem_UserMessage(UncheckedBaseModel):
|
|
32
|
-
message_type: typing.Literal["user_message"] = "user_message"
|
|
33
|
-
id: str
|
|
34
|
-
date: dt.datetime
|
|
35
|
-
message: str
|
|
36
|
-
|
|
37
|
-
if IS_PYDANTIC_V2:
|
|
38
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
39
|
-
else:
|
|
40
|
-
|
|
41
|
-
class Config:
|
|
42
|
-
frozen = True
|
|
43
|
-
smart_union = True
|
|
44
|
-
extra = pydantic.Extra.allow
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
class GetRunMessagesResponseItem_ReasoningMessage(UncheckedBaseModel):
|
|
48
|
-
message_type: typing.Literal["reasoning_message"] = "reasoning_message"
|
|
49
|
-
id: str
|
|
50
|
-
date: dt.datetime
|
|
51
|
-
reasoning: str
|
|
52
|
-
|
|
53
|
-
if IS_PYDANTIC_V2:
|
|
54
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
55
|
-
else:
|
|
56
|
-
|
|
57
|
-
class Config:
|
|
58
|
-
frozen = True
|
|
59
|
-
smart_union = True
|
|
60
|
-
extra = pydantic.Extra.allow
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
class GetRunMessagesResponseItem_ToolCallMessage(UncheckedBaseModel):
|
|
64
|
-
message_type: typing.Literal["tool_call_message"] = "tool_call_message"
|
|
65
|
-
id: str
|
|
66
|
-
date: dt.datetime
|
|
67
|
-
tool_call: ToolCallMessageToolCall
|
|
68
|
-
|
|
69
|
-
if IS_PYDANTIC_V2:
|
|
70
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
71
|
-
else:
|
|
72
|
-
|
|
73
|
-
class Config:
|
|
74
|
-
frozen = True
|
|
75
|
-
smart_union = True
|
|
76
|
-
extra = pydantic.Extra.allow
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
class GetRunMessagesResponseItem_ToolReturnMessage(UncheckedBaseModel):
|
|
80
|
-
message_type: typing.Literal["tool_return_message"] = "tool_return_message"
|
|
81
|
-
id: str
|
|
82
|
-
date: dt.datetime
|
|
83
|
-
tool_return: str
|
|
84
|
-
status: ToolReturnMessageStatus
|
|
85
|
-
tool_call_id: str
|
|
86
|
-
stdout: typing.Optional[typing.List[str]] = None
|
|
87
|
-
stderr: typing.Optional[typing.List[str]] = None
|
|
88
|
-
|
|
89
|
-
if IS_PYDANTIC_V2:
|
|
90
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
91
|
-
else:
|
|
92
|
-
|
|
93
|
-
class Config:
|
|
94
|
-
frozen = True
|
|
95
|
-
smart_union = True
|
|
96
|
-
extra = pydantic.Extra.allow
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
class GetRunMessagesResponseItem_AssistantMessage(UncheckedBaseModel):
|
|
100
|
-
message_type: typing.Literal["assistant_message"] = "assistant_message"
|
|
101
|
-
id: str
|
|
102
|
-
date: dt.datetime
|
|
103
|
-
assistant_message: str
|
|
104
|
-
|
|
105
|
-
if IS_PYDANTIC_V2:
|
|
106
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
107
|
-
else:
|
|
108
|
-
|
|
109
|
-
class Config:
|
|
110
|
-
frozen = True
|
|
111
|
-
smart_union = True
|
|
112
|
-
extra = pydantic.Extra.allow
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
GetRunMessagesResponseItem = typing_extensions.Annotated[
|
|
116
|
-
typing.Union[
|
|
117
|
-
GetRunMessagesResponseItem_SystemMessage,
|
|
118
|
-
GetRunMessagesResponseItem_UserMessage,
|
|
119
|
-
GetRunMessagesResponseItem_ReasoningMessage,
|
|
120
|
-
GetRunMessagesResponseItem_ToolCallMessage,
|
|
121
|
-
GetRunMessagesResponseItem_ToolReturnMessage,
|
|
122
|
-
GetRunMessagesResponseItem_AssistantMessage,
|
|
123
|
-
],
|
|
124
|
-
UnionMetadata(discriminant="message_type"),
|
|
125
|
-
]
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
|
-
import pydantic
|
|
5
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
-
import typing
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class ArchivalMemorySummary(UncheckedBaseModel):
|
|
10
|
-
size: int = pydantic.Field()
|
|
11
|
-
"""
|
|
12
|
-
Number of rows in archival memory
|
|
13
|
-
"""
|
|
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
|