letta-client 0.1.248__py3-none-any.whl → 0.1.250__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.

@@ -461,7 +461,13 @@ class AgentsClient:
461
461
  _response = self._raw_client.count(request_options=request_options)
462
462
  return _response.data
463
463
 
464
- def export_file(self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> str:
464
+ def export_file(
465
+ self,
466
+ agent_id: str,
467
+ *,
468
+ max_steps: typing.Optional[int] = None,
469
+ request_options: typing.Optional[RequestOptions] = None,
470
+ ) -> str:
465
471
  """
466
472
  Export the serialized JSON representation of an agent, formatted with indentation.
467
473
 
@@ -469,6 +475,8 @@ class AgentsClient:
469
475
  ----------
470
476
  agent_id : str
471
477
 
478
+ max_steps : typing.Optional[int]
479
+
472
480
  request_options : typing.Optional[RequestOptions]
473
481
  Request-specific configuration.
474
482
 
@@ -489,7 +497,7 @@ class AgentsClient:
489
497
  agent_id="agent_id",
490
498
  )
491
499
  """
492
- _response = self._raw_client.export_file(agent_id, request_options=request_options)
500
+ _response = self._raw_client.export_file(agent_id, max_steps=max_steps, request_options=request_options)
493
501
  return _response.data
494
502
 
495
503
  def import_file(
@@ -1367,7 +1375,13 @@ class AsyncAgentsClient:
1367
1375
  _response = await self._raw_client.count(request_options=request_options)
1368
1376
  return _response.data
1369
1377
 
1370
- async def export_file(self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> str:
1378
+ async def export_file(
1379
+ self,
1380
+ agent_id: str,
1381
+ *,
1382
+ max_steps: typing.Optional[int] = None,
1383
+ request_options: typing.Optional[RequestOptions] = None,
1384
+ ) -> str:
1371
1385
  """
1372
1386
  Export the serialized JSON representation of an agent, formatted with indentation.
1373
1387
 
@@ -1375,6 +1389,8 @@ class AsyncAgentsClient:
1375
1389
  ----------
1376
1390
  agent_id : str
1377
1391
 
1392
+ max_steps : typing.Optional[int]
1393
+
1378
1394
  request_options : typing.Optional[RequestOptions]
1379
1395
  Request-specific configuration.
1380
1396
 
@@ -1403,7 +1419,7 @@ class AsyncAgentsClient:
1403
1419
 
1404
1420
  asyncio.run(main())
1405
1421
  """
1406
- _response = await self._raw_client.export_file(agent_id, request_options=request_options)
1422
+ _response = await self._raw_client.export_file(agent_id, max_steps=max_steps, request_options=request_options)
1407
1423
  return _response.data
1408
1424
 
1409
1425
  async def import_file(
@@ -493,7 +493,11 @@ class RawAgentsClient:
493
493
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
494
494
 
495
495
  def export_file(
496
- self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None
496
+ self,
497
+ agent_id: str,
498
+ *,
499
+ max_steps: typing.Optional[int] = None,
500
+ request_options: typing.Optional[RequestOptions] = None,
497
501
  ) -> HttpResponse[str]:
498
502
  """
499
503
  Export the serialized JSON representation of an agent, formatted with indentation.
@@ -502,6 +506,8 @@ class RawAgentsClient:
502
506
  ----------
503
507
  agent_id : str
504
508
 
509
+ max_steps : typing.Optional[int]
510
+
505
511
  request_options : typing.Optional[RequestOptions]
506
512
  Request-specific configuration.
507
513
 
@@ -513,6 +519,9 @@ class RawAgentsClient:
513
519
  _response = self._client_wrapper.httpx_client.request(
514
520
  f"v1/agents/{jsonable_encoder(agent_id)}/export",
515
521
  method="GET",
522
+ params={
523
+ "max_steps": max_steps,
524
+ },
516
525
  request_options=request_options,
517
526
  )
518
527
  try:
@@ -1535,7 +1544,11 @@ class AsyncRawAgentsClient:
1535
1544
  raise ApiError(status_code=_response.status_code, headers=dict(_response.headers), body=_response_json)
1536
1545
 
1537
1546
  async def export_file(
1538
- self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None
1547
+ self,
1548
+ agent_id: str,
1549
+ *,
1550
+ max_steps: typing.Optional[int] = None,
1551
+ request_options: typing.Optional[RequestOptions] = None,
1539
1552
  ) -> AsyncHttpResponse[str]:
1540
1553
  """
1541
1554
  Export the serialized JSON representation of an agent, formatted with indentation.
@@ -1544,6 +1557,8 @@ class AsyncRawAgentsClient:
1544
1557
  ----------
1545
1558
  agent_id : str
1546
1559
 
1560
+ max_steps : typing.Optional[int]
1561
+
1547
1562
  request_options : typing.Optional[RequestOptions]
1548
1563
  Request-specific configuration.
1549
1564
 
@@ -1555,6 +1570,9 @@ class AsyncRawAgentsClient:
1555
1570
  _response = await self._client_wrapper.httpx_client.request(
1556
1571
  f"v1/agents/{jsonable_encoder(agent_id)}/export",
1557
1572
  method="GET",
1573
+ params={
1574
+ "max_steps": max_steps,
1575
+ },
1558
1576
  request_options=request_options,
1559
1577
  )
1560
1578
  try:
@@ -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.248",
27
+ "User-Agent": "letta-client/0.1.250",
28
28
  "X-Fern-Language": "Python",
29
29
  "X-Fern-SDK-Name": "letta-client",
30
- "X-Fern-SDK-Version": "0.1.248",
30
+ "X-Fern-SDK-Version": "0.1.250",
31
31
  **(self.get_custom_headers() or {}),
32
32
  }
33
33
  if self._project is not None:
@@ -39,10 +39,8 @@ class CompletionCreateParamsNonStreaming(UncheckedBaseModel):
39
39
  parallel_tool_calls: typing.Optional[bool] = None
40
40
  prediction: typing.Optional[ChatCompletionPredictionContentParam] = None
41
41
  presence_penalty: typing.Optional[float] = None
42
- prompt_cache_key: typing.Optional[str] = None
43
42
  reasoning_effort: typing.Optional[CompletionCreateParamsNonStreamingReasoningEffort] = None
44
43
  response_format: typing.Optional[CompletionCreateParamsNonStreamingResponseFormat] = None
45
- safety_identifier: typing.Optional[str] = None
46
44
  seed: typing.Optional[int] = None
47
45
  service_tier: typing.Optional[CompletionCreateParamsNonStreamingServiceTier] = None
48
46
  stop: typing.Optional[CompletionCreateParamsNonStreamingStop] = None
@@ -39,10 +39,8 @@ class CompletionCreateParamsStreaming(UncheckedBaseModel):
39
39
  parallel_tool_calls: typing.Optional[bool] = None
40
40
  prediction: typing.Optional[ChatCompletionPredictionContentParam] = None
41
41
  presence_penalty: typing.Optional[float] = None
42
- prompt_cache_key: typing.Optional[str] = None
43
42
  reasoning_effort: typing.Optional[CompletionCreateParamsStreamingReasoningEffort] = None
44
43
  response_format: typing.Optional[CompletionCreateParamsStreamingResponseFormat] = None
45
- safety_identifier: typing.Optional[str] = None
46
44
  seed: typing.Optional[int] = None
47
45
  service_tier: typing.Optional[CompletionCreateParamsStreamingServiceTier] = None
48
46
  stop: typing.Optional[CompletionCreateParamsStreamingStop] = None
@@ -83,7 +83,7 @@ class LlmConfig(UncheckedBaseModel):
83
83
 
84
84
  max_reasoning_tokens: typing.Optional[int] = pydantic.Field(default=None)
85
85
  """
86
- Configurable thinking budget for extended thinking, only used if enable_reasoner is True. Minimum value is 1024.
86
+ Configurable thinking budget for extended thinking. Used for enable_reasoner and also for Google Vertex models like Gemini 2.5 Flash. Minimum value is 1024 when used with enable_reasoner.
87
87
  """
88
88
 
89
89
  frequency_penalty: typing.Optional[float] = pydantic.Field(default=None)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.248
3
+ Version: 0.1.250
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -3,7 +3,7 @@ letta_client/agents/__init__.py,sha256=JkuWGGNJsCfnMr2DFzQ1SiqEB1tcFZnafdidODi0_
3
3
  letta_client/agents/blocks/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
4
4
  letta_client/agents/blocks/client.py,sha256=Akx-1SYEXkmdtLtytPtdFNhVts8JkjC2aMQnnWgd8Ug,14735
5
5
  letta_client/agents/blocks/raw_client.py,sha256=7tdlieWtGyMe1G5Ne9Rcujvr43DbD4K3hVJ7eiJNuFo,24454
6
- letta_client/agents/client.py,sha256=1WZjtnWAdDV_suXJ1xnCte-cMKVEiw0bTWvQ3KvEhcw,68754
6
+ letta_client/agents/client.py,sha256=mcY4WFizpN2ynNLocoje8rY1hixrFBTQcGSd4T8JUNY,69054
7
7
  letta_client/agents/context/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
8
8
  letta_client/agents/context/client.py,sha256=fhpJFWRs6INGreRyEw9gsFnlUWR48vIHbN_jVIHIBrw,3052
9
9
  letta_client/agents/context/raw_client.py,sha256=j2gko-oEFWuCgPkcX9jCv31OWvR6sTOtAYcSWllXYDs,4747
@@ -35,7 +35,7 @@ letta_client/agents/messages/types/messages_preview_raw_payload_request.py,sha25
35
35
  letta_client/agents/passages/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
36
36
  letta_client/agents/passages/client.py,sha256=XHPpqOH2BDjHkegTRM9MRdDVxW5VH40ERSFvWchWT48,16785
37
37
  letta_client/agents/passages/raw_client.py,sha256=TnNrFsnrexrPVmemkFbRIBfFMcq1Iap2qk23L7mr1Z0,25710
38
- letta_client/agents/raw_client.py,sha256=0bK7N9RIE9sic4_Miy_w4JYsXbBlPs-UYGmJRiIKF4g,90101
38
+ letta_client/agents/raw_client.py,sha256=uJx2SSkm0VlNnT5hcDRnaHZiWiFSnL5An6sAEpQ38fg,90483
39
39
  letta_client/agents/sources/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
40
40
  letta_client/agents/sources/client.py,sha256=lCqB6FF9svrwf0oZSFs41WKlMXc-YRhUeb4FZkHbicM,6868
41
41
  letta_client/agents/sources/raw_client.py,sha256=ts4c5UBuXzrHU-lFWWrYniQqrMEc8SN0rfiqNXJLP5Y,12399
@@ -92,7 +92,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_list_clie
92
92
  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
93
93
  letta_client/core/__init__.py,sha256=tpn7rjb6C2UIkYZYIqdrNpI7Yax2jw88sXh2baxaxAI,1715
94
94
  letta_client/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
95
- letta_client/core/client_wrapper.py,sha256=Xlco_R8wKygc668X81j31EG_4dx_PNgCODZfIVkWmRQ,2776
95
+ letta_client/core/client_wrapper.py,sha256=MlzqdkjXBYTb98JUPGIUpdtz3axVxW40_dnk6Dkht1M,2776
96
96
  letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
97
97
  letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
98
98
  letta_client/core/force_multipart.py,sha256=awxh5MtcRYe74ehY8U76jzv6fYM_w_D3Rur7KQQzSDk,429
@@ -285,7 +285,7 @@ letta_client/types/chat_completion_user_message_param_content_item.py,sha256=Vfi
285
285
  letta_client/types/child_tool_rule.py,sha256=5Wl7jQgpSSTqYvK29yrQotZebjzQL1ACweJhTVNhpfo,1121
286
286
  letta_client/types/child_tool_rule_schema.py,sha256=g43as4Qsi7p_kL9pnheGdJwaYbfhYdOKr-fpy3V0Ic4,615
287
287
  letta_client/types/code_input.py,sha256=P5UBaxX2gz3qWZAORtSEhpVDOy_i6JPIJ7CjA-g1veo,638
288
- letta_client/types/completion_create_params_non_streaming.py,sha256=WtfSfUapc6UKhyyVku98I9hZMIPAlJpiiT69d5CoUXM,4110
288
+ letta_client/types/completion_create_params_non_streaming.py,sha256=no6QwCZV6TIXH6yoiCn62jhQnMTrDwgdxHVSLOBbHF4,4009
289
289
  letta_client/types/completion_create_params_non_streaming_function_call.py,sha256=rOhhZE6sp3nXl7eza8uPzc1CKsG3cn-fa8x8wvsqfh0,330
290
290
  letta_client/types/completion_create_params_non_streaming_messages_item.py,sha256=_oNVb2SP0tpUWPtmPwbBS6jVP33j8uHmcsG83rFmKbE,884
291
291
  letta_client/types/completion_create_params_non_streaming_modalities_item.py,sha256=BuyCf2nTCWVhishXFk3CsQphnPwNXj-kBdPMjkb8X10,189
@@ -295,7 +295,7 @@ letta_client/types/completion_create_params_non_streaming_response_format.py,sha
295
295
  letta_client/types/completion_create_params_non_streaming_service_tier.py,sha256=ZmQ9USOqB1Tq2XvmbOLxz_BWAgMq1EU1BPxzmSsA38M,223
296
296
  letta_client/types/completion_create_params_non_streaming_stop.py,sha256=5vPdgab7iH6eDizESU2_CMieWN5CN3pF8TZs-Zb7rMw,157
297
297
  letta_client/types/completion_create_params_non_streaming_tool_choice.py,sha256=qJW9qnwJ7dtNQyqniHnWrAxK-B54LuWimE-KCObh46w,347
298
- letta_client/types/completion_create_params_streaming.py,sha256=ROefIpgs1OhaI56A8Pgi_q3siSdJVdqzrYLpmU6o1C4,3993
298
+ letta_client/types/completion_create_params_streaming.py,sha256=AulVeOamNg_rW3cBqoiT9sMSmiUrfU4__tZmxvBzV68,3892
299
299
  letta_client/types/completion_create_params_streaming_function_call.py,sha256=qBqeR4gU4MO5kshKuOwQf04aJAxyjgcbi1ZMeFpVfNk,327
300
300
  letta_client/types/completion_create_params_streaming_messages_item.py,sha256=jucJqEz5LgFxo0MGT4aDLu9aZXYPUjUD2CE2C8VcBj4,881
301
301
  letta_client/types/completion_create_params_streaming_modalities_item.py,sha256=o9ZU7r22WrE6z-BSJ72LJXHtVRIpK499WArVgY-ODgI,186
@@ -371,7 +371,7 @@ letta_client/types/letta_stop_reason.py,sha256=jYkXBnAKsdPS8tmdv_xumyVVQk9OoHKFy
371
371
  letta_client/types/letta_streaming_request.py,sha256=pEq4WEzKTtKA5XdyR544D6kEQztJQxg0PSeMSHteDfg,2251
372
372
  letta_client/types/letta_usage_statistics.py,sha256=uZZq2lVOGHK6N-VhA0oknQfUjE9Zb0sMYh0mHDvl-lc,1887
373
373
  letta_client/types/letta_user_message_content_union.py,sha256=2SrcmMjvsQzCvfIUYG7PkaE4brMZcL6H437GSCLK4zg,230
374
- letta_client/types/llm_config.py,sha256=PsY_--6IPExjHOutHKVav-dPwMSVDPYk-C_U2cPk-cI,3557
374
+ letta_client/types/llm_config.py,sha256=Re7XL1AV4WClySsaLtGzNnwxwHNYldl3sw2rZn3dltA,3632
375
375
  letta_client/types/llm_config_compatibility_type.py,sha256=m6E90W-R9-Oi3EGSV_GdPIuVC2rmAH7TsUKbl79EiAQ,165
376
376
  letta_client/types/llm_config_model_endpoint_type.py,sha256=HOSM5kIZDCNAVCWmASvAk52K819plqGlD66yKQ1xFkI,620
377
377
  letta_client/types/llm_config_reasoning_effort.py,sha256=r4I3i2c7RxkBe-xXOE_XCXwjp9Y0QoaF2SVY7WYPdg4,184
@@ -501,6 +501,6 @@ letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
501
501
  letta_client/voice/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
502
502
  letta_client/voice/client.py,sha256=EbIVOQh4HXqU9McATxwga08STk-HUwPEAUr_UHqyKHg,3748
503
503
  letta_client/voice/raw_client.py,sha256=KvM_3GXuSf51bubM0RVBnxvlf20qZTFMnaA_BzhXzjQ,5938
504
- letta_client-0.1.248.dist-info/METADATA,sha256=BP_jivyuCVr63b1ImbHdxha_yByRm3N733S13hoMh_Q,5781
505
- letta_client-0.1.248.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
506
- letta_client-0.1.248.dist-info/RECORD,,
504
+ letta_client-0.1.250.dist-info/METADATA,sha256=b_-Vgcw1CjRa827o_A-ug-uHaSytwkG8TCaDVm2ZWAM,5781
505
+ letta_client-0.1.250.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
506
+ letta_client-0.1.250.dist-info/RECORD,,