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

@@ -652,7 +652,13 @@ class AgentsClient:
652
652
  raise ApiError(status_code=_response.status_code, body=_response.text)
653
653
  raise ApiError(status_code=_response.status_code, body=_response_json)
654
654
 
655
- def retrieve(self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> AgentState:
655
+ def retrieve(
656
+ self,
657
+ agent_id: str,
658
+ *,
659
+ include_relationships: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
660
+ request_options: typing.Optional[RequestOptions] = None,
661
+ ) -> AgentState:
656
662
  """
657
663
  Get the state of the agent.
658
664
 
@@ -660,6 +666,9 @@ class AgentsClient:
660
666
  ----------
661
667
  agent_id : str
662
668
 
669
+ include_relationships : typing.Optional[typing.Union[str, typing.Sequence[str]]]
670
+ Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.
671
+
663
672
  request_options : typing.Optional[RequestOptions]
664
673
  Request-specific configuration.
665
674
 
@@ -682,6 +691,9 @@ class AgentsClient:
682
691
  _response = self._client_wrapper.httpx_client.request(
683
692
  f"v1/agents/{jsonable_encoder(agent_id)}",
684
693
  method="GET",
694
+ params={
695
+ "include_relationships": include_relationships,
696
+ },
685
697
  request_options=request_options,
686
698
  )
687
699
  try:
@@ -1739,7 +1751,13 @@ class AsyncAgentsClient:
1739
1751
  raise ApiError(status_code=_response.status_code, body=_response.text)
1740
1752
  raise ApiError(status_code=_response.status_code, body=_response_json)
1741
1753
 
1742
- async def retrieve(self, agent_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> AgentState:
1754
+ async def retrieve(
1755
+ self,
1756
+ agent_id: str,
1757
+ *,
1758
+ include_relationships: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
1759
+ request_options: typing.Optional[RequestOptions] = None,
1760
+ ) -> AgentState:
1743
1761
  """
1744
1762
  Get the state of the agent.
1745
1763
 
@@ -1747,6 +1765,9 @@ class AsyncAgentsClient:
1747
1765
  ----------
1748
1766
  agent_id : str
1749
1767
 
1768
+ include_relationships : typing.Optional[typing.Union[str, typing.Sequence[str]]]
1769
+ Specify which relational fields (e.g., 'tools', 'sources', 'memory') to include in the response. If not provided, all relationships are loaded by default. Using this can optimize performance by reducing unnecessary joins.
1770
+
1750
1771
  request_options : typing.Optional[RequestOptions]
1751
1772
  Request-specific configuration.
1752
1773
 
@@ -1777,6 +1798,9 @@ class AsyncAgentsClient:
1777
1798
  _response = await self._client_wrapper.httpx_client.request(
1778
1799
  f"v1/agents/{jsonable_encoder(agent_id)}",
1779
1800
  method="GET",
1801
+ params={
1802
+ "include_relationships": include_relationships,
1803
+ },
1780
1804
  request_options=request_options,
1781
1805
  )
1782
1806
  try:
@@ -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.149",
19
+ "X-Fern-SDK-Version": "0.1.150",
20
20
  }
21
21
  if self.token is not None:
22
22
  headers["Authorization"] = f"Bearer {self.token}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.149
3
+ Version: 0.1.150
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -2,7 +2,7 @@ letta_client/__init__.py,sha256=JjcnkQmIT0tbKf7xZXGOnQrte8vkEi0gfnoiPh15zvw,1721
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
5
- letta_client/agents/client.py,sha256=bzTMPItiEaV-Xy2ninzWJkMZ69GrNkWfaRBp5ecWOlI,84710
5
+ letta_client/agents/client.py,sha256=pUm0I57mZZgyd-w5ZZSOemNXpcz9TnIK3Pr7EtX6z60,85828
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
@@ -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=9ZwRTAPVXQ2TBNpLXxKBUEN41XQ0d5N_3PMZfZefwp4,1998
65
+ letta_client/core/client_wrapper.py,sha256=KrT4_tcWUKldnpkKY3bwc7oM9KgeqA2S-KxojaqeiPk,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
@@ -396,6 +396,6 @@ letta_client/voice/__init__.py,sha256=7hX85553PiRMtIMM12a0DSoFzsglNiUziYR2ekS84Q
396
396
  letta_client/voice/client.py,sha256=STjswa5oOLoP59QwTJvQwi73kgn0UzKOaXc2CsTRI4k,6912
397
397
  letta_client/voice/types/__init__.py,sha256=FRc3iKRTONE4N8Lf1IqvnqWZ2kXdrFFvkL7PxVcR8Ew,212
398
398
  letta_client/voice/types/create_voice_chat_completions_request_body.py,sha256=ZLfKgNK1T6IAwLEvaBVFfy7jEAoPUXP28n-nfmHkklc,391
399
- letta_client-0.1.149.dist-info/METADATA,sha256=2DCgKBua_sxkpWGILFIX1qiE9qOMEJoVE4tHPTOw0ck,5093
400
- letta_client-0.1.149.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
401
- letta_client-0.1.149.dist-info/RECORD,,
399
+ letta_client-0.1.150.dist-info/METADATA,sha256=RWj78N7ka6FNsUzZwM2pO8KNezUwOKy4iIZjCB6cl1w,5093
400
+ letta_client-0.1.150.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
401
+ letta_client-0.1.150.dist-info/RECORD,,