letta-nightly 0.6.17.dev20250129174639__py3-none-any.whl → 0.6.18.dev20250130001035__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-nightly might be problematic. Click here for more details.

letta/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.6.17"
1
+ __version__ = "0.6.18"
2
2
 
3
3
 
4
4
  # import clients
letta/agent.py CHANGED
@@ -235,6 +235,7 @@ class Agent(BaseAgent):
235
235
  # TODO: This is only temporary, can remove after we publish a pip package with this object
236
236
  agent_state_copy = self.agent_state.__deepcopy__()
237
237
  agent_state_copy.tools = []
238
+ agent_state_copy.tool_rules = []
238
239
 
239
240
  sandbox_run_result = ToolExecutionSandbox(function_name, function_args, self.user).run(agent_state=agent_state_copy)
240
241
  function_response, updated_agent_state = sandbox_run_result.func_return, sandbox_run_result.agent_state
@@ -84,11 +84,11 @@ class ToolRulesColumn(TypeDecorator):
84
84
  def deserialize_tool_rule(data: dict) -> Union[ChildToolRule, InitToolRule, TerminalToolRule, ConditionalToolRule]:
85
85
  """Deserialize a dictionary to the appropriate ToolRule subclass based on the 'type'."""
86
86
  rule_type = ToolRuleType(data.get("type")) # Remove 'type' field if it exists since it is a class var
87
- if rule_type == ToolRuleType.run_first:
87
+ if rule_type == ToolRuleType.run_first or rule_type == "InitToolRule":
88
88
  return InitToolRule(**data)
89
- elif rule_type == ToolRuleType.exit_loop:
89
+ elif rule_type == ToolRuleType.exit_loop or rule_type == "TerminalToolRule":
90
90
  return TerminalToolRule(**data)
91
- elif rule_type == ToolRuleType.constrain_child_tools:
91
+ elif rule_type == ToolRuleType.constrain_child_tools or rule_type == "ToolRule":
92
92
  rule = ChildToolRule(**data)
93
93
  return rule
94
94
  elif rule_type == ToolRuleType.conditional:
letta/schemas/enums.py CHANGED
@@ -46,9 +46,13 @@ class ToolRuleType(str, Enum):
46
46
 
47
47
  # note: some of these should be renamed when we do the data migration
48
48
 
49
- run_first = "InitToolRule"
50
- exit_loop = "TerminalToolRule" # reasoning loop should exit
51
- continue_loop = "continue_loop" # reasoning loop should continue
49
+ run_first = "run_first"
50
+ exit_loop = "exit_loop" # reasoning loop should exit
51
+ continue_loop = "continue_loop"
52
52
  conditional = "conditional"
53
- constrain_child_tools = "ToolRule"
53
+ constrain_child_tools = "constrain_child_tools"
54
54
  require_parent_tools = "require_parent_tools"
55
+ # Deprecated
56
+ InitToolRule = "InitToolRule"
57
+ TerminalToolRule = "TerminalToolRule"
58
+ ToolRule = "ToolRule"
@@ -9,7 +9,7 @@ from letta.schemas.letta_base import LettaBase
9
9
  class BaseToolRule(LettaBase):
10
10
  __id_prefix__ = "tool_rule"
11
11
  tool_name: str = Field(..., description="The name of the tool. Must exist in the database for the user's organization.")
12
- type: ToolRuleType
12
+ type: ToolRuleType = Field(..., description="The type of the message.")
13
13
 
14
14
 
15
15
  class ChildToolRule(BaseToolRule):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: letta-nightly
3
- Version: 0.6.17.dev20250129174639
3
+ Version: 0.6.18.dev20250130001035
4
4
  Summary: Create LLM agents with long-term memory and custom tools
5
5
  License: Apache License
6
6
  Author: Letta Team
