letta-client 0.1.185__py3-none-any.whl → 0.1.187__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/__init__.py CHANGED
@@ -56,6 +56,7 @@ from .types import (
56
56
  ChatCompletionUserMessageParamContentItem,
57
57
  ChildToolRule,
58
58
  ChildToolRuleSchema,
59
+ CodeInput,
59
60
  CompletionCreateParamsNonStreaming,
60
61
  CompletionCreateParamsNonStreamingFunctionCall,
61
62
  CompletionCreateParamsNonStreamingMessagesItem,
@@ -400,6 +401,7 @@ __all__ = [
400
401
  "ClientSideAccessTokensCreateResponsePolicy",
401
402
  "ClientSideAccessTokensCreateResponsePolicyDataItem",
402
403
  "ClientSideAccessTokensCreateResponsePolicyDataItemAccessItem",
404
+ "CodeInput",
403
405
  "CompletionCreateParamsNonStreaming",
404
406
  "CompletionCreateParamsNonStreamingFunctionCall",
405
407
  "CompletionCreateParamsNonStreamingMessagesItem",
@@ -24,7 +24,7 @@ class BaseClientWrapper:
24
24
  headers: typing.Dict[str, str] = {
25
25
  "X-Fern-Language": "Python",
26
26
  "X-Fern-SDK-Name": "letta-client",
27
- "X-Fern-SDK-Version": "0.1.185",
27
+ "X-Fern-SDK-Version": "0.1.187",
28
28
  }
29
29
  if self._project is not None:
30
30
  headers["X-Project"] = self._project
@@ -36,6 +36,7 @@ class StepsClient:
36
36
  feedback: typing.Optional[StepsListRequestFeedback] = None,
37
37
  has_feedback: typing.Optional[bool] = None,
38
38
  tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
39
+ project_id: typing.Optional[str] = None,
39
40
  request_options: typing.Optional[RequestOptions] = None,
40
41
  ) -> typing.List[Step]:
41
42
  """
@@ -80,6 +81,9 @@ class StepsClient:
80
81
  tags : typing.Optional[typing.Union[str, typing.Sequence[str]]]
81
82
  Filter by tags
82
83
 
84
+ project_id : typing.Optional[str]
85
+ Filter by the project ID that is associated with the step (cloud only).
86
+
83
87
  request_options : typing.Optional[RequestOptions]
84
88
  Request-specific configuration.
85
89
 
@@ -114,6 +118,7 @@ class StepsClient:
114
118
  "feedback": feedback,
115
119
  "has_feedback": has_feedback,
116
120
  "tags": tags,
121
+ "project_id": project_id,
117
122
  },
118
123
  request_options=request_options,
119
124
  )
@@ -219,6 +224,7 @@ class AsyncStepsClient:
219
224
  feedback: typing.Optional[StepsListRequestFeedback] = None,
220
225
  has_feedback: typing.Optional[bool] = None,
221
226
  tags: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
227
+ project_id: typing.Optional[str] = None,
222
228
  request_options: typing.Optional[RequestOptions] = None,
223
229
  ) -> typing.List[Step]:
224
230
  """
@@ -263,6 +269,9 @@ class AsyncStepsClient:
263
269
  tags : typing.Optional[typing.Union[str, typing.Sequence[str]]]
264
270
  Filter by tags
265
271
 
272
+ project_id : typing.Optional[str]
273
+ Filter by the project ID that is associated with the step (cloud only).
274
+
266
275
  request_options : typing.Optional[RequestOptions]
267
276
  Request-specific configuration.
268
277
 
@@ -305,6 +314,7 @@ class AsyncStepsClient:
305
314
  "feedback": feedback,
306
315
  "has_feedback": has_feedback,
307
316
  "tags": tags,
317
+ "project_id": project_id,
308
318
  },
309
319
  request_options=request_options,
310
320
  )
@@ -55,6 +55,7 @@ from .chat_completion_user_message_param_content import ChatCompletionUserMessag
55
55
  from .chat_completion_user_message_param_content_item import ChatCompletionUserMessageParamContentItem
56
56
  from .child_tool_rule import ChildToolRule
57
57
  from .child_tool_rule_schema import ChildToolRuleSchema
58
+ from .code_input import CodeInput
58
59
  from .completion_create_params_non_streaming import CompletionCreateParamsNonStreaming
59
60
  from .completion_create_params_non_streaming_function_call import CompletionCreateParamsNonStreamingFunctionCall
60
61
  from .completion_create_params_non_streaming_messages_item import CompletionCreateParamsNonStreamingMessagesItem
