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

@@ -83,6 +83,9 @@ from .function_output import FunctionOutput
83
83
  from .function_tool import FunctionTool
84
84
  from .health import Health
85
85
  from .http_validation_error import HttpValidationError
86
+ from .identity import Identity
87
+ from .identity_create import IdentityCreate
88
+ from .identity_type import IdentityType
86
89
  from .image_url import ImageUrl
87
90
  from .image_url_detail import ImageUrlDetail
88
91
  from .init_tool_rule import InitToolRule
@@ -246,6 +249,9 @@ __all__ = [
246
249
  "FunctionTool",
247
250
  "Health",
248
251
  "HttpValidationError",
252
+ "Identity",
253
+ "IdentityCreate",
254
+ "IdentityType",
249
255
  "ImageUrl",
250
256
  "ImageUrlDetail",
251
257
  "InitToolRule",
@@ -15,6 +15,7 @@ class ActionParametersModel(UncheckedBaseModel):
15
15
  title: str
16
16
  type: str
17
17
  required: typing.Optional[typing.List[str]] = None
18
+ examples: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None
18
19
 
19
20
  if IS_PYDANTIC_V2:
20
21
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -15,6 +15,7 @@ class ActionResponseModel(UncheckedBaseModel):
15
15
  title: str
16
16
  type: str
17
17
  required: typing.Optional[typing.List[str]] = None
18
+ examples: typing.Optional[typing.List[typing.Optional[typing.Any]]] = None
18
19
 
19
20
  if IS_PYDANTIC_V2:
20
21
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
@@ -3,5 +3,5 @@
3
3
  import typing
4
4
 
5
5
  AppAuthSchemeAuthMode = typing.Union[
6
- typing.Literal["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BEARER_TOKEN", "BASIC_WITH_JWT"], typing.Any
6
+ typing.Literal["OAUTH2", "OAUTH1", "API_KEY", "BASIC", "BEARER_TOKEN", "BASIC_WITH_JWT", "NO_AUTH"], typing.Any
7
7
  ]
@@ -0,0 +1,49 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import pydantic
5
+ from .identity_type import IdentityType
6
+ import typing
7
+ from .agent_state import AgentState
8
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
+
10
+
11
+ class Identity(UncheckedBaseModel):
12
+ id: str = pydantic.Field()
13
+ """
14
+ The internal id of the identity.
15
+ """
16
+
17
+ identifier_key: str = pydantic.Field()
18
+ """
19
+ External, user-generated identifier key of the identity.
20
+ """
21
+
22
+ name: str = pydantic.Field()
23
+ """
24
+ The name of the identity.
25
+ """
26
+
27
+ identity_type: IdentityType = pydantic.Field()
28
+ """
29
+ The type of the identity.
30
+ """
31
+
32
+ project_id: typing.Optional[str] = pydantic.Field(default=None)
33
+ """
34
+ The project id of the identity, if applicable.
35
+ """
36
+
37
+ agents: typing.List[AgentState] = pydantic.Field()
38
+ """
39
+ The agents associated with the identity.
40
+ """
41
+
42
+ if IS_PYDANTIC_V2:
43
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
44
+ else:
45
+
46
+ class Config:
47
+ frozen = True
48
+ smart_union = True
49
+ extra = pydantic.Extra.allow
@@ -0,0 +1,43 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.unchecked_base_model import UncheckedBaseModel
4
+ import pydantic
5
+ from .identity_type import IdentityType
6
+ import typing
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
+
9
+
10
+ class IdentityCreate(UncheckedBaseModel):
11
+ identifier_key: str = pydantic.Field()
12
+ """
13
+ External, user-generated identifier key of the identity.
14
+ """
15
+
16
+ name: str = pydantic.Field()
17
+ """
18
+ The name of the identity.
19
+ """
20
+
21
+ identity_type: IdentityType = pydantic.Field()
22
+ """
23
+ The type of the identity.
24
+ """
25
+
26
+ project_id: typing.Optional[str] = pydantic.Field(default=None)
27
+ """
28
+ The project id of the identity, if applicable.
29
+ """
30
+
31
+ agent_ids: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
32
+ """
33
+ The agent ids that are associated with the identity.
34
+ """
35
+
36
+ if IS_PYDANTIC_V2:
37
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
38
+ else:
39
+
40
+ class Config:
41
+ frozen = True
42
+ smart_union = True
43
+ extra = pydantic.Extra.allow
@@ -0,0 +1,5 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ IdentityType = typing.Union[typing.Literal["org", "user", "other"], typing.Any]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.36
3
+ Version: 0.1.38
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -1,8 +1,8 @@
1
- letta_client/__init__.py,sha256=AQVdLkOnnHAYznOY7QONprwhu-K75qSt2FgvZWunD-o,58561
1
+ letta_client/__init__.py,sha256=_3lCWnjrPN18R4_6lUe-fDLAcMj5NhESGUuGPP8ma1Q,58701
2
2
  letta_client/agents/__init__.py,sha256=aDZt7p9Xf-unNNJn8-ryIuN0iioKJbOE3I7nxGwb2fc,21744
3
3
  letta_client/agents/archival_memory/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
4
4
  letta_client/agents/archival_memory/client.py,sha256=VTlL-cGmYBYdVI5owY8Gbbj4dscUCtSzL34Gm_5Nvk4,14872
5
- letta_client/agents/client.py,sha256=NvQnUqtfBl2WNo8ZV7zSs75ApAGtmXAvrDHzbc679V4,61867
5
+ letta_client/agents/client.py,sha256=lAo_OOjgQaWKrTJpioTikVIRvYYTieybHqLI--mFyXY,62471
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
@@ -196,13 +196,13 @@ letta_client/agents/types/agents_search_response_agents_item_updated_at.py,sha25
196
196
  letta_client/agents/types/agents_search_response_agents_item_updated_at_item.py,sha256=Anb4fUgBP7Qf9Iggi_OYab0dPcWE-aIA6BvcAk8qIcg,166
197
197
  letta_client/agents/types/create_agent_request_tool_rules_item.py,sha256=vzOFgtUuui1HVtgMOPegJytxVKMOpKKc5l9WxxzO0aY,415
198
198
  letta_client/agents/types/update_agent_tool_rules_item.py,sha256=P43l3kJNrqPVbNpWbEfEA7likZCGKtFYWQ2EofUCrnU,408
199
- letta_client/base_client.py,sha256=upbBHirE_S7W6FSnWIA7tXc6v3w_AwGsqnrbj37LrNQ,7903
199
+ letta_client/base_client.py,sha256=ATvrb83SfeAseCcUAGyHzJKYfwg5Cv5axZqDirCj3Vc,8169
200
200
  letta_client/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
201
201
  letta_client/blocks/client.py,sha256=AeQQ-IdYhV-zqLTt3PTrJOtJ6XtBZcXNC108Y5EogVU,29178
202
202
  letta_client/client.py,sha256=y2cXN0ApFul2Lz-fVh5TbeYbQ8oUjnXcwJ6wUczEf2c,2457
203
203
  letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
204
204
  letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
205
- letta_client/core/client_wrapper.py,sha256=gLhhsaOvXJVe4_47Y5IjRIgK0ONQDh4wrFyw-MuIvVA,1997
205
+ letta_client/core/client_wrapper.py,sha256=vDmAmOn3cFznNKU0ve-rFI7FvNLDVUnnAK8SnhB4m1o,1997
206
206
  letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
207
207
  letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
208
208
  letta_client/core/http_client.py,sha256=siUQ6UV0ARZALlxubqWSSAAPC9B4VW8y6MGlHStfaeo,19552
@@ -221,6 +221,8 @@ letta_client/errors/not_found_error.py,sha256=tBVCeBC8n3C811WHRj_n-hs3h8MqwR5gp0
221
221
  letta_client/errors/unprocessable_entity_error.py,sha256=FvR7XPlV3Xx5nu8HNlmLhBRdk4so_gCHjYT5PyZe6sM,313
222
222
  letta_client/health/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
223
223
  letta_client/health/client.py,sha256=6BjXH83ZhsLt_MD4QA2hiTsvgfeIgxMT1KSN0Oj6e1I,3242
224
+ letta_client/identities/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
225
+ letta_client/identities/client.py,sha256=pZ5jRHIsN-HeDKaDBuemWxacGZQaJLPy-fa6o84rCcg,31550
224
226
  letta_client/jobs/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
225
227
  letta_client/jobs/client.py,sha256=z1Zq6dGs2xbf3EAFuD3-m-qbpbUeqpCBYqtIFKkGoMk,15622
226
228
  letta_client/models/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
@@ -408,16 +410,16 @@ letta_client/templates/types/templates_create_agents_from_template_response_agen
408
410
  letta_client/templates/types/templates_create_agents_from_template_response_agents_item_updated_at_item.py,sha256=uXkJJCwx44tIcYHCkXzAqvIvhtQDN9mYZanKbLBJNyI,187
409
411
  letta_client/tools/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
410
412
  letta_client/tools/client.py,sha256=nv4PKwwlBsyGYm9B_3okgaiNFbbMYfZ53bzeoaAhVfU,53219
411
- letta_client/types/__init__.py,sha256=lIEkIkJF2CxdYemPIZ1zOQrX-pHHreQWEr4OcMZOOUM,14904
413
+ letta_client/types/__init__.py,sha256=7ETFjE_hxcd7HZHNgelw-D-KVOjI1a6x8XjXaQVNDDU,15077
412
414
  letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qVR9uHg,1240
413
- letta_client/types/action_parameters_model.py,sha256=zKzJkjtu1pt4BEA2GHlg9rMWja5a0uZygOpOx3FbgIM,749
414
- letta_client/types/action_response_model.py,sha256=5OuImT0EQFkAnc81F6tZsVEwYG8rKbIrx_ydGiKqwog,745
415
+ letta_client/types/action_parameters_model.py,sha256=LgKf5aPZG3-OHGxFdXiSokIDgce8c02xPYIAY05VgW8,828
416
+ letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcfJPj_95ynGdeHCs,824
415
417
  letta_client/types/agent_environment_variable.py,sha256=vutZLcR0yETltgOZ7E_o9kR4vOdBxybVL9lzXSux75w,1698
416
418
  letta_client/types/agent_state.py,sha256=YmOGu1BAewjDuq4mk5S0yP81YdYPeKgeYP1uXv2Ws_Q,5035
417
419
  letta_client/types/agent_state_tool_rules_item.py,sha256=-1gMhEZOThSYXXTWxZXtSNpkANOTws0bZcEXf-PQCJA,375
418
420
  letta_client/types/agent_type.py,sha256=iZ3Wa4BUddDeFSgcK3Z0WUKCQYDRCEo0aJICKsc3HL0,220
419
421
  letta_client/types/app_auth_scheme.py,sha256=_6FLlw3drQ3HDSP9SecStBwQyE0DgL6UvKFArCC4yp8,1242
420
- letta_client/types/app_auth_scheme_auth_mode.py,sha256=Zafrac9piNVjCVppCv0CS34Yx4rFaFPieeNCrtaPSwk,225
422
+ letta_client/types/app_auth_scheme_auth_mode.py,sha256=4zgUPTye_olDGcfbwpyCAbwU-11WPGaAxO_PeA-0I0c,236
421
423
  letta_client/types/app_model.py,sha256=cypZdZ12NW9pbG23XW9qTtGnZNwNlJxoxBERaFcLmso,1519
422
424
  letta_client/types/assistant_message.py,sha256=OWJz-tAsuiA1bZguDbvIBJezzjYiQWt8kWCxwxK-zN4,779
423
425
  letta_client/types/assistant_message_content.py,sha256=2XtIgU1tzCHgp-NwWIkUFohOd1GClieiRk9OATTEcew,188
@@ -492,6 +494,9 @@ letta_client/types/function_output.py,sha256=7b8550BllXxtZQ3T3jfvZjcCU_ZGWNBvjlr
492
494
  letta_client/types/function_tool.py,sha256=TOETpZdqgPIgd4g9JFo3yvDBpTx4lDFzJNZH8PxAjpI,697
493
495
  letta_client/types/health.py,sha256=nQwx5ysn_cJMKUoqsfaPcGNSRSjfwX5S272UiSQJ03w,618
494
496
  letta_client/types/http_validation_error.py,sha256=yHa4_NHIMB-VKNZpk7agjLTwWIg7mv7ml3d7I-Bqiog,661
497
+ letta_client/types/identity.py,sha256=ahAPaP2huVp45r0QDwVjo1NiNwHYf7ZkTwVYE3NMo6s,1251
498
+ letta_client/types/identity_create.py,sha256=eG6urqbZZsRiExBQmcgs_uytEn5IRLoj5kAB8BrvaQc,1173
499
+ letta_client/types/identity_type.py,sha256=YeGvqit1VLK7q0GpNuTyfbCxXO7BJjq-hFSiFZexswk,160
495
500
  letta_client/types/image_url.py,sha256=re4N2AsAvOFl2nS6v8jOi3jVFppBs-3zhwpBKHSuCLs,648
496
501
  letta_client/types/image_url_detail.py,sha256=YFT9wyf8hqeKhQjRWMv97y-fbU2DB-oCbU5BpUcHWVU,161
497
502
  letta_client/types/init_tool_rule.py,sha256=fPQqBigbqZfJXPoXdpBCFlilVYf5p4-t0touyFm_gqE,801
@@ -565,6 +570,6 @@ letta_client/types/user_update.py,sha256=0Bl1OjO7bfmlpsGQ36dSh6DH1UB_wJOTNewS0wD
565
570
  letta_client/types/validation_error.py,sha256=ACDS7wL5nQbS8ymFhWljwbBJmbugNa8bs2O5xEZC3u4,680
566
571
  letta_client/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
567
572
  letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
568
- letta_client-0.1.36.dist-info/METADATA,sha256=BGWPqKAJok97D6t6GiWlzsZDN6yXNNv-rSXv9l9YSzY,4942
569
- letta_client-0.1.36.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
570
- letta_client-0.1.36.dist-info/RECORD,,
573
+ letta_client-0.1.38.dist-info/METADATA,sha256=L0Yeo88SISWb7ImHIM16jHgG-Did4BxojCkmC3MFHrk,4942
574
+ letta_client-0.1.38.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
575
+ letta_client-0.1.38.dist-info/RECORD,,