@@ -1,6 +1,6 @@
1
- letta/__init__.py,sha256=45zX5RUC_aJSVvqltsKJXMJfygW8OOpzVbqb9unbegU,919
1
+ letta/__init__.py,sha256=miVneq4P2HPsFdF5o5Al9XJqEGpfWLVP6FprMA2xAhU,919
2
2
  letta/__main__.py,sha256=6Hs2PV7EYc5Tid4g4OtcLXhqVHiNYTGzSBdoOnW2HXA,29
3
- letta/agent.py,sha256=VzVh9ZpRElA1n0pGqMkb70FXatOn_Yk1Zaa-aWIpUZE,56526
3
+ letta/agent.py,sha256=3-YDxRLMKPrXnmvZ1qstG2MmH9FU9cUQ0cDYZbFQ9eM,56575
4
4
  letta/benchmark/benchmark.py,sha256=ebvnwfp3yezaXOQyGXkYCDYpsmre-b9hvNtnyx4xkG0,3701
5
5
  letta/benchmark/constants.py,sha256=aXc5gdpMGJT327VuxsT5FngbCK2J41PQYeICBO7g_RE,536
6
6
  letta/chat_only_agent.py,sha256=71Lf-df8y3nsE9IFKpEigaZaWHoWnXnhVChkp1L-83I,4760
@@ -92,7 +92,7 @@ letta/orm/agents_tags.py,sha256=dYSnHz4IWBjyOiQ4RJomX3P0QN76JTlEZEw5eJM6Emg,925
92
92
  letta/orm/base.py,sha256=VjvxF9TwKF9Trf8BJkDgf7D6KrWWopOkUiF18J3IElk,3071
93
93
  letta/orm/block.py,sha256=EjH8lXexHtFIHJ8G-RjNo2oAH834x0Hbn4CER9S4U74,3880
94
94
  letta/orm/blocks_agents.py,sha256=W0dykl9OchAofSuAYZD5zNmhyMabPr9LTJrz-I3A0m4,983
95
- letta/orm/custom_columns.py,sha256=EML5AE5FQ4ugI8MGj4yqfmwBrw7YAcp4_dO6i9oQs6I,5192
95
+ letta/orm/custom_columns.py,sha256=grgUo4kIAd-xsFsWSsOzv3Bw51SA8XZHEJJstLcRI1I,5285
96
96
  letta/orm/enums.py,sha256=HzX3eXhBH-PnpxhBWtWbkV4J6wrStlJaX_OVdZgAdLU,428
97
97
  letta/orm/errors.py,sha256=Se0Guz-gqi-D36NUWSh7AP9zTVCSph9KgZh_trwng4o,734
98
98
  letta/orm/file.py,sha256=7_p7LxityP3NQZVURQYG0kgcZhEkVuMN0Fj4h9YOe1w,1780
@@ -143,7 +143,7 @@ letta/schemas/agent.py,sha256=VmzzaRb4HA20fahzUxU2JOdcIxt2ywLFdTRjbR6Ogyk,11783
143
143
  letta/schemas/block.py,sha256=FYYmRWjH4d4QHMUx_nmIXjv_qJna_l-Ip_4i51wDBPA,5942
144
144
  letta/schemas/embedding_config.py,sha256=RkLbUorFkMWr1tPkn6c2aHrnICjWTbhPY86tIncwXyA,3373
145
145
  letta/schemas/embedding_config_overrides.py,sha256=lkTa4y-EQ2RnaEKtKDM0sEAk7EwNa67REw8DGNNtGQY,84
146
- letta/schemas/enums.py,sha256=UUkeGQNw-9vButo1AXVZLKggLo8QsfO8Zm_fM5pD_zA,1125
146
+ letta/schemas/enums.py,sha256=jfuke35XP_AKfHHBnH1rx1wYjUDWqgDsKnRxdrCpTKA,1213
147
147
  letta/schemas/environment_variables.py,sha256=VRtzOjdeQdHcSHXisk7oJUQlheruxhSWNS0xqlfGzbs,2429