@@ -311,6 +312,7 @@ __all__ = [
311
312
  "ChatCompletionUserMessageParamContentItem",
312
313
  "ChildToolRule",
313
314
  "ChildToolRuleSchema",
315
+ "CodeInput",
314
316
  "CompletionCreateParamsNonStreaming",
315
317
  "CompletionCreateParamsNonStreamingFunctionCall",
316
318
  "CompletionCreateParamsNonStreamingMessagesItem",
@@ -0,0 +1,22 @@
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 ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+ import typing
7
+
8
+
9
+ class CodeInput(UncheckedBaseModel):
10
+ code: str = pydantic.Field()
11
+ """
12
+ Python source code to parse for JSON schema
13
+ """
14
+
15
+ if IS_PYDANTIC_V2:
16
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
17
+ else:
18
+
19
+ class Config:
20
+ frozen = True
21
+ smart_union = True
22
+ extra = pydantic.Extra.allow
@@ -106,6 +106,11 @@ class Step(UncheckedBaseModel):
106
106
  The feedback for this step. Must be either 'positive' or 'negative'.
107
107
  """
108
108
 
109
+ project_id: typing.Optional[str] = pydantic.Field(default=None)
110
+ """
111
+ The project that the agent that executed this step belongs to (cloud only).
112
+ """
113
+
109
114
  if IS_PYDANTIC_V2:
110
115
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
111
116
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-client
3
- Version: 0.1.185
3
+ Version: 0.1.187
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -1,4 +1,4 @@
1
- letta_client/__init__.py,sha256=OW9d5lmZRZOZF5Yn7b_1h3oJUoJz5TyMSayQW89iZRw,18094
1
+ letta_client/__init__.py,sha256=qJr7FK3esCAtlSArEc7x1oXME3Eo_eyGJb2MxXE0oRY,18126
2
2
  letta_client/agents/__init__.py,sha256=9L60SAZIihZzh_KhVxu0uX4RS7z2iKKctzQsS8ycXHc,1954
3
3
  letta_client/agents/blocks/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
4
4
  letta_client/agents/blocks/client.py,sha256=HwUOGmCQ_wuKb3_52ij1BBHRXdzIEd8SjW9-9Rop26Q,25044
@@ -65,7 +65,7 @@ letta_client/client_side_access_tokens/types/client_side_access_tokens_create_re
65
65
  letta_client/client_side_access_tokens/types/client_side_access_tokens_create_response_policy_data_item_access_item.py,sha256=R-H25IpNp9feSrW8Yj3h9O3UTMVvFniQJElogKxLuoE,254
66
66
  letta_client/core/__init__.py,sha256=OKbX2aCZXgHCDUsCouqv-OiX32xA6eFFCKIUH9M5Vzk,1591
67
67
  letta_client/core/api_error.py,sha256=RE8LELok2QCjABadECTvtDp7qejA1VmINCh6TbqPwSE,426
68
- letta_client/core/client_wrapper.py,sha256=ixVgLEjDkjT5ta-bvwzWOccU6vZDGpHAVzsJJalmSNo,2336
68
+ letta_client/core/client_wrapper.py,sha256=PRt9oIK6UR8y0vq_JKhIYvS0L3iUVLRr42I7aHlkcEE,2336
69
69
  letta_client/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
70
70
  letta_client/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
71
71
  letta_client/core/http_client.py,sha256=Z77OIxIbL4OAB2IDqjRq_sYa5yNYAWfmdhdCSSvh6Y4,19552
@@ -132,7 +132,7 @@ letta_client/sources/files/client.py,sha256=xyK22UrVGMqHSKR7HNM8YrSY2RUgcI4u_PrV
132
132
  letta_client/sources/passages/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
133
133
  letta_client/sources/passages/client.py,sha256=G1WtDHHd5RTImEIGMEZ5XXKg3HQQ__y2g6adcKpndfw,6041
134
134
  letta_client/steps/__init__.py,sha256=Vitg85t2RrFWGxc4yqPbmd1dDZ44L0A1cnQFVTGRDCw,184
135
- letta_client/steps/client.py,sha256=YppOqkbvMTWKSIYValpaWjN_QeuSmA9SqQ1KfBvnlQY,13470
135
+ letta_client/steps/client.py,sha256=DFLrtpsPfeqk9RwMeb_KRGFTFtY1RwdWfg7KKmF1GuA,13906
136
136
  letta_client/steps/feedback/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
137
137
  letta_client/steps/feedback/client.py,sha256=F4815wJRjXnBrAT9_1l3C-HQ4anSzC1RVLl_HKaGM_U,5111
138
138
  letta_client/steps/types/__init__.py,sha256=afgL6YcS_8FJ3Syf7DwWW82CmYDqb9zelSZpJ4Rt70o,171
@@ -160,7 +160,7 @@ letta_client/tools/types/list_mcp_servers_response_value.py,sha256=Eyji5qB7Fhowi
160
160
  letta_client/tools/types/test_mcp_server_request.py,sha256=sLlOEZdmLfkHqHCkUjntGbr8_MkBhsqpMQ-HwdNOnq0,372
161
161
  letta_client/tools/types/update_mcp_server_request.py,sha256=SEMNYHB_mwJNSMHKO7keU0C_CMBktV7lfZUnACPe_fU,314
162
162
  letta_client/tools/types/update_mcp_server_response.py,sha256=muwHagaQBMwQI0of9EBCBtG9lD-jELFAevgTB2MjpFQ,375
163
- letta_client/types/__init__.py,sha256=zN8B2TBwrfgDPvDp4E68EIn3SILewbUy618B_z35cgk,22373
163
+ letta_client/types/__init__.py,sha256=zgGRiro77khcejeFnKPl0Kazt-b6UDp8DV2xm4wqcOQ,22424
164
164
  letta_client/types/action_model.py,sha256=y1e2XMv3skFaNJIBdYoBKgiORzGh05aOVvu-qVR9uHg,1240
165
165
  letta_client/types/action_parameters_model.py,sha256=LgKf5aPZG3-OHGxFdXiSokIDgce8c02xPYIAY05VgW8,828
166
166
  letta_client/types/action_response_model.py,sha256=yq2Fd9UU8j7vvtE3VqXUoRRvDzWcfJPj_95ynGdeHCs,824
@@ -216,6 +216,7 @@ letta_client/types/chat_completion_user_message_param_content.py,sha256=XNFFnok5
216
216
  letta_client/types/chat_completion_user_message_param_content_item.py,sha256=ONQbm9RX1bbM9KO8a9mbWHyUEIuOq70wPiVFMhagLbU,579
217
217
  letta_client/types/child_tool_rule.py,sha256=GjRjRV2c4VF3h0fXNF75_yaZgHxSnAf75RRnfW1VvqM,1120
218
218
  letta_client/types/child_tool_rule_schema.py,sha256=1FrJDSyQvQ6eEyKUIvuNFfGzbrTdSdUfJg4gpNo6DrM,614
219
+ letta_client/types/code_input.py,sha256=WP1riaIt95ScwzjFO3gbuHIvgRarbO9dFnh88ET4CIo,637
219
220
  letta_client/types/completion_create_params_non_streaming.py,sha256=hjEJ-wJWuFuTy4Y73RIllBa1EMisK9gr7yQd8rrv_r8,4008
220
221
  letta_client/types/completion_create_params_non_streaming_function_call.py,sha256=6iCjgXwsXnflllhfDDKtHRyxzKqtLcX6-HVr7AXlyUM,329
221
222
  letta_client/types/completion_create_params_non_streaming_messages_item.py,sha256=pKMxLh1XFgMl7LqcjKJmdeKYTCwlr3FLFPTuvaLf3D0,883
@@ -358,7 +359,7 @@ letta_client/types/sleeptime_manager_update.py,sha256=JMzgtvGMDI5VBzlTuzm4FpuFAL
358
359
  letta_client/types/source.py,sha256=BsfE9yrefXREQtskGZnR-TFGqmHkFKIGHC5udtHUi14,2370
359
360
  letta_client/types/sse_server_config.py,sha256=IN-FdECflYF-XiIM_fvVOwyDu215Csoixepv44PAVvQ,1738
360
361
  letta_client/types/stdio_server_config.py,sha256=dEQ7bguiLikGemLxYZJ3JCmmEQgAMsSPO_P52oHZSl0,1091
361
- letta_client/types/step.py,sha256=iMc18pPufFs9Bs-QLYWWChZ0-Dy2WHhp9aJ_Dszb0uE,3338
362
+ letta_client/types/step.py,sha256=0s2j8j_nZ4oqH8BXBOgqycnqblUjR1zq8F1nwcYGBqU,3503
362
363
  letta_client/types/step_feedback.py,sha256=JXUkclvJ6C-6ZTgd2lteOxqEyO5KRDNQ8ronBPYMdbo,160
363
364
  letta_client/types/stop_reason_type.py,sha256=PyYTS9bIvCSDfzyG4wJyk6bi9fCdDBNsoleLd7nMJYI,228
364
365
  letta_client/types/streamable_http_server_config.py,sha256=ya5IZi_bHa3IW0SIbWuQfKXUqSAPlZ_qGZYXiwl4sh0,1775
@@ -414,6 +415,6 @@ letta_client/types/web_search_options_user_location_approximate.py,sha256=Ywk01J
414
415
  letta_client/version.py,sha256=bttKLbIhO3UonCYQlqs600zzbQgfhCCMjeXR9WRzid4,79
415
416
  letta_client/voice/__init__.py,sha256=FTtvy8EDg9nNNg9WCatVgKTRYV8-_v1roeGPAKoa_pw,65
416
417
  letta_client/voice/client.py,sha256=47iQYCuW_qpKI4hM3pYVxn3hw7kgQj3emU1_oRpkRMA,5811
417
- letta_client-0.1.185.dist-info/METADATA,sha256=TSjSmQpH8m4_MabZeDlT_bAnB7u8JXoa4mUmJDEjvLs,5177
418
- letta_client-0.1.185.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
419
- letta_client-0.1.185.dist-info/RECORD,,
418
+ letta_client-0.1.187.dist-info/METADATA,sha256=9IDHlKd5kBfbQZNBzvOwpf1vZe6xgterPQ7LQccZG9M,5177
419
+ letta_client-0.1.187.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
420
+ letta_client-0.1.187.dist-info/RECORD,,