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

@@ -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.75",
19
+ "X-Fern-SDK-Version": "0.1.77",
20
20
  }
21
21
  if self.token is not None:
22
22
  headers["Authorization"] = f"Bearer {self.token}"
@@ -568,6 +568,7 @@ class ToolsClient:
568
568
  name: typing.Optional[str] = OMIT,
569
569
  source_type: typing.Optional[str] = OMIT,
570
570
  args_json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
571
+ json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
571
572
  request_options: typing.Optional[RequestOptions] = None,
572
573
  ) -> ToolReturnMessage:
573
574
  """
@@ -593,6 +594,9 @@ class ToolsClient:
593
594
  args_json_schema : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
594
595
  The args JSON schema of the function.
595
596
 
597
+ json_schema : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
598
+ The JSON schema of the function (auto-generated from source_code if not provided)
599
+
596
600
  request_options : typing.Optional[RequestOptions]
597
601
  Request-specific configuration.
598
602
 
@@ -623,6 +627,7 @@ class ToolsClient:
623
627
  "name": name,
624
628
  "source_type": source_type,
625
629
  "args_json_schema": args_json_schema,
630
+ "json_schema": json_schema,
626
631
  },
627
632
  headers={
628
633
  "content-type": "application/json",
@@ -1719,6 +1724,7 @@ class AsyncToolsClient:
1719
1724
  name: typing.Optional[str] = OMIT,
1720
1725
  source_type: typing.Optional[str] = OMIT,
1721
1726
  args_json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
1727
+ json_schema: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = OMIT,
1722
1728
  request_options: typing.Optional[RequestOptions] = None,
1723
1729
  ) -> ToolReturnMessage:
1724
1730
  """
@@ -1744,6 +1750,9 @@ class AsyncToolsClient:
1744
1750
  args_json_schema : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
1745
1751
  The args JSON schema of the function.
1746
1752
 
1753
+ json_schema : typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]]
1754
+ The JSON schema of the function (auto-generated from source_code if not provided)
1755
+
1747
1756
  request_options : typing.Optional[RequestOptions]
1748
1757
  Request-specific configuration.
1749
1758
 
@@ -1782,6 +1791,7 @@ class AsyncToolsClient:
1782
1791
  "name": name,
1783
1792
  "source_type": source_type,
1784
1793
  "args_json_schema": args_json_schema,
1794
+ "json_schema": json_schema,
1785
1795
  },
1786
1796
  headers={
1787
1797
  "content-type": "application/json",
@@ -67,7 +67,7 @@ class VoiceClient:
67
67
  )
68
68
  """
69
69
  _response = self._client_wrapper.httpx_client.request(
70
- f"v1/voice/{jsonable_encoder(agent_id)}/chat/completions",
70
+ f"v1/voice-beta/{jsonable_encoder(agent_id)}/chat/completions",
71
71
  method="POST",
72
72
  json=convert_and_respect_annotation_metadata(
73
73
  object_=request, annotation=CreateVoiceChatCompletionsRequest, direction="write"
@@ -158,7 +158,7 @@ class AsyncVoiceClient:
158
158
  asyncio.run(main())
159
159
  """