148
148
  letta/schemas/file.py,sha256=ChN2CWzLI2TT9WLItcfElEH0E8b7kzPylF2OQBr6Beg,1550
149
149
  letta/schemas/health.py,sha256=zT6mYovvD17iJRuu2rcaQQzbEEYrkwvAE9TB7iU824c,139
@@ -169,7 +169,7 @@ letta/schemas/sandbox_config.py,sha256=v32V5T73X-VxhDk0g_1RGniK985KMvg2xyLVi1dvM
169
169
  letta/schemas/source.py,sha256=-BQVolcXA2ziCu2ztR6cbTdGUc8G7vGJy7rvpdf1hpg,2880
170
170
  letta/schemas/step.py,sha256=cCmDChQMndy7aMJGH0Z19VbzJkAeFTYuA0cJpzjW2g0,1928
171
171
  letta/schemas/tool.py,sha256=uv3WxTt9SzaoXzwTLNHT2wegWTcaBFQBnBvNJrxeYvs,11022
172
- letta/schemas/tool_rule.py,sha256=LJwi1T474-3zbFGiW7_fegyfduC3F2u7cdlBsV0U_IU,1679
172
+ letta/schemas/tool_rule.py,sha256=SaMHAO5-hlhceQJjz2mDpb7rAN0eDm5yIItDEE7op8o,1732
173
173
  letta/schemas/usage.py,sha256=8oYRH-JX0PfjIu2zkT5Uu3UWQ7Unnz_uHiO8hRGI4m0,912
174
174
  letta/schemas/user.py,sha256=V32Tgl6oqB3KznkxUz12y7agkQicjzW7VocSpj78i6Q,1526
175
175
  letta/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -236,8 +236,8 @@ letta/streaming_interface.py,sha256=lo2VAQRUJOdWTijwnXuKOC9uejqr2siUAEmZiQUXkj8,
236
236
  letta/streaming_utils.py,sha256=jLqFTVhUL76FeOuYk8TaRQHmPTf3HSRc2EoJwxJNK6U,11946
237
237
  letta/system.py,sha256=3jevN1QOScahsuEW-cavI3GsmiNDTkWryEukb1WTRTo,7752
238
238
  letta/utils.py,sha256=lgBDWKmrQrmJGPxcgamFC2aJyi6I0dX7bzLBt3YC6j0,34051
239
- letta_nightly-0.6.17.dev20250129174639.dist-info/LICENSE,sha256=mExtuZ_GYJgDEI38GWdiEYZizZS4KkVt2SF1g_GPNhI,10759
240
- letta_nightly-0.6.17.dev20250129174639.dist-info/METADATA,sha256=tgyuWyEUF9fknxPR4_UDvj-vfT9yORcFe47L17LOpJk,22156
241
- letta_nightly-0.6.17.dev20250129174639.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
242
- letta_nightly-0.6.17.dev20250129174639.dist-info/entry_points.txt,sha256=2zdiyGNEZGV5oYBuS-y2nAAgjDgcC9yM_mHJBFSRt5U,40
243
- letta_nightly-0.6.17.dev20250129174639.dist-info/RECORD,,
239
+ letta_nightly-0.6.18.dev20250130001035.dist-info/LICENSE,sha256=mExtuZ_GYJgDEI38GWdiEYZizZS4KkVt2SF1g_GPNhI,10759
240
+ letta_nightly-0.6.18.dev20250130001035.dist-info/METADATA,sha256=RSYhMZKHioPpNLG45eWY6hhtyulvh29yVtQPPTdFrJc,22156
241
+ letta_nightly-0.6.18.dev20250130001035.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
242
+ letta_nightly-0.6.18.dev20250130001035.dist-info/entry_points.txt,sha256=2zdiyGNEZGV5oYBuS-y2nAAgjDgcC9yM_mHJBFSRt5U,40
243
+ letta_nightly-0.6.18.dev20250130001035.dist-info/RECORD,,