openhands-tools 1.8.1__py3-none-any.whl → 1.8.2__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.
@@ -118,13 +118,17 @@ class DelegateExecutor(ToolExecutor):
118
118
  parent_visualizer = parent_conversation._visualizer
119
119
  workspace_path = parent_conversation.state.workspace.working_dir
120
120
 
121
+ # Disable streaming for sub-agents since they run in
122
+ # separate threads without token callbacks
123
+ sub_agent_llm = parent_llm.model_copy(update={"stream": False})
124
+
121
125
  resolved_agent_types = [
122
126
  self._resolve_agent_type(action, i) for i in range(len(action.ids))
123
127
  ]
124
128
 
125
129
  for agent_id, agent_type in zip(action.ids, resolved_agent_types):
126
130
  factory = get_agent_factory(agent_type)
127
- worker_agent = factory.factory_func(parent_llm)
131
+ worker_agent = factory.factory_func(sub_agent_llm)
128
132
 
129
133
  if isinstance(parent_visualizer, DelegationVisualizer):
130
134
  sub_visualizer = DelegationVisualizer(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: openhands-tools
3
- Version: 1.8.1
3
+ Version: 1.8.2
4
4
  Summary: OpenHands Tools - Runtime tools for AI agents
5
5
  Requires-Python: >=3.12
6
6
  Requires-Dist: openhands-sdk
@@ -11,7 +11,7 @@ openhands/tools/browser_use/logging_fix.py,sha256=6h5RhHnwL5wYo31ThuIqSA5-6hgFFE
11
11
  openhands/tools/browser_use/server.py,sha256=KQ_ULLQcJX0NtzWOUJUlppwKkZsHejT8ygHbLD40FRI,7720
12
12
  openhands/tools/delegate/__init__.py,sha256=Z3q2fvnkFp_n4FBN9KeZG70W-Ud_xUyaI8XUKrugDCs,511
13
13
  openhands/tools/delegate/definition.py,sha256=o3Jxiv5-fG3Om_PHgOCju0COuAtQ9Ylx5hJRxtqEV2g,3827
14
- openhands/tools/delegate/impl.py,sha256=sLVuGk5H6zQVj74DWazHhFioNN-sC5LAs-MxMo5z21A,11839
14
+ openhands/tools/delegate/impl.py,sha256=Wpnf7EhirnCsb6XWFcB89hNEc8nZgMV4V4FEhuBGHHk,12039
15
15
  openhands/tools/delegate/registration.py,sha256=1kOY4x7hjT0wJ9Xvzledg5AhXmvzC8pOtcQxpr__XC8,3981
16
16
  openhands/tools/delegate/visualizer.py,sha256=uq3KO2leFO37j69OsanP9bL0Bo1HLXU8V0jJhjoPkBw,8347
17
17
  openhands/tools/delegate/templates/delegate_tool_description.j2,sha256=U7dx1QycfFaBrkg8sBaS8hJBTHuihL6_o9u_x62hzvY,1580
@@ -74,7 +74,7 @@ openhands/tools/tom_consult/definition.py,sha256=MTdOCOJaEGgOXhlJ9-x0HdhD6JiKNT2
74
74
  openhands/tools/tom_consult/executor.py,sha256=LkWeltj-7ZgLhVZKZP4cuhxqg2YuyRnqSz5S0U9WElk,16656
75
75
  openhands/tools/utils/__init__.py,sha256=AgJX59QLQTulZqIvJnUqM7LxAgsFhtqmgol-lKLc7Wc,1253
76
76
  openhands/tools/utils/timeout.py,sha256=AjKNLZa8NqQ0HllZzqWZwZMj-8PEWHHBXwOlMjTygpA,399
77
- openhands_tools-1.8.1.dist-info/METADATA,sha256=GIuc0crqb1kEmydgnUnioGVSloDXiADigWfzNZxULv4,418
78
- openhands_tools-1.8.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
79
- openhands_tools-1.8.1.dist-info/top_level.txt,sha256=jHgVu9I0Blam8BXFgedoGKfglPF8XvW1TsJFIjcgP4E,10
80
- openhands_tools-1.8.1.dist-info/RECORD,,
77
+ openhands_tools-1.8.2.dist-info/METADATA,sha256=1FwlaH-xmSAPAB_l7GziI1CnN6pXKDGrtuTtVhgtK4k,418
78
+ openhands_tools-1.8.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
79
+ openhands_tools-1.8.2.dist-info/top_level.txt,sha256=jHgVu9I0Blam8BXFgedoGKfglPF8XvW1TsJFIjcgP4E,10
80
+ openhands_tools-1.8.2.dist-info/RECORD,,