160
160
  _response = await self._client_wrapper.httpx_client.request(
161
- f"v1/voice/{jsonable_encoder(agent_id)}/chat/completions",
161
+ f"v1/voice-beta/{jsonable_encoder(agent_id)}/chat/completions",
162
162
  method="POST",
163
163
  json=convert_and_respect_annotation_metadata(
164
164
  object_=request, annotation=CreateVoiceChatCompletionsRequest, direction="write"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.75
3
+ Version: 0.1.77
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -234,7 +234,7 @@ letta_client/blocks/client.py,sha256=LE9dsHaBxFLC3G035f0VpNDG7XKWRK8y9OXpeFCMvUw
234
234
  letta_client/client.py,sha256=xdSrD4IkWokZHujowd1r7zESBoVgKGNvo6RqgZ3f0Fg,12808
235
235
  letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
236
236
  letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
237
- letta_client/core/client_wrapper.py,sha256=uuSZG3qjUTm8ELml6RXYMOnMCXS68B1YKpPoZ1HOoUQ,1997
237
+ letta_client/core/client_wrapper.py,sha256=C7fBDdx_orCk4CP53xXubQTaQL1EQeWcRsOh94IY__M,1997
238
238
  letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
239
239
  letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
240
240
  letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
@@ -472,7 +472,7 @@ letta_client/templates/types/templates_create_agents_response_agents_item_tools_
472
472
  letta_client/templates/types/templates_create_agents_response_agents_item_updated_at.py,sha256=Md7WfCTT1_AGvyd24EeWzUibPvnrun9rhyxqCLeAURg,439
473
473
  letta_client/templates/types/templates_create_agents_response_agents_item_updated_at_item.py,sha256=T3rYnv5m_cBAEPBnEjUkkHJLYtFZfXNMbb7a9FrIwKY,175
474
474
  letta_client/tools/__init__.py,sha256=XsuAkxHDA-Z98gLNNW_fiEwFP3fP4XQipflrK2bHl8k,353
475
- letta_client/tools/client.py,sha256=m_GRTYbqESVr21FuQ3WtpRcShqDPt8nupQu06aIJCLY,76942
475
+ letta_client/tools/client.py,sha256=y5WTB5Wzh5gv1IWaSraU6pHYck7RBZlCnQW157OFjuw,77574
476
476
  letta_client/tools/types/__init__.py,sha256=R11LYBi6lxkud_DRyaHFUHtlnbfnEI93-SEo7FL4tzs,478
477
477
  letta_client/tools/types/add_mcp_server_request.py,sha256=EieZjfOT95sjkpxXdqy7glpxF4J4J3fm6tlaHFnYk84,265
478
478
  letta_client/tools/types/add_mcp_server_response_item.py,sha256=TWdsKqGb1INhYtpGnAckz0Pw4nZShumSp4pfocRfxCA,270
@@ -686,9 +686,9 @@ letta_client/types/web_search_options_user_location.py,sha256=4aXfFcwUBu7YNA5XBj
686
686
  letta_client/types/web_search_options_user_location_approximate.py,sha256=Ywk01J9H67L6_498E5E6ceJ2VbJUfcLiIJWD_s92_M0,731
687
687
  letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
688
688
  letta_client/voice/__init__.py,sha256=ZrZEuXIukVGhsfM-i0dIFfqjeSOBMPeEgDva7VvnipE,167
689
- letta_client/voice/client.py,sha256=O38dLq__WTwLPlFTtvw1hgqaPYK9alds_ft12Bnp5fs,6475
689
+ letta_client/voice/client.py,sha256=2KKJiteGk5HQM79ne1jOPl_ZyUTfZM_gXNdZZ_ndPU8,6485
690
690
  letta_client/voice/types/__init__.py,sha256=hBLJcrom99DkDxxsVRU2ni8kPx6SsCy8gtAJvNOz26w,199
691
691
  letta_client/voice/types/create_voice_chat_completions_request.py,sha256=K4__83rXRCshfdobyAmH-5fUDJQ_PeSQetTUeC4Abk0,381
692
- letta_client-0.1.75.dist-info/METADATA,sha256=7aLLqZlS7pqx05AmPOTlenm-1xXY9UAxOhpJK59OWwk,5041
693
- letta_client-0.1.75.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
694
- letta_client-0.1.75.dist-info/RECORD,,
692
+ letta_client-0.1.77.dist-info/METADATA,sha256=PvdfXj-r_Bus9_HKv1zHMjP3h_f_EZ23RRAiq3pPRb0,5041
693
+ letta_client-0.1.77.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
694
+ letta_client-0.1.77.dist-info/RECORD,,