letta-client 0.1.299__py3-none-any.whl → 0.1.300__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/client.py +45 -0
- letta_client/core/client_wrapper.py +2 -2
- {letta_client-0.1.299.dist-info → letta_client-0.1.300.dist-info}/METADATA +1 -1
- {letta_client-0.1.299.dist-info → letta_client-0.1.300.dist-info}/RECORD +5 -5
- {letta_client-0.1.299.dist-info → letta_client-0.1.300.dist-info}/WHEEL +0 -0
letta_client/client.py
CHANGED
|
@@ -8,6 +8,7 @@ from .base_client import AsyncLettaBase, LettaBase
|
|
|
8
8
|
from .core.request_options import RequestOptions
|
|
9
9
|
from .tools.client import ToolsClient as ToolsClientBase
|
|
10
10
|
from .tools.client import AsyncToolsClient as AsyncToolsClientBase
|
|
11
|
+
from .types.npm_requirement import NpmRequirement
|
|
11
12
|
from .types.pip_requirement import PipRequirement
|
|
12
13
|
from .types.tool import Tool
|
|
13
14
|
|
|
@@ -144,6 +145,8 @@ class ToolsClient(ToolsClientBase):
|
|
|
144
145
|
] = OMIT,
|
|
145
146
|
return_char_limit: typing.Optional[int] = OMIT,
|
|
146
147
|
pip_requirements: typing.Optional[typing.Sequence[PipRequirement]] = OMIT,
|
|
148
|
+
npm_requirements: typing.Optional[typing.Sequence[NpmRequirement]] = OMIT,
|
|
149
|
+
default_requires_approval: typing.Optional[bool] = OMIT,
|
|
147
150
|
request_options: typing.Optional[RequestOptions] = None,
|
|
148
151
|
) -> Tool:
|
|
149
152
|
"""
|
|
@@ -175,6 +178,12 @@ class ToolsClient(ToolsClientBase):
|
|
|
175
178
|
pip_requirements : typing.Optional[typing.Sequence[PipRequirement]]
|
|
176
179
|
Optional list of pip packages required by this tool.
|
|
177
180
|
|
|
181
|
+
npm_requirements : typing.Optional[typing.Sequence[NpmRequirement]]
|
|
182
|
+
Optional list of npm packages required by this tool.
|
|
183
|
+
|
|
184
|
+
default_requires_approval : typing.Optional[bool]
|
|
185
|
+
Whether or not to require approval before executing this tool.
|
|
186
|
+
|
|
178
187
|
request_options : typing.Optional[RequestOptions]
|
|
179
188
|
Request-specific configuration.
|
|
180
189
|
|
|
@@ -221,6 +230,8 @@ class ToolsClient(ToolsClientBase):
|
|
|
221
230
|
json_schema=json_schema,
|
|
222
231
|
return_char_limit=return_char_limit,
|
|
223
232
|
pip_requirements=pip_requirements,
|
|
233
|
+
npm_requirements=npm_requirements,
|
|
234
|
+
default_requires_approval=default_requires_approval,
|
|
224
235
|
request_options=request_options,
|
|
225
236
|
)
|
|
226
237
|
|
|
@@ -238,6 +249,8 @@ class ToolsClient(ToolsClientBase):
|
|
|
238
249
|
] = OMIT,
|
|
239
250
|
return_char_limit: typing.Optional[int] = OMIT,
|
|
240
251
|
pip_requirements: typing.Optional[typing.Sequence[PipRequirement]] = OMIT,
|
|
252
|
+
npm_requirements: typing.Optional[typing.Sequence[NpmRequirement]] = OMIT,
|
|
253
|
+
default_requires_approval: typing.Optional[bool] = OMIT,
|
|
241
254
|
request_options: typing.Optional[RequestOptions] = None,
|
|
242
255
|
) -> Tool:
|
|
243
256
|
"""
|
|
@@ -269,6 +282,12 @@ class ToolsClient(ToolsClientBase):
|
|
|
269
282
|
pip_requirements : typing.Optional[typing.Sequence[PipRequirement]]
|
|
270
283
|
Optional list of pip packages required by this tool.
|
|
271
284
|
|
|
285
|
+
npm_requirements : typing.Optional[typing.Sequence[NpmRequirement]]
|
|
286
|
+
Optional list of npm packages required by this tool.
|
|
287
|
+
|
|
288
|
+
default_requires_approval : typing.Optional[bool]
|
|
289
|
+
Whether or not to require approval before executing this tool.
|
|
290
|
+
|
|
272
291
|
request_options : typing.Optional[RequestOptions]
|
|
273
292
|
Request-specific configuration.
|
|
274
293
|
|
|
@@ -315,6 +334,8 @@ class ToolsClient(ToolsClientBase):
|
|
|
315
334
|
json_schema=json_schema,
|
|
316
335
|
return_char_limit=return_char_limit,
|
|
317
336
|
pip_requirements=pip_requirements,
|
|
337
|
+
npm_requirements=npm_requirements,
|
|
338
|
+
default_requires_approval=default_requires_approval,
|
|
318
339
|
request_options=request_options,
|
|
319
340
|
)
|
|
320
341
|
|
|
@@ -391,6 +412,8 @@ class ToolsClient(ToolsClientBase):
|
|
|
391
412
|
json_schema=tool.json_schema or OMIT,
|
|
392
413
|
return_char_limit=tool.return_char_limit or OMIT,
|
|
393
414
|
pip_requirements=tool.pip_requirements or OMIT,
|
|
415
|
+
npm_requirements=tool.npm_requirements or OMIT,
|
|
416
|
+
default_requires_approval=tool.default_requires_approval or OMIT,
|
|
394
417
|
request_options=request_options,
|
|
395
418
|
)
|
|
396
419
|
|
|
@@ -410,6 +433,8 @@ class AsyncToolsClient(AsyncToolsClientBase):
|
|
|
410
433
|
] = OMIT,
|
|
411
434
|
return_char_limit: typing.Optional[int] = OMIT,
|
|
412
435
|
pip_requirements: typing.Optional[typing.Sequence[PipRequirement]] = OMIT,
|
|
436
|
+
npm_requirements: typing.Optional[typing.Sequence[NpmRequirement]] = OMIT,
|
|
437
|
+
default_requires_approval: typing.Optional[bool] = OMIT,
|
|
413
438
|
request_options: typing.Optional[RequestOptions] = None,
|
|
414
439
|
) -> Tool:
|
|
415
440
|
"""
|
|
@@ -441,6 +466,12 @@ class AsyncToolsClient(AsyncToolsClientBase):
|
|
|
441
466
|
pip_requirements : typing.Optional[typing.Sequence[PipRequirement]]
|
|
442
467
|
Optional list of pip packages required by this tool.
|
|
443
468
|
|
|
469
|
+
npm_requirements : typing.Optional[typing.Sequence[NpmRequirement]]
|
|
470
|
+
Optional list of npm packages required by this tool.
|
|
471
|
+
|
|
472
|
+
default_requires_approval : typing.Optional[bool]
|
|
473
|
+
Whether or not to require approval before executing this tool.
|
|
474
|
+
|
|
444
475
|
request_options : typing.Optional[RequestOptions]
|
|
445
476
|
Request-specific configuration.
|
|
446
477
|
|
|
@@ -487,6 +518,8 @@ class AsyncToolsClient(AsyncToolsClientBase):
|
|
|
487
518
|
json_schema=json_schema,
|
|
488
519
|
return_char_limit=return_char_limit,
|
|
489
520
|
pip_requirements=pip_requirements,
|
|
521
|
+
npm_requirements=npm_requirements,
|
|
522
|
+
default_requires_approval=default_requires_approval,
|
|
490
523
|
request_options=request_options,
|
|
491
524
|
)
|
|
492
525
|
|
|
@@ -504,6 +537,8 @@ class AsyncToolsClient(AsyncToolsClientBase):
|
|
|
504
537
|
] = OMIT,
|
|
505
538
|
return_char_limit: typing.Optional[int] = OMIT,
|
|
506
539
|
pip_requirements: typing.Optional[typing.Sequence[PipRequirement]] = OMIT,
|
|
540
|
+
npm_requirements: typing.Optional[typing.Sequence[NpmRequirement]] = OMIT,
|
|
541
|
+
default_requires_approval: typing.Optional[bool] = OMIT,
|
|
507
542
|
request_options: typing.Optional[RequestOptions] = None,
|
|
508
543
|
) -> Tool:
|
|
509
544
|
"""
|
|
@@ -535,6 +570,12 @@ class AsyncToolsClient(AsyncToolsClientBase):
|
|
|
535
570
|
pip_requirements : typing.Optional[typing.Sequence[PipRequirement]]
|
|
536
571
|
Optional list of pip packages required by this tool.
|
|
537
572
|
|
|
573
|
+
npm_requirements : typing.Optional[typing.Sequence[NpmRequirement]]
|
|
574
|
+
Optional list of npm packages required by this tool.
|
|
575
|
+
|
|
576
|
+
default_requires_approval : typing.Optional[bool]
|
|
577
|
+
Whether or not to require approval before executing this tool.
|
|
578
|
+
|
|
538
579
|
request_options : typing.Optional[RequestOptions]
|
|
539
580
|
Request-specific configuration.
|
|
540
581
|
|
|
@@ -581,6 +622,8 @@ class AsyncToolsClient(AsyncToolsClientBase):
|
|
|
581
622
|
json_schema=json_schema,
|
|
582
623
|
return_char_limit=return_char_limit,
|
|
583
624
|
pip_requirements=pip_requirements,
|
|
625
|
+
npm_requirements=npm_requirements,
|
|
626
|
+
default_requires_approval=default_requires_approval,
|
|
584
627
|
request_options=request_options,
|
|
585
628
|
)
|
|
586
629
|
|
|
@@ -657,5 +700,7 @@ class AsyncToolsClient(AsyncToolsClientBase):
|
|
|
657
700
|
json_schema=tool.json_schema or OMIT,
|
|
658
701
|
return_char_limit=tool.return_char_limit or OMIT,
|
|
659
702
|
pip_requirements=tool.pip_requirements or OMIT,
|
|
703
|
+
npm_requirements=tool.npm_requirements or OMIT,
|
|
704
|
+
default_requires_approval=tool.default_requires_approval or OMIT,
|
|
660
705
|
request_options=request_options,
|
|
661
706
|
)
|
|
@@ -24,10 +24,10 @@ class BaseClientWrapper:
|
|
|
24
24
|
|
|
25
25
|
def get_headers(self) -> typing.Dict[str, str]:
|
|
26
26
|
headers: typing.Dict[str, str] = {
|
|
27
|
-
"User-Agent": "letta-client/0.1.
|
|
27
|
+
"User-Agent": "letta-client/0.1.300",
|
|
28
28
|
"X-Fern-Language": "Python",
|
|
29
29
|
"X-Fern-SDK-Name": "letta-client",
|
|
30
|
-
"X-Fern-SDK-Version": "0.1.
|
|
30
|
+
"X-Fern-SDK-Version": "0.1.300",
|
|
31
31
|
**(self.get_custom_headers() or {}),
|
|
32
32
|
}
|
|
33
33
|
if self._project is not None:
|
|
@@ -72,7 +72,7 @@ letta_client/blocks/agents/client.py,sha256=b03IICHfrBToWFjSsfp_ZUN0RBJIAZh0zkV2
|
|
|
72
72
|
letta_client/blocks/agents/raw_client.py,sha256=aiatfKp8iVtXRL1aSpxoCW_JhWljqLRRQtRz964vGMA,5936
|
|
73
73
|
letta_client/blocks/client.py,sha256=8Oqr5Hj97ZIlLIy86NctYECMJHlltvflfcB3EafLJRY,27366
|
|
74
74
|
letta_client/blocks/raw_client.py,sha256=P-cTr0gKJjZLHKJyV3ndg7OsAq66_folZ0L7is7OOKs,39881
|
|
75
|
-
letta_client/client.py,sha256=
|
|
75
|
+
letta_client/client.py,sha256=tW5VYkenZUTQ77Z9gyMWEswEYZpyO3jAaacFk5FfXos,24940
|
|
76
76
|
letta_client/client_side_access_tokens/__init__.py,sha256=28nrPumub-n2rjse3XCDcwjN6gRZveEh-8CC1PQsdo8,1581
|
|
77
77
|
letta_client/client_side_access_tokens/client.py,sha256=8JRdcMMSWVFpf6dd54tX7wSSBkjpejzveqiGGRddz40,11051
|
|
78
78
|
letta_client/client_side_access_tokens/raw_client.py,sha256=gAWVz0uHvtBMN4-D_MDBmIi1mMZm2M1yPtwUxvrUf24,17364
|
|
@@ -90,7 +90,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_list_clie
|
|
|
90
90
|
letta_client/client_side_access_tokens/types/client_side_access_tokens_list_client_side_access_tokens_response_tokens_item_policy_data_item_access_item.py,sha256=kNHfEWFl7u71Pu8NPqutod0a2NXfvq8il05Hqm0iBB4,284
|
|
91
91
|
letta_client/core/__init__.py,sha256=tpn7rjb6C2UIkYZYIqdrNpI7Yax2jw88sXh2baxaxAI,1715
|
|
92
92
|
letta_client/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
|
|
93
|
-
letta_client/core/client_wrapper.py,sha256=
|
|
93
|
+
letta_client/core/client_wrapper.py,sha256=LaplRtndwcjKeorMnaloCuezuSLjCm1_MOeWFCvcvHY,2776
|
|
94
94
|
letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
95
95
|
letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
96
96
|
letta_client/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
|
|
@@ -575,6 +575,6 @@ letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
|
|
|
575
575
|
letta_client/voice/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
576
576
|
letta_client/voice/client.py,sha256=EbIVOQh4HXqU9McATxwga08STk-HUwPEAUr_UHqyKHg,3748
|
|
577
577
|
letta_client/voice/raw_client.py,sha256=KvM_3GXuSf51bubM0RVBnxvlf20qZTFMnaA_BzhXzjQ,5938
|
|
578
|
-
letta_client-0.1.
|
|
579
|
-
letta_client-0.1.
|
|
580
|
-
letta_client-0.1.
|
|
578
|
+
letta_client-0.1.300.dist-info/METADATA,sha256=lCaf0_hNmhFP_UVDHcLx2kzWc2a6qT6qi9zP7G2rs4Q,5782
|
|
579
|
+
letta_client-0.1.300.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
580
|
+
letta_client-0.1.300.dist-info/RECORD,,
|
|
File without changes
|