kweaver-dolphin 0.2.1__py3-none-any.whl → 0.2.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.
@@ -1944,6 +1944,21 @@ class BasicCodeBlock:
1944
1944
  )
1945
1945
  continue
1946
1946
 
1947
+ # SDK automatically adds interrupt_config to ALL dynamically loaded tools
1948
+ # This ensures dynamic tools require user confirmation for safety
1949
+ # Dynamic tools do not need to provide interrupt_config themselves
1950
+ tool_description = tool_def.get("description", tool_name)
1951
+ auto_interrupt_config = {
1952
+ "requires_confirmation": True,
1953
+ "confirmation_message": (
1954
+ f"即将调用「{tool_name}」工具,是否确认执行?"
1955
+ )
1956
+ }
1957
+ tool_instance.interrupt_config = auto_interrupt_config
1958
+ self.context.debug(
1959
+ f"[_load_dynamic_tools] Auto-applied interrupt protection to dynamic tool: {tool_name}"
1960
+ )
1961
+
1947
1962
  # Add tool instance to skillkit
1948
1963
  current_skillkit.addSkill(tool_instance)
1949
1964
  loaded_count += 1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kweaver-dolphin
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Dolphin Language - An intelligent agent framework
5
5
  Author-email: AnyData <contact@anydata.com>
6
6
  License: Apache 2.0
@@ -33,7 +33,7 @@ dolphin/core/agent/base_agent.py,sha256=MC4cY_oE9hPYtUjZMKOLxDimxVMwyPWIpnjvXRdS
33
33
  dolphin/core/code_block/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
34
  dolphin/core/code_block/agent_init_block.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
35
  dolphin/core/code_block/assign_block.py,sha256=xbPiQOkFAbrcRDnwkcNN2tfxy7OG8IXPPbjlCM1KJ9I,4124
36
- dolphin/core/code_block/basic_code_block.py,sha256=XgKmkkCptgYB5CJRyK9Ky501yCrgjJyzPm8dJCtkMHE,81299
36
+ dolphin/core/code_block/basic_code_block.py,sha256=a7F1z4k746lqxipzS3OGRYiO1aoM4oEAWG_UMD3feiw,82128
37
37
  dolphin/core/code_block/explore_block.py,sha256=dlYJ4VQMNG6-iFbwzE4CCCcNE_fVQJatB9kVJNUHNp8,71609
38
38
  dolphin/core/code_block/explore_block_v2.py,sha256=gKNxQRkTHnZb-HiJ467YOO-Ftoq4lBVtfobEPn1m03o,32614
39
39
  dolphin/core/code_block/explore_strategy.py,sha256=m_HWs9dtTiLuyC37JrPUR4Hpcl4jseEoFIQtpPFTaZU,22882
@@ -193,9 +193,9 @@ dolphin/sdk/runtime/env.py,sha256=OU0CEZuVXgdQPeNsYq6BhFETcc-Q2vcAp6jLvOrEsbU,12
193
193
  dolphin/sdk/skill/__init__.py,sha256=zzfHgrxIWxUEFH1HMiwb08U1M1ukHcdNtFqKi3Sg1ug,246
194
194
  dolphin/sdk/skill/global_skills.py,sha256=uYgzwSLKsdlb5Y5dhOxr00JSeuOx4fHF1aDgrHh7UGs,29466
195
195
  dolphin/sdk/skill/traditional_toolkit.py,sha256=Yyejm1LCUDVfXb1MCiaiT2tyFsrW0bj0uvKa5VjA8FM,9355
196
- kweaver_dolphin-0.2.1.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
197
- kweaver_dolphin-0.2.1.dist-info/METADATA,sha256=hh9Fw6_xCR2MzwAlJ6Jooskgu2uRlvTykUav-GmpYWU,15420
198
- kweaver_dolphin-0.2.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
199
- kweaver_dolphin-0.2.1.dist-info/entry_points.txt,sha256=iiLRmsPjhVBJvL4XZmoSdbr0-4cIjRQ1cFkJqSdEWE0,718
200
- kweaver_dolphin-0.2.1.dist-info/top_level.txt,sha256=vwNhnr4e0NgKRTfM56xcCfo9t2ZebTbbPF38xpBYiq0,27
201
- kweaver_dolphin-0.2.1.dist-info/RECORD,,
196
+ kweaver_dolphin-0.2.2.dist-info/licenses/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
197
+ kweaver_dolphin-0.2.2.dist-info/METADATA,sha256=UpzW65nkXBYURsD2IVFuyaHie8Sttc6oF--XoMnjzT4,15420
198
+ kweaver_dolphin-0.2.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
199
+ kweaver_dolphin-0.2.2.dist-info/entry_points.txt,sha256=iiLRmsPjhVBJvL4XZmoSdbr0-4cIjRQ1cFkJqSdEWE0,718
200
+ kweaver_dolphin-0.2.2.dist-info/top_level.txt,sha256=vwNhnr4e0NgKRTfM56xcCfo9t2ZebTbbPF38xpBYiq0,27
201
+ kweaver_dolphin-0.2.2.dist-info/RECORD,,