letta-client 0.1.154__py3-none-any.whl → 0.1.156__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/__init__.py +4 -0
- letta_client/agents/messages/types/letta_streaming_response.py +2 -0
- letta_client/core/client_wrapper.py +1 -1
- letta_client/tools/client.py +58 -1
- letta_client/types/__init__.py +4 -0
- letta_client/types/letta_stop_reason.py +29 -0
- letta_client/types/letta_stop_reason_stop_reason.py +7 -0
- letta_client/types/tool.py +6 -0
- letta_client/types/tool_create.py +6 -0
- {letta_client-0.1.154.dist-info → letta_client-0.1.156.dist-info}/METADATA +1 -1
- {letta_client-0.1.154.dist-info → letta_client-0.1.156.dist-info}/RECORD +12 -10
- {letta_client-0.1.154.dist-info → letta_client-0.1.156.dist-info}/WHEEL +0 -0
letta_client/__init__.py
CHANGED
|
@@ -130,6 +130,8 @@ from .types import (
|
|
|
130
130
|
LettaRequest,
|
|
131
131
|
LettaRequestConfig,
|
|
132
132
|
LettaResponse,
|
|
133
|
+
LettaStopReason,
|
|
134
|
+
LettaStopReasonStopReason,
|
|
133
135
|
LettaStreamingRequest,
|
|
134
136
|
LettaUsageStatistics,
|
|
135
137
|
LettaUserMessageContentUnion,
|
|
@@ -465,6 +467,8 @@ __all__ = [
|
|
|
465
467
|
"LettaRequest",
|
|
466
468
|
"LettaRequestConfig",
|
|
467
469
|
"LettaResponse",
|
|
470
|
+
"LettaStopReason",
|
|
471
|
+
"LettaStopReasonStopReason",
|
|
468
472
|
"LettaStreamingRequest",
|
|
469
473
|
"LettaUsageStatistics",
|
|
470
474
|
"LettaUserMessageContentUnion",
|
|
@@ -7,6 +7,7 @@ from ....types.reasoning_message import ReasoningMessage
|
|
|
7
7
|
from ....types.tool_call_message import ToolCallMessage
|
|
8
8
|
from ....types.tool_return_message import ToolReturnMessage
|
|
9
9
|
from ....types.assistant_message import AssistantMessage
|
|
10
|
+
from ....types.letta_stop_reason import LettaStopReason
|
|
10
11
|
from ....types.letta_usage_statistics import LettaUsageStatistics
|
|
11
12
|
|
|
12
13
|
LettaStreamingResponse = typing.Union[
|
|
@@ -16,5 +17,6 @@ LettaStreamingResponse = typing.Union[
|
|
|
16
17
|
ToolCallMessage,
|
|
17
18
|
ToolReturnMessage,
|
|
18
19
|
AssistantMessage,
|
|
20
|
+
LettaStopReason,
|
|
19
21
|
LettaUsageStatistics,
|
|
20
22
|
]
|
|
@@ -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.156",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
letta_client/tools/client.py
CHANGED
|
@@ -10,13 +10,14 @@ from ..errors.unprocessable_entity_error import UnprocessableEntityError
|
|
|
10
10
|
from ..types.http_validation_error import HttpValidationError
|
|
11
11
|
from json.decoder import JSONDecodeError
|
|
12
12
|
from ..core.api_error import ApiError
|
|
13
|
+
from ..types.pip_requirement import PipRequirement
|
|
14
|
+
from ..core.serialization import convert_and_respect_annotation_metadata
|
|
13
15
|
from ..types.tool_return_message import ToolReturnMessage
|
|
14
16
|
from ..types.app_model import AppModel
|
|
15
17
|
from ..types.action_model import ActionModel
|
|
16
18
|
from .types.list_mcp_servers_response_value import ListMcpServersResponseValue
|
|
17
19
|
from .types.add_mcp_server_request import AddMcpServerRequest
|
|
18
20
|
from .types.add_mcp_server_response_item import AddMcpServerResponseItem
|
|
19
|
-
from ..core.serialization import convert_and_respect_annotation_metadata
|
|
20
21
|
from ..types.mcp_tool import McpTool
|
|
21
22
|
from .types.delete_mcp_server_response_item import DeleteMcpServerResponseItem
|
|
22
23
|
from ..core.client_wrapper import AsyncClientWrapper
|
|
@@ -154,6 +155,7 @@ class ToolsClient:
|
|
|
154
155
|
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
155
156
|
args_json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
156
157
|
return_char_limit: typing.Optional[int] = OMIT,
|
|
158
|
+
pip_requirements: typing.Optional[typing.Sequence[PipRequirement]] = OMIT,
|
|
157
159
|
request_options: typing.Optional[RequestOptions] = None,
|
|
158
160
|
) -> Tool:
|
|
159
161
|
"""
|
|
@@ -184,6 +186,9 @@ class ToolsClient:
|
|
|
184
186
|
return_char_limit : typing.Optional[int]
|
|
185
187
|
The maximum number of characters in the response.
|
|
186
188
|
|
|
189
|
+
pip_requirements : typing.Optional[typing.Sequence[PipRequirement]]
|
|
190
|
+
Optional list of pip packages required by this tool.
|
|
191
|
+
|
|
187
192
|
request_options : typing.Optional[RequestOptions]
|
|
188
193
|
Request-specific configuration.
|
|
189
194
|
|
|
@@ -214,6 +219,9 @@ class ToolsClient:
|
|
|
214
219
|
"json_schema": json_schema,
|
|
215
220
|
"args_json_schema": args_json_schema,
|
|
216
221
|
"return_char_limit": return_char_limit,
|
|
222
|
+
"pip_requirements": convert_and_respect_annotation_metadata(
|
|
223
|
+
object_=pip_requirements, annotation=typing.Sequence[PipRequirement], direction="write"
|
|
224
|
+
),
|
|
217
225
|
},
|
|
218
226
|
headers={
|
|
219
227
|
"content-type": "application/json",
|
|
@@ -388,6 +396,7 @@ class ToolsClient:
|
|
|
388
396
|
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
389
397
|
args_json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
390
398
|
return_char_limit: typing.Optional[int] = OMIT,
|
|
399
|
+
pip_requirements: typing.Optional[typing.Sequence[PipRequirement]] = OMIT,
|
|
391
400
|
request_options: typing.Optional[RequestOptions] = None,
|
|
392
401
|
) -> Tool:
|
|
393
402
|
"""
|
|
@@ -416,6 +425,9 @@ class ToolsClient:
|
|
|
416
425
|
return_char_limit : typing.Optional[int]
|
|
417
426
|
The maximum number of characters in the response.
|
|
418
427
|
|
|
428
|
+
pip_requirements : typing.Optional[typing.Sequence[PipRequirement]]
|
|
429
|
+
Optional list of pip packages required by this tool.
|
|
430
|
+
|
|
419
431
|
request_options : typing.Optional[RequestOptions]
|
|
420
432
|
Request-specific configuration.
|
|
421
433
|
|
|
@@ -446,6 +458,9 @@ class ToolsClient:
|
|
|
446
458
|
"json_schema": json_schema,
|
|
447
459
|
"args_json_schema": args_json_schema,
|
|
448
460
|
"return_char_limit": return_char_limit,
|
|
461
|
+
"pip_requirements": convert_and_respect_annotation_metadata(
|
|
462
|
+
object_=pip_requirements, annotation=typing.Sequence[PipRequirement], direction="write"
|
|
463
|
+
),
|
|
449
464
|
},
|
|
450
465
|
request_options=request_options,
|
|
451
466
|
omit=OMIT,
|
|
@@ -484,6 +499,7 @@ class ToolsClient:
|
|
|
484
499
|
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
485
500
|
args_json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
486
501
|
return_char_limit: typing.Optional[int] = OMIT,
|
|
502
|
+
pip_requirements: typing.Optional[typing.Sequence[PipRequirement]] = OMIT,
|
|
487
503
|
request_options: typing.Optional[RequestOptions] = None,
|
|
488
504
|
) -> Tool:
|
|
489
505
|
"""
|
|
@@ -512,6 +528,9 @@ class ToolsClient:
|
|
|
512
528
|
return_char_limit : typing.Optional[int]
|
|
513
529
|
The maximum number of characters in the response.
|
|
514
530
|
|
|
531
|
+
pip_requirements : typing.Optional[typing.Sequence[PipRequirement]]
|
|
532
|
+
Optional list of pip packages required by this tool.
|
|
533
|
+
|
|
515
534
|
request_options : typing.Optional[RequestOptions]
|
|
516
535
|
Request-specific configuration.
|
|
517
536
|
|
|
@@ -542,6 +561,9 @@ class ToolsClient:
|
|
|
542
561
|
"json_schema": json_schema,
|
|
543
562
|
"args_json_schema": args_json_schema,
|
|
544
563
|
"return_char_limit": return_char_limit,
|
|
564
|
+
"pip_requirements": convert_and_respect_annotation_metadata(
|
|
565
|
+
object_=pip_requirements, annotation=typing.Sequence[PipRequirement], direction="write"
|
|
566
|
+
),
|
|
545
567
|
},
|
|
546
568
|
request_options=request_options,
|
|
547
569
|
omit=OMIT,
|
|
@@ -632,6 +654,7 @@ class ToolsClient:
|
|
|
632
654
|
source_type: typing.Optional[str] = OMIT,
|
|
633
655
|
args_json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
634
656
|
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
657
|
+
pip_requirements: typing.Optional[typing.Sequence[PipRequirement]] = OMIT,
|
|
635
658
|
request_options: typing.Optional[RequestOptions] = None,
|
|
636
659
|
) -> ToolReturnMessage:
|
|
637
660
|
"""
|
|
@@ -660,6 +683,9 @@ class ToolsClient:
|
|
|
660
683
|
json_schema : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
661
684
|
The JSON schema of the function (auto-generated from source_code if not provided)
|
|
662
685
|
|
|
686
|
+
pip_requirements : typing.Optional[typing.Sequence[PipRequirement]]
|
|
687
|
+
Optional list of pip packages required by this tool.
|
|
688
|
+
|
|
663
689
|
request_options : typing.Optional[RequestOptions]
|
|
664
690
|
Request-specific configuration.
|
|
665
691
|
|
|
@@ -691,6 +717,9 @@ class ToolsClient:
|
|
|
691
717
|
"source_type": source_type,
|
|
692
718
|
"args_json_schema": args_json_schema,
|
|
693
719
|
"json_schema": json_schema,
|
|
720
|
+
"pip_requirements": convert_and_respect_annotation_metadata(
|
|
721
|
+
object_=pip_requirements, annotation=typing.Sequence[PipRequirement], direction="write"
|
|
722
|
+
),
|
|
694
723
|
},
|
|
695
724
|
headers={
|
|
696
725
|
"content-type": "application/json",
|
|
@@ -1345,6 +1374,7 @@ class AsyncToolsClient:
|
|
|
1345
1374
|
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
1346
1375
|
args_json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
1347
1376
|
return_char_limit: typing.Optional[int] = OMIT,
|
|
1377
|
+
pip_requirements: typing.Optional[typing.Sequence[PipRequirement]] = OMIT,
|
|
1348
1378
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1349
1379
|
) -> Tool:
|
|
1350
1380
|
"""
|
|
@@ -1375,6 +1405,9 @@ class AsyncToolsClient:
|
|
|
1375
1405
|
return_char_limit : typing.Optional[int]
|
|
1376
1406
|
The maximum number of characters in the response.
|
|
1377
1407
|
|
|
1408
|
+
pip_requirements : typing.Optional[typing.Sequence[PipRequirement]]
|
|
1409
|
+
Optional list of pip packages required by this tool.
|
|
1410
|
+
|
|
1378
1411
|
request_options : typing.Optional[RequestOptions]
|
|
1379
1412
|
Request-specific configuration.
|
|
1380
1413
|
|
|
@@ -1413,6 +1446,9 @@ class AsyncToolsClient:
|
|
|
1413
1446
|
"json_schema": json_schema,
|
|
1414
1447
|
"args_json_schema": args_json_schema,
|
|
1415
1448
|
"return_char_limit": return_char_limit,
|
|
1449
|
+
"pip_requirements": convert_and_respect_annotation_metadata(
|
|
1450
|
+
object_=pip_requirements, annotation=typing.Sequence[PipRequirement], direction="write"
|
|
1451
|
+
),
|
|
1416
1452
|
},
|
|
1417
1453
|
headers={
|
|
1418
1454
|
"content-type": "application/json",
|
|
@@ -1603,6 +1639,7 @@ class AsyncToolsClient:
|
|
|
1603
1639
|
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
1604
1640
|
args_json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
1605
1641
|
return_char_limit: typing.Optional[int] = OMIT,
|
|
1642
|
+
pip_requirements: typing.Optional[typing.Sequence[PipRequirement]] = OMIT,
|
|
1606
1643
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1607
1644
|
) -> Tool:
|
|
1608
1645
|
"""
|
|
@@ -1631,6 +1668,9 @@ class AsyncToolsClient:
|
|
|
1631
1668
|
return_char_limit : typing.Optional[int]
|
|
1632
1669
|
The maximum number of characters in the response.
|
|
1633
1670
|
|
|
1671
|
+
pip_requirements : typing.Optional[typing.Sequence[PipRequirement]]
|
|
1672
|
+
Optional list of pip packages required by this tool.
|
|
1673
|
+
|
|
1634
1674
|
request_options : typing.Optional[RequestOptions]
|
|
1635
1675
|
Request-specific configuration.
|
|
1636
1676
|
|
|
@@ -1669,6 +1709,9 @@ class AsyncToolsClient:
|
|
|
1669
1709
|
"json_schema": json_schema,
|
|
1670
1710
|
"args_json_schema": args_json_schema,
|
|
1671
1711
|
"return_char_limit": return_char_limit,
|
|
1712
|
+
"pip_requirements": convert_and_respect_annotation_metadata(
|
|
1713
|
+
object_=pip_requirements, annotation=typing.Sequence[PipRequirement], direction="write"
|
|
1714
|
+
),
|
|
1672
1715
|
},
|
|
1673
1716
|
request_options=request_options,
|
|
1674
1717
|
omit=OMIT,
|
|
@@ -1707,6 +1750,7 @@ class AsyncToolsClient:
|
|
|
1707
1750
|
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
1708
1751
|
args_json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
1709
1752
|
return_char_limit: typing.Optional[int] = OMIT,
|
|
1753
|
+
pip_requirements: typing.Optional[typing.Sequence[PipRequirement]] = OMIT,
|
|
1710
1754
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1711
1755
|
) -> Tool:
|
|
1712
1756
|
"""
|
|
@@ -1735,6 +1779,9 @@ class AsyncToolsClient:
|
|
|
1735
1779
|
return_char_limit : typing.Optional[int]
|
|
1736
1780
|
The maximum number of characters in the response.
|
|
1737
1781
|
|
|
1782
|
+
pip_requirements : typing.Optional[typing.Sequence[PipRequirement]]
|
|
1783
|
+
Optional list of pip packages required by this tool.
|
|
1784
|
+
|
|
1738
1785
|
request_options : typing.Optional[RequestOptions]
|
|
1739
1786
|
Request-specific configuration.
|
|
1740
1787
|
|
|
@@ -1773,6 +1820,9 @@ class AsyncToolsClient:
|
|
|
1773
1820
|
"json_schema": json_schema,
|
|
1774
1821
|
"args_json_schema": args_json_schema,
|
|
1775
1822
|
"return_char_limit": return_char_limit,
|
|
1823
|
+
"pip_requirements": convert_and_respect_annotation_metadata(
|
|
1824
|
+
object_=pip_requirements, annotation=typing.Sequence[PipRequirement], direction="write"
|
|
1825
|
+
),
|
|
1776
1826
|
},
|
|
1777
1827
|
request_options=request_options,
|
|
1778
1828
|
omit=OMIT,
|
|
@@ -1871,6 +1921,7 @@ class AsyncToolsClient:
|
|
|
1871
1921
|
source_type: typing.Optional[str] = OMIT,
|
|
1872
1922
|
args_json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
1873
1923
|
json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
|
|
1924
|
+
pip_requirements: typing.Optional[typing.Sequence[PipRequirement]] = OMIT,
|
|
1874
1925
|
request_options: typing.Optional[RequestOptions] = None,
|
|
1875
1926
|
) -> ToolReturnMessage:
|
|
1876
1927
|
"""
|
|
@@ -1899,6 +1950,9 @@ class AsyncToolsClient:
|
|
|
1899
1950
|
json_schema : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
|
|
1900
1951
|
The JSON schema of the function (auto-generated from source_code if not provided)
|
|
1901
1952
|
|
|
1953
|
+
pip_requirements : typing.Optional[typing.Sequence[PipRequirement]]
|
|
1954
|
+
Optional list of pip packages required by this tool.
|
|
1955
|
+
|
|
1902
1956
|
request_options : typing.Optional[RequestOptions]
|
|
1903
1957
|
Request-specific configuration.
|
|
1904
1958
|
|
|
@@ -1938,6 +1992,9 @@ class AsyncToolsClient:
|
|
|
1938
1992
|
"source_type": source_type,
|
|
1939
1993
|
"args_json_schema": args_json_schema,
|
|
1940
1994
|
"json_schema": json_schema,
|
|
1995
|
+
"pip_requirements": convert_and_respect_annotation_metadata(
|
|
1996
|
+
object_=pip_requirements, annotation=typing.Sequence[PipRequirement], direction="write"
|
|
1997
|
+
),
|
|
1941
1998
|
},
|
|
1942
1999
|
headers={
|
|
1943
2000
|
"content-type": "application/json",
|
letta_client/types/__init__.py
CHANGED
|
@@ -129,6 +129,8 @@ from .letta_message_union import LettaMessageUnion
|
|
|
129
129
|
from .letta_request import LettaRequest
|
|
130
130
|
from .letta_request_config import LettaRequestConfig
|
|
131
131
|
from .letta_response import LettaResponse
|
|
132
|
+
from .letta_stop_reason import LettaStopReason
|
|
133
|
+
from .letta_stop_reason_stop_reason import LettaStopReasonStopReason
|
|
132
134
|
from .letta_streaming_request import LettaStreamingRequest
|
|
133
135
|
from .letta_usage_statistics import LettaUsageStatistics
|
|
134
136
|
from .letta_user_message_content_union import LettaUserMessageContentUnion
|
|
@@ -375,6 +377,8 @@ __all__ = [
|
|
|
375
377
|
"LettaRequest",
|
|
376
378
|
"LettaRequestConfig",
|
|
377
379
|
"LettaResponse",
|
|
380
|
+
"LettaStopReason",
|
|
381
|
+
"LettaStopReasonStopReason",
|
|
378
382
|
"LettaStreamingRequest",
|
|
379
383
|
"LettaUsageStatistics",
|
|
380
384
|
"LettaUserMessageContentUnion",
|
|
@@ -0,0 +1,29 @@
|
|
|
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 pydantic
|
|
6
|
+
from .letta_stop_reason_stop_reason import LettaStopReasonStopReason
|
|
7
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class LettaStopReason(UncheckedBaseModel):
|
|
11
|
+
"""
|
|
12
|
+
Letta provided stop reason for why agent loop ended.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
message_type: typing.Optional[typing.Literal["stop_reason"]] = pydantic.Field(default=None)
|
|
16
|
+
"""
|
|
17
|
+
The type of the message.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
stop_reason: LettaStopReasonStopReason
|
|
21
|
+
|
|
22
|
+
if IS_PYDANTIC_V2:
|
|
23
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
24
|
+
else:
|
|
25
|
+
|
|
26
|
+
class Config:
|
|
27
|
+
frozen = True
|
|
28
|
+
smart_union = True
|
|
29
|
+
extra = pydantic.Extra.allow
|
letta_client/types/tool.py
CHANGED
|
@@ -4,6 +4,7 @@ from ..core.unchecked_base_model import UncheckedBaseModel
|
|
|
4
4
|
import typing
|
|
5
5
|
import pydantic
|
|
6
6
|
from .tool_type import ToolType
|
|
7
|
+
from .pip_requirement import PipRequirement
|
|
7
8
|
import typing_extensions
|
|
8
9
|
from ..core.serialization import FieldMetadata
|
|
9
10
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
@@ -71,6 +72,11 @@ class Tool(UncheckedBaseModel):
|
|
|
71
72
|
The maximum number of characters in the response.
|
|
72
73
|
"""
|
|
73
74
|
|
|
75
|
+
pip_requirements: typing.Optional[typing.List[PipRequirement]] = pydantic.Field(default=None)
|
|
76
|
+
"""
|
|
77
|
+
Optional list of pip packages required by this tool.
|
|
78
|
+
"""
|
|
79
|
+
|
|
74
80
|
created_by_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
75
81
|
"""
|
|
76
82
|
The id of the user that made this Tool.
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
from ..core.unchecked_base_model import UncheckedBaseModel
|
|
4
4
|
import typing
|
|
5
5
|
import pydantic
|
|
6
|
+
from .pip_requirement import PipRequirement
|
|
6
7
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
8
|
|
|
8
9
|
|
|
@@ -42,6 +43,11 @@ class ToolCreate(UncheckedBaseModel):
|
|
|
42
43
|
The maximum number of characters in the response.
|
|
43
44
|
"""
|
|
44
45
|
|
|
46
|
+
pip_requirements: typing.Optional[typing.List[PipRequirement]] = pydantic.Field(default=None)
|
|
47
|
+
"""
|
|
48
|
+
Optional list of pip packages required by this tool.
|
|
49
|
+
"""
|
|
50
|
+
|
|
45
51
|
if IS_PYDANTIC_V2:
|
|
46
52
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
47
53
|
else:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
letta_client/__init__.py,sha256=
|
|
1
|
+
letta_client/__init__.py,sha256=7u0luArqfecdYLSMewasD0fxBxN9gF3fXJizNWKmwvQ,17318
|
|
2
2
|
letta_client/agents/__init__.py,sha256=3oFWVxaaxkphkjGJVk31Llb9ll9dKoCGx3B_r3qqtes,1716
|
|
3
3
|
letta_client/agents/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
4
4
|
letta_client/agents/blocks/client.py,sha256=ecE03lE5tP1AtCMFLT9FzdYyQMx_D7NI5m42b41pV40,24684
|
|
@@ -16,7 +16,7 @@ letta_client/agents/memory_variables/types/memory_variables_list_response.py,sha
|
|
|
16
16
|
letta_client/agents/messages/__init__.py,sha256=M7Ar6Rmb8we4dfYE6jj3FCL9UvVFy1bNQIPflUXMWHA,243
|
|
17
17
|
letta_client/agents/messages/client.py,sha256=g_tE8kPO16g9aDrPPiMV_62R1yRxYDs-aU7iVEUMn6A,45087
|
|
18
18
|
letta_client/agents/messages/types/__init__.py,sha256=Oc2j0oGOs96IEFf9xsJIkjBjoq3OMtse64YwWv3F9Io,335
|
|
19
|
-
letta_client/agents/messages/types/letta_streaming_response.py,sha256=
|
|
19
|
+
letta_client/agents/messages/types/letta_streaming_response.py,sha256=8VR2F32xjoPFXL4YBvBbAZclaJG4ENPTjk7BrlZkmtw,742
|
|
20
20
|
letta_client/agents/messages/types/messages_modify_request.py,sha256=7C2X3BKye-YDSXOkdEmxxt34seI4jkLK0-govtc4nhg,475
|
|
21
21
|
letta_client/agents/messages/types/messages_modify_response.py,sha256=THyiUMxZyzVSp0kk1s0XOLW1LUass7mXcfFER1PTLyw,671
|
|
22
22
|
letta_client/agents/passages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
|
|
@@ -62,7 +62,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_create_re
|
|
|
62
62
|
letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item_access_item.py,sha256=R-H25IpNp9feSrW8Yj3h9O3UTMVvFniQJElogKxLuoE,254
|
|
63
63
|
letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
|
|
64
64
|
letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
|
|
65
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
65
|
+
letta_client/core/client_wrapper.py,sha256=qYScC7kO2sbo1qhstEPj1w5fdEAUL6BomWfIp4Nq42M,1998
|
|
66
66
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
67
67
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
68
68
|
letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
|
|
@@ -144,13 +144,13 @@ letta_client/templates/types/__init__.py,sha256=dAr_dEh0BdwUxAcV1sJ9RM07Z8nCv4dC
|
|
|
144
144
|
letta_client/templates/types/templates_list_response.py,sha256=HYloMVzk086c6fFGRYZz-Ozc_Yylozp2aPpweHS5uXI,866
|
|
145
145
|
letta_client/templates/types/templates_list_response_templates_item.py,sha256=yyJq8wEOb2XIg99uhRMKoy2qD2CbuvI_5FAspwYWnfI,593
|
|
146
146
|
letta_client/tools/__init__.py,sha256=XsuAkxHDA-Z98gLNNW_fiEwFP3fP4XQipflrK2bHl8k,353
|
|
147
|
-
letta_client/tools/client.py,sha256=
|
|
147
|
+
letta_client/tools/client.py,sha256=SCC1kuyrbEZX1a6VgoTklU-spF4_LCeg9uXJ0rLT1qg,85959
|
|
148
148
|
letta_client/tools/types/__init__.py,sha256=R11LYBi6lxkud_DRyaHFUHtlnbfnEI93-SEo7FL4tzs,478
|
|
149
149
|
letta_client/tools/types/add_mcp_server_request.py,sha256=EieZjfOT95sjkpxXdqy7glpxF4J4J3fm6tlaHFnYk84,265
|
|
150
150
|
letta_client/tools/types/add_mcp_server_response_item.py,sha256=pb3A4IoP7Qpen0UDDniXrASYEJZWnYnnrZThtPkvZt4,270
|
|
151
151
|
letta_client/tools/types/delete_mcp_server_response_item.py,sha256=hKc4uehqcubO8BzpgMlvk2jJAjHXOWRM_zmWsCz_vZE,273
|
|
152
152
|
letta_client/tools/types/list_mcp_servers_response_value.py,sha256=AIoXu4bO8QNSU7zjL1jj0Rg4313wVtPaTt13W0aevLQ,273
|
|
153
|
-
letta_client/types/__init__.py,sha256=
|
|
153
|
+
letta_client/types/__init__.py,sha256=2e-vGb4Xk9AWaVhsOBlh3DREgh3WfbAdEHPQUGvBnpY,21755
|
|
154
154
|
letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qVR9uHg,1240
|
|
155
155
|
letta_client/types/action_parameters_model.py,sha256=LgKf5aPZG3-OHGxFdXiSokIDgce8c02xPYIAY05VgW8,828
|
|
156
156
|
letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcfJPj_95ynGdeHCs,824
|
|
@@ -280,6 +280,8 @@ letta_client/types/letta_message_union.py,sha256=TTQwlur2CZNdZ466Nb_2TFcSFXrgoMl
|
|
|
280
280
|
letta_client/types/letta_request.py,sha256=vhS3qQYxNN2dlE_kXWPW3BJekBDMTSRp1MXmj4-ztfQ,1659
|
|
281
281
|
letta_client/types/letta_request_config.py,sha256=b6K4QtDdHjcZKfBb1fugUuoPrT2N4d5TTB0PIRNI2SU,1085
|
|
282
282
|
letta_client/types/letta_response.py,sha256=i5gAUTgWzIst_RP8I_zSh0GSnLIS3z--1BmK6EF1mkQ,1315
|
|
283
|
+
letta_client/types/letta_stop_reason.py,sha256=urH4dc6Y6o_5rS8shE-qiUgBs1cM6DmCyTgrTNPXiN0,874
|
|
284
|
+
letta_client/types/letta_stop_reason_stop_reason.py,sha256=cssk6ZibCFcf4sR6O71fC1kasDxuul5WntxLIIaRdZU,226
|
|
283
285
|
letta_client/types/letta_streaming_request.py,sha256=YJ_6ge5xrzQjOs2UTY3FxwhTv6QoCi9XWv5Rod01W1E,1884
|
|
284
286
|
letta_client/types/letta_usage_statistics.py,sha256=k6V72J2TEPd-RQBuUQxF3oylrAMcuSKBskd2nnZmGOw,1886
|
|
285
287
|
letta_client/types/letta_user_message_content_union.py,sha256=3Gbs3mRk-tJj2z0Mf-BNDomWHEytQd3OTUN4xnEVsuE,229
|
|
@@ -352,13 +354,13 @@ letta_client/types/tag_schema.py,sha256=FEszKlRD2FqezKlX99OLqTqf46dONlcGPo1m43os
|
|
|
352
354
|
letta_client/types/terminal_tool_rule.py,sha256=E9XJMsIOAAERnTztXhbB0z4P-oBH0BxnXpGm9zbn3HM,1031
|
|
353
355
|
letta_client/types/text_content.py,sha256=Z8UL4Sqqq2qClKU_nCgR9XFCj3dwYyhZMmvnnz1F0AE,670
|
|
354
356
|
letta_client/types/text_response_format.py,sha256=daIziOp-O4cEDqFH1CSIqb0p5BL721_kA0JSOtWlt0k,654
|
|
355
|
-
letta_client/types/tool.py,sha256=
|
|
357
|
+
letta_client/types/tool.py,sha256=5BtitT8tljb53PAVCZWeeKX6sLDUajgGAAJ2mJhiBp0,3054
|
|
356
358
|
letta_client/types/tool_call.py,sha256=EKGAFwzoa6zMTpOkG55hWzFn_AgPrbLXSOu5M84x8WU,594
|
|
357
359
|
letta_client/types/tool_call_content.py,sha256=5aceJgOQSkL05Hw5LXG49yxN8CmTcp6jj9aeQp-Wtks,995
|
|
358
360
|
letta_client/types/tool_call_delta.py,sha256=wGeZwJ9pwYHD5-f4Unf5-vJqefK40eHw9i0w3bCjRoE,671
|
|
359
361
|
letta_client/types/tool_call_message.py,sha256=dWyusIkL4MECPAsJpOhwaYQywA_jT-DrKLSIPhpw4jY,1318
|
|
360
362
|
letta_client/types/tool_call_message_tool_call.py,sha256=twtq5-vZIeh1nShqm8iTCN9YFtY7LUIL-bFYuUfhF1o,219
|
|
361
|
-
letta_client/types/tool_create.py,sha256=
|
|
363
|
+
letta_client/types/tool_create.py,sha256=zgEZFJZ5aHgz4jfB_saSmMHgm8f3rGJVs1YCT_m5Xls,1738
|
|
362
364
|
letta_client/types/tool_env_var_schema.py,sha256=-YFJaXkjIO4BoPgyEQpaOGMNK5zBWlLkIuUjGX9DqHU,660
|
|
363
365
|
letta_client/types/tool_json_schema.py,sha256=EgCxNOxeoF4y_-BDLAp6z_qcxTc87w_uSuZdjZpn3Gk,754
|
|
364
366
|
letta_client/types/tool_return.py,sha256=f-6zaRo8Bwl0i0Q0rHl8vKOfzymFHN_tVRoC2lMWksI,984
|
|
@@ -396,6 +398,6 @@ letta_client/voice/__init__.py,sha256=7hX85553PiRMtIMM12a0DSoFzsglNiUziYR2ekS84Q
|
|
|
396
398
|
letta_client/voice/client.py,sha256=STjswa5oOLoP59QwTJvQwi73kgn0UzKOaXc2CsTRI4k,6912
|
|
397
399
|
letta_client/voice/types/__init__.py,sha256=FRc3iKRTONE4N8Lf1IqvnqWZ2kXdrFFvkL7PxVcR8Ew,212
|
|
398
400
|
letta_client/voice/types/create_voice_chat_completions_request_body.py,sha256=ZLfKgNK1T6IAwLEvaBVFfy7jEAoPUXP28n-nfmHkklc,391
|
|
399
|
-
letta_client-0.1.
|
|
400
|
-
letta_client-0.1.
|
|
401
|
-
letta_client-0.1.
|
|
401
|
+
letta_client-0.1.156.dist-info/METADATA,sha256=bc9GJPKvPfTNAESMSJeKDYwYoA_bAEnh-rlEWHEyAU8,5093
|
|
402
|
+
letta_client-0.1.156.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
403
|
+
letta_client-0.1.156.dist-info/RECORD,,
|
|
File without changes
|