letta-client 0.1.151__py3-none-any.whl → 0.1.154__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/core/client_wrapper.py +1 -1
- letta_client/types/child_tool_rule.py +5 -0
- letta_client/types/conditional_tool_rule.py +5 -0
- letta_client/types/continue_tool_rule.py +4 -0
- letta_client/types/init_tool_rule.py +4 -0
- letta_client/types/max_count_per_step_tool_rule.py +5 -0
- letta_client/types/parent_tool_rule.py +5 -0
- letta_client/types/terminal_tool_rule.py +4 -0
- {letta_client-0.1.151.dist-info → letta_client-0.1.154.dist-info}/METADATA +1 -1
- {letta_client-0.1.151.dist-info → letta_client-0.1.154.dist-info}/RECORD +11 -11
- {letta_client-0.1.151.dist-info → letta_client-0.1.154.dist-info}/WHEEL +0 -0
|
@@ -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.
|
|
19
|
+
"X-Fern-SDK-Version": "0.1.154",
|
|
20
20
|
}
|
|
21
21
|
if self.token is not None:
|
|
22
22
|
headers["Authorization"] = f"Bearer {self.token}"
|
|
@@ -17,6 +17,11 @@ class ChildToolRule(UncheckedBaseModel):
|
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
type: typing.Literal["constrain_child_tools"] = "constrain_child_tools"
|
|
20
|
+
prompt_template: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
|
+
"""
|
|
22
|
+
Optional Jinja2 template for generating agent prompt about this tool rule.
|
|
23
|
+
"""
|
|
24
|
+
|
|
20
25
|
children: typing.List[str] = pydantic.Field()
|
|
21
26
|
"""
|
|
22
27
|
The children tools that can be invoked.
|
|
@@ -17,6 +17,11 @@ class ConditionalToolRule(UncheckedBaseModel):
|
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
type: typing.Literal["conditional"] = "conditional"
|
|
20
|
+
prompt_template: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
|
+
"""
|
|
22
|
+
Optional Jinja2 template for generating agent prompt about this tool rule.
|
|
23
|
+
"""
|
|
24
|
+
|
|
20
25
|
default_child: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
26
|
"""
|
|
22
27
|
The default child tool to be called. If None, any tool can be called.
|
|
@@ -17,6 +17,10 @@ class ContinueToolRule(UncheckedBaseModel):
|
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
type: typing.Literal["continue_loop"] = "continue_loop"
|
|
20
|
+
prompt_template: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
|
+
"""
|
|
22
|
+
Optional Jinja2 template for generating agent prompt about this tool rule.
|
|
23
|
+
"""
|
|
20
24
|
|
|
21
25
|
if IS_PYDANTIC_V2:
|
|
22
26
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -17,6 +17,10 @@ class InitToolRule(UncheckedBaseModel):
|
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
type: typing.Literal["run_first"] = "run_first"
|
|
20
|
+
prompt_template: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
|
+
"""
|
|
22
|
+
Optional Jinja2 template for generating agent prompt about this tool rule. Template can use variables like 'tool_name' and rule-specific attributes.
|
|
23
|
+
"""
|
|
20
24
|
|
|
21
25
|
if IS_PYDANTIC_V2:
|
|
22
26
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -17,6 +17,11 @@ class MaxCountPerStepToolRule(UncheckedBaseModel):
|
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
type: typing.Literal["max_count_per_step"] = "max_count_per_step"
|
|
20
|
+
prompt_template: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
|
+
"""
|
|
22
|
+
Optional Jinja2 template for generating agent prompt about this tool rule.
|
|
23
|
+
"""
|
|
24
|
+
|
|
20
25
|
max_count_limit: int = pydantic.Field()
|
|
21
26
|
"""
|
|
22
27
|
The max limit for the total number of times this tool can be invoked in a single step.
|
|
@@ -17,6 +17,11 @@ class ParentToolRule(UncheckedBaseModel):
|
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
type: typing.Literal["parent_last_tool"] = "parent_last_tool"
|
|
20
|
+
prompt_template: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
|
+
"""
|
|
22
|
+
Optional Jinja2 template for generating agent prompt about this tool rule.
|
|
23
|
+
"""
|
|
24
|
+
|
|
20
25
|
children: typing.List[str] = pydantic.Field()
|
|
21
26
|
"""
|
|
22
27
|
The children tools that can be invoked.
|
|
@@ -17,6 +17,10 @@ class TerminalToolRule(UncheckedBaseModel):
|
|
|
17
17
|
"""
|
|
18
18
|
|
|
19
19
|
type: typing.Literal["exit_loop"] = "exit_loop"
|
|
20
|
+
prompt_template: typing.Optional[str] = pydantic.Field(default=None)
|
|
21
|
+
"""
|
|
22
|
+
Optional Jinja2 template for generating agent prompt about this tool rule.
|
|
23
|
+
"""
|
|
20
24
|
|
|
21
25
|
if IS_PYDANTIC_V2:
|
|
22
26
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -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=
|
|
65
|
+
letta_client/core/client_wrapper.py,sha256=HbaKd4-OfzTItWmtp67hMQl7HAWLl7e9OtC48hoAHTg,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
|
|
@@ -204,7 +204,7 @@ letta_client/types/chat_completion_tool_param.py,sha256=jwgKq_3AW8ybc9xVr9JyNSFq
|
|
|
204
204
|
letta_client/types/chat_completion_user_message_param.py,sha256=EWz44TKVGV7B2BcPSJ8Qr8R8unJXzsN4R9ziixZvrZs,786
|
|
205
205
|
letta_client/types/chat_completion_user_message_param_content.py,sha256=XNFFnok5yM6oBXB6aiUo0aFw53jT8BUjt88HFjJUiU8,297
|
|
206
206
|
letta_client/types/chat_completion_user_message_param_content_item.py,sha256=ONQbm9RX1bbM9KO8a9mbWHyUEIuOq70wPiVFMhagLbU,579
|
|
207
|
-
letta_client/types/child_tool_rule.py,sha256=
|
|
207
|
+
letta_client/types/child_tool_rule.py,sha256=GjRjRV2c4VF3h0fXNF75_yaZgHxSnAf75RRnfW1VvqM,1120
|
|
208
208
|
letta_client/types/child_tool_rule_schema.py,sha256=1FrJDSyQvQ6eEyKUIvuNFfGzbrTdSdUfJg4gpNo6DrM,614
|
|
209
209
|
letta_client/types/completion_create_params_non_streaming.py,sha256=hjEJ-wJWuFuTy4Y73RIllBa1EMisK9gr7yQd8rrv_r8,4008
|
|
210
210
|
letta_client/types/completion_create_params_non_streaming_function_call.py,sha256=6iCjgXwsXnflllhfDDKtHRyxzKqtLcX6-HVr7AXlyUM,329
|
|
@@ -227,11 +227,11 @@ letta_client/types/completion_create_params_streaming_service_tier.py,sha256=chH
|
|
|
227
227
|
letta_client/types/completion_create_params_streaming_stop.py,sha256=dSyQDu851QyeoRjpoE2JBIyKIYGO5jVx6UIH-bLiQwo,154
|
|
228
228
|
letta_client/types/completion_create_params_streaming_tool_choice.py,sha256=w_JLYtdz8eHzF2lwlMaMGpnOl8_4mjGbsDOSpMyM5cg,343
|
|
229
229
|
letta_client/types/components_schemas_text_content.py,sha256=F21GPPwREb6GodS4dGsT7-4wySEUdhpq6krznF-sOPE,147
|
|
230
|
-
letta_client/types/conditional_tool_rule.py,sha256=
|
|
230
|
+
letta_client/types/conditional_tool_rule.py,sha256=gqABxLNqaP1zGj0Cnq3w7STClhmpb-yNXkU5U5BT2Uo,1463
|
|
231
231
|
letta_client/types/conditional_tool_rule_schema.py,sha256=hP1TA-lrmlwOk1tbsngyhW-8NGFuf3Prln3vHdQJjsM,717
|
|
232
232
|
letta_client/types/conflict_error_body.py,sha256=Mena-q1jti6nv_7-xrp6sDb_5MXNKPGobHrhpnz9kpY,787
|
|
233
233
|
letta_client/types/context_window_overview.py,sha256=9pwiObSxu-SFyQ1pxSTlQiRatVAyFgqa6t0_qrrsGfU,2815
|
|
234
|
-
letta_client/types/continue_tool_rule.py,sha256=
|
|
234
|
+
letta_client/types/continue_tool_rule.py,sha256=cGKyCh9LwxXJfWKEi8HMAcyBv3QTrmZkwt9YugzwtqY,1035
|
|
235
235
|
letta_client/types/core_memory_block_schema.py,sha256=DGHyLAcFhHBm7oXkhkGIkkckcl9S2bCaU9b3qrUeNtc,984
|
|
236
236
|
letta_client/types/create_block.py,sha256=cyyufU4MBcLGjCNeTFZE7TX4LUhQXIaZAVwaoYkMlpE,1562
|
|
237
237
|
letta_client/types/dynamic_manager.py,sha256=5DRNqtUnjeTwOe5mkNB-SXItqLOfEX0avSrwsrJt1Aw,853
|
|
@@ -262,7 +262,7 @@ letta_client/types/image_content.py,sha256=A8CwPQVK6t3YZMIMuaeb7TlVeKiwKToUadqXq
|
|
|
262
262
|
letta_client/types/image_content_source.py,sha256=4kCFWRyJzxmhbOVOBvoxiFTmbYPj0FqqgyXXgOE26JE,256
|
|
263
263
|
letta_client/types/image_url.py,sha256=re4N2AsAvOFl2nS6v8jOi3jVFppBs-3zhwpBKHSuCLs,648
|
|
264
264
|
letta_client/types/image_url_detail.py,sha256=YFT9wyf8hqeKhQjRWMv97y-fbU2DB-oCbU5BpUcHWVU,161
|
|
265
|
-
letta_client/types/init_tool_rule.py,sha256=
|
|
265
|
+
letta_client/types/init_tool_rule.py,sha256=OOyOBBnf7F3FR5enKPjzCYSPiGmTDm0zSzZFFlFNwtI,1043
|
|
266
266
|
letta_client/types/input_audio.py,sha256=fxFmzR3I2ZyxpCc1cuVwKQClgnKGBuY8yZYhYC5SqtU,633
|
|
267
267
|
letta_client/types/input_audio_format.py,sha256=QQFfndI9w66wIbGyHwfmJnk2bEJDPmEs9GybkaNL6AI,154
|
|
268
268
|
letta_client/types/internal_server_error_body.py,sha256=xR9n1zptgmImbH6apQAuwBblYOWAYNLFzY8s0SUcEug,653
|
|
@@ -288,7 +288,7 @@ letta_client/types/llm_config_model_endpoint_type.py,sha256=HOSM5kIZDCNAVCWmASvA
|
|
|
288
288
|
letta_client/types/llm_config_reasoning_effort.py,sha256=AHL2nI5aeTfPhijnhaL3aiP8EoJhy_Wdupi2pyMm4sA,173
|
|
289
289
|
letta_client/types/local_sandbox_config.py,sha256=jfe7akG_YrJJ8csLaLdev04Zg1x-PTN0XCAL4KifaZI,1387
|
|
290
290
|
letta_client/types/manager_type.py,sha256=3ztXv2xWw6PIgDoqqxaHwdIcssDYqdqB0KqUDSW3Bc0,222
|
|
291
|
-
letta_client/types/max_count_per_step_tool_rule.py,sha256=
|
|
291
|
+
letta_client/types/max_count_per_step_tool_rule.py,sha256=6vBWeGH2FW3ze--lr4DVuqG5aikPjKAAwHd4bfv4YcM,1225
|
|
292
292
|
letta_client/types/max_count_per_step_tool_rule_schema.py,sha256=1Zq4vblRTqFycqk7cBQ3gVCUy-MPWvE_tNXV5Fz0VTs,618
|
|
293
293
|
letta_client/types/mcp_server_type.py,sha256=Hv45mKMPzmey2UVjwrTAvWXP1sDd13UwAtvtogBloLo,153
|
|
294
294
|
letta_client/types/mcp_tool.py,sha256=_GSTb0k8l-IUEflRkQ6-v45UnbTcA4Nv1N8sgmExJQ0,912
|
|
@@ -312,7 +312,7 @@ letta_client/types/organization_create.py,sha256=qi37VLCejxTYpJe9gC1slhENIdz6B4D
|
|
|
312
312
|
letta_client/types/organization_update.py,sha256=uCQAcWm8az3VbMtCEidPBZLh6Qyo4Z0FQco1Hdrk4LY,814
|
|
313
313
|
letta_client/types/parameter_properties.py,sha256=KVQGp_csoiNzyf9XsL083fwlX_a2Tc8GsCKyWB323C8,609
|
|
314
314
|
letta_client/types/parameters_schema.py,sha256=ptXcwjuaCwqRhfizeiWAsu3pqT87Jcj_P3YaEkL4asM,748
|
|
315
|
-
letta_client/types/parent_tool_rule.py,sha256=
|
|
315
|
+
letta_client/types/parent_tool_rule.py,sha256=YPWpQDp54vdLxLKp4sOgdcUBbU1oEVYqU6HZxoL9Skg,1133
|
|
316
316
|
letta_client/types/passage.py,sha256=k2EGG94WMFA3wsoL6Vd9ax18S2Nk7i_HlXvV5Dw5S4Y,3171
|
|
317
317
|
letta_client/types/payment_required_error_body.py,sha256=CXPzl1jrozG5PAiJakOK29qmgo5az8FQu_MVmEBxsK4,589
|
|
318
318
|
letta_client/types/pip_requirement.py,sha256=Hmh7VpJhdSfFkafh6QwAehCp0MQUBXv1YAoYP-2wV2M,773
|
|
@@ -349,7 +349,7 @@ letta_client/types/supervisor_manager.py,sha256=VdR1ySp4k43apxM8Bb5uNoBvADsvz8oM
|
|
|
349
349
|
letta_client/types/supervisor_manager_update.py,sha256=UJ_TcWcF_PK152Gni0tgRCe3bthCgJbQHCZIb5LLsL0,711
|
|
350
350
|
letta_client/types/system_message.py,sha256=Dn1GkT1INUGLHkwBsqJL0HtkcGXx0CAKqzSl34jZ4xM,1302
|
|
351
351
|
letta_client/types/tag_schema.py,sha256=FEszKlRD2FqezKlX99OLqTqf46dONlcGPo1m43osdNo,553
|
|
352
|
-
letta_client/types/terminal_tool_rule.py,sha256=
|
|
352
|
+
letta_client/types/terminal_tool_rule.py,sha256=E9XJMsIOAAERnTztXhbB0z4P-oBH0BxnXpGm9zbn3HM,1031
|
|
353
353
|
letta_client/types/text_content.py,sha256=Z8UL4Sqqq2qClKU_nCgR9XFCj3dwYyhZMmvnnz1F0AE,670
|
|
354
354
|
letta_client/types/text_response_format.py,sha256=daIziOp-O4cEDqFH1CSIqb0p5BL721_kA0JSOtWlt0k,654
|
|
355
355
|
letta_client/types/tool.py,sha256=Mj2jm6dtDDMdTFLx4BZeJQ5oVCxIlGBjq3glQBuDUKM,2838
|
|
@@ -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.
|
|
400
|
-
letta_client-0.1.
|
|
401
|
-
letta_client-0.1.
|
|
399
|
+
letta_client-0.1.154.dist-info/METADATA,sha256=VXnDiNaqzxLjGVW2w1Rda7vbAO0ebJqPI6RKcY888Gw,5093
|
|
400
|
+
letta_client-0.1.154.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
401
|
+
letta_client-0.1.154.dist-info/RECORD,,
|
|
File without changes
|