letta-client 0.1.58__py3-none-any.whl → 0.1.59__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.
- letta_client/agents/client.py +10 -0
- letta_client/core/client_wrapper.py +1 -1
- letta_client/steps/client.py +10 -0
- letta_client/types/step.py +5 -0
- {letta_client-0.1.58.dist-info → letta_client-0.1.59.dist-info}/METADATA +1 -1
- {letta_client-0.1.58.dist-info → letta_client-0.1.59.dist-info}/RECORD +7 -7
- {letta_client-0.1.58.dist-info → letta_client-0.1.59.dist-info}/WHEEL +0 -0
letta_client/agents/client.py
CHANGED
|
@@ -479,6 +479,7 @@ class AgentsClient:
|
|
|
479
479
|
file: core.File,
|
|
480
480
|
append_copy_suffix: typing.Optional[bool] = None,
|
|
481
481
|
override_existing_tools: typing.Optional[bool] = None,
|
|
482
|
+
project_id: typing.Optional[str] = None,
|
|
482
483
|
request_options: typing.Optional[RequestOptions] = None,
|
|
483
484
|
) -> AgentState:
|
|
484
485
|
"""
|
|
@@ -495,6 +496,9 @@ class AgentsClient:
|
|
|
495
496
|
override_existing_tools : typing.Optional[bool]
|
|
496
497
|
If set to True, existing tools can get their source code overwritten by the uploaded tool definitions. Note that Letta core tools can never be updated externally.
|
|
497
498
|
|
|
499
|
+
project_id : typing.Optional[str]
|
|
500
|
+
The project ID to associate the uploaded agent with.
|
|
501
|
+
|
|
498
502
|
request_options : typing.Optional[RequestOptions]
|
|
499
503
|
Request-specific configuration.
|
|
500
504
|
|
|
@@ -518,6 +522,7 @@ class AgentsClient:
|
|
|
518
522
|
params={
|
|
519
523
|
"append_copy_suffix": append_copy_suffix,
|
|
520
524
|
"override_existing_tools": override_existing_tools,
|
|
525
|
+
"project_id": project_id,
|
|
521
526
|
},
|
|
522
527
|
data={},
|
|
523
528
|
files={
|
|
@@ -1567,6 +1572,7 @@ class AsyncAgentsClient:
|
|
|
1567
1572
|
file: core.File,
|
|
1568
1573
|
append_copy_suffix: typing.Optional[bool] = None,
|
|
1569
1574
|
override_existing_tools: typing.Optional[bool] = None,
|
|
1575
|
+
project_id: typing.Optional[str] = None,
|
|
1570
1576
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1571
1577
|
) -> AgentState:
|
|
1572
1578
|
"""
|
|
@@ -1583,6 +1589,9 @@ class AsyncAgentsClient:
|
|
|
1583
1589
|
override_existing_tools : typing.Optional[bool]
|
|
1584
1590
|
If set to True, existing tools can get their source code overwritten by the uploaded tool definitions. Note that Letta core tools can never be updated externally.
|
|
1585
1591
|
|
|
1592
|
+
project_id : typing.Optional[str]
|
|
1593
|
+
The project ID to associate the uploaded agent with.
|
|
1594
|
+
|
|
1586
1595
|
request_options : typing.Optional[RequestOptions]
|
|
1587
1596
|
Request-specific configuration.
|
|
1588
1597
|
|
|
@@ -1614,6 +1623,7 @@ class AsyncAgentsClient:
|
|
|
1614
1623
|
params={
|
|
1615
1624
|
"append_copy_suffix": append_copy_suffix,
|
|
1616
1625
|
"override_existing_tools": override_existing_tools,
|
|
1626
|
+
"project_id": project_id,
|
|
1617
1627
|
},
|
|
1618
1628
|
data={},
|
|
1619
1629
|
files={
|
|
@@ -16,7 +16,7 @@ class BaseClientWrapper:
|
|
|
16
16
|
headers: typing.Dict[str, str] = {
|
|
17
17
|
"X-Fern-Language": "Python",
|
|
18
18
|
"X-Fern-SDK-Name": "letta-client",
|
|
19
|
-
"X-Fern-SDK-Version": "0.1.
|
|
19
|
+
"X-Fern-SDK-Version": "0.1.59",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
letta_client/steps/client.py
CHANGED
|
@@ -27,6 +27,7 @@ class StepsClient:
|
|
|
27
27
|
start_date: typing.Optional[str] = None,
|
|
28
28
|
end_date: typing.Optional[str] = None,
|
|
29
29
|
model: typing.Optional[str] = None,
|
|
30
|
+
agent_id: typing.Optional[str] = None,
|
|
30
31
|
request_options: typing.Optional[RequestOptions] = None,
|
|
31
32
|
) -> typing.List[Step]:
|
|
32
33
|
"""
|
|
@@ -56,6 +57,9 @@ class StepsClient:
|
|
|
56
57
|
model : typing.Optional[str]
|
|
57
58
|
Filter by the name of the model used for the step
|
|
58
59
|
|
|
60
|
+
agent_id : typing.Optional[str]
|
|
61
|
+
Filter by the ID of the agent that performed the step
|
|
62
|
+
|
|
59
63
|
request_options : typing.Optional[RequestOptions]
|
|
60
64
|
Request-specific configuration.
|
|
61
65
|
|
|
@@ -84,6 +88,7 @@ class StepsClient:
|
|
|
84
88
|
"start_date": start_date,
|
|
85
89
|
"end_date": end_date,
|
|
86
90
|
"model": model,
|
|
91
|
+
"agent_id": agent_id,
|
|
87
92
|
},
|
|
88
93
|
request_options=request_options,
|
|
89
94
|
)
|
|
@@ -182,6 +187,7 @@ class AsyncStepsClient:
|
|
|
182
187
|
start_date: typing.Optional[str] = None,
|
|
183
188
|
end_date: typing.Optional[str] = None,
|
|
184
189
|
model: typing.Optional[str] = None,
|
|
190
|
+
agent_id: typing.Optional[str] = None,
|
|
185
191
|
request_options: typing.Optional[RequestOptions] = None,
|
|
186
192
|
) -> typing.List[Step]:
|
|
187
193
|
"""
|
|
@@ -211,6 +217,9 @@ class AsyncStepsClient:
|
|
|
211
217
|
model : typing.Optional[str]
|
|
212
218
|
Filter by the name of the model used for the step
|
|
213
219
|
|
|
220
|
+
agent_id : typing.Optional[str]
|
|
221
|
+
Filter by the ID of the agent that performed the step
|
|
222
|
+
|
|
214
223
|
request_options : typing.Optional[RequestOptions]
|
|
215
224
|
Request-specific configuration.
|
|
216
225
|
|
|
@@ -247,6 +256,7 @@ class AsyncStepsClient:
|
|
|
247
256
|
"start_date": start_date,
|
|
248
257
|
"end_date": end_date,
|
|
249
258
|
"model": model,
|
|
259
|
+
"agent_id": agent_id,
|
|
250
260
|
},
|
|
251
261
|
request_options=request_options,
|
|
252
262
|
)
|
letta_client/types/step.py
CHANGED
|
@@ -28,6 +28,11 @@ class Step(UncheckedBaseModel):
|
|
|
28
28
|
The unique identifier of the job that this step belongs to. Only included for async calls.
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
|
+
agent_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
32
|
+
"""
|
|
33
|
+
The ID of the agent that performed the step.
|
|
34
|
+
"""
|
|
35
|
+
|
|
31
36
|
provider_name: typing.Optional[str] = pydantic.Field(default=None)
|
|
32
37
|
"""
|
|
33
38
|
The name of the provider used for this step.
|
|
@@ -2,7 +2,7 @@ letta_client/__init__.py,sha256=2cOFHMqO22-puFRZq7_HpLGRsNdILRTIAhxbtr-BpqU,5688
|
|
|
2
2
|
letta_client/agents/__init__.py,sha256=ePMwPIgzTgDIbCr1wR1Zch36fvKau2B1mOFmjt47CsE,22440
|
|
3
3
|
letta_client/agents/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
4
4
|
letta_client/agents/blocks/client.py,sha256=u5zvutxoH_DqfSLWhRtNSRBC9_ezQDx682cxkxDz3JA,23822
|
|
5
|
-
letta_client/agents/client.py,sha256=
|
|
5
|
+
letta_client/agents/client.py,sha256=l4gSRAlc7U8eadadb5SJXA4Iy_XTT_Sf4dGsLmCp0ss,83839
|
|
6
6
|
letta_client/agents/context/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
7
7
|
letta_client/agents/context/client.py,sha256=GKKvoG4N_K8Biz9yDjeIHpFG0C8Cwc7tHmEX3pTL_9U,4815
|
|
8
8
|
letta_client/agents/core_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
@@ -210,7 +210,7 @@ letta_client/blocks/client.py,sha256=AeQQ-IdYhV-zqLTt3PTrJOtJ6XtBZcXNC108Y5EogVU
|
|
|
210
210
|
letta_client/client.py,sha256=xdSrD4IkWokZHujowd1r7zESBoVgKGNvo6RqgZ3f0Fg,12808
|
|
211
211
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
212
212
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
213
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
213
|
+
letta_client/core/client_wrapper.py,sha256=_Nooo_OFKMFw2uwNSrG3NOR7wJ0h_yvn6rlZfA8WxDc,1997
|
|
214
214
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
215
215
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
216
216
|
letta_client/core/http_client.py,sha256=siUQ6UV0ARZALlxubqWSSAAPC9B4VW8y6MGlHStfaeo,19552
|
|
@@ -247,7 +247,7 @@ letta_client/sources/files/client.py,sha256=R-9zHK_wWtvW-2K7erQVVh9rR7a5JC4zxmTK
|
|
|
247
247
|
letta_client/sources/passages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
248
248
|
letta_client/sources/passages/client.py,sha256=n0QVtLC0W1X6_SjhiEGSl9oZexocnsLZYeYRAqV2BCk,4767
|
|
249
249
|
letta_client/steps/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
250
|
-
letta_client/steps/client.py,sha256=
|
|
250
|
+
letta_client/steps/client.py,sha256=g4XUUtdKzkSiRkxJW6ACrYe8ySvJ_tUMGK4ag6QRZT4,11284
|
|
251
251
|
letta_client/tag/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
252
252
|
letta_client/tag/client.py,sha256=TBAotdb0e2_x2pANF4dOE1qmWY3GIgb7nOhvN7iZ3_4,5183
|
|
253
253
|
letta_client/templates/__init__.py,sha256=67hjKjA8ZYiqjIAHObdIQLVgtbMX7kb6RNaxOUkeQBw,24253
|
|
@@ -562,7 +562,7 @@ letta_client/types/sandbox_environment_variable_create.py,sha256=AhGE8ITStXkPOfP
|
|
|
562
562
|
letta_client/types/sandbox_environment_variable_update.py,sha256=JMkX6nzvcBNEemjvBmyHDezci3Bn7epKhMnvFY_--EA,948
|
|
563
563
|
letta_client/types/sandbox_type.py,sha256=XSWmX3JIFFrDPQ4i89E8LauXY8kjmJEtaz6e_JheGm4,151
|
|
564
564
|
letta_client/types/source.py,sha256=7tLptZ4AZrvRPF6NqToM4Vf9i7TosS2_Ydks4zfvZx4,2239
|
|
565
|
-
letta_client/types/step.py,sha256=
|
|
565
|
+
letta_client/types/step.py,sha256=XE98vMiU34dgUxLPvmJLdp9iWFPjg6E2Pb8xNSURMMg,2988
|
|
566
566
|
letta_client/types/system_message.py,sha256=DUIgPbL_ya49sGN15DIEGO2t8OQ4pseHvbMcayygV0c,1155
|
|
567
567
|
letta_client/types/system_message_content.py,sha256=9VvwCUKMkNidcMUaPmuj6-WhzeJoEZCNvyn3oH-LR70,185
|
|
568
568
|
letta_client/types/terminal_tool_rule.py,sha256=82a7AnohOqCFBSOt7OwsKeh7gHgq8KTlgojxlm3t76E,863
|
|
@@ -599,6 +599,6 @@ letta_client/voice/__init__.py,sha256=ZrZEuXIukVGhsfM-i0dIFfqjeSOBMPeEgDva7Vvnip
|
|
|
599
599
|
letta_client/voice/client.py,sha256=j3feSlNzeTVFXE7RUKEHGeMl_w0TJFBRUI3pXpLpUEI,6148
|
|
600
600
|
letta_client/voice/types/__init__.py,sha256=hBLJcrom99DkDxxsVRU2ni8kPx6SsCy8gtAJvNOz26w,199
|
|
601
601
|
letta_client/voice/types/create_voice_chat_completions_request.py,sha256=K4__83rXRCshfdobyAmH-5fUDJQ_PeSQetTUeC4Abk0,381
|
|
602
|
-
letta_client-0.1.
|
|
603
|
-
letta_client-0.1.
|
|
604
|
-
letta_client-0.1.
|
|
602
|
+
letta_client-0.1.59.dist-info/METADATA,sha256=At8k5V5Pp553R7ZDKwUma-RqJFSRGav1hXAq_b6BqFU,4942
|
|
603
|
+
letta_client-0.1.59.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
604
|
+
letta_client-0.1.59.dist-info/RECORD,,
|
|
File without changes
|