AstrBot 4.5.2__py3-none-any.whl → 4.5.3__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.
@@ -4,7 +4,7 @@ import os
4
4
 
5
5
  from astrbot.core.utils.astrbot_path import get_astrbot_data_path
6
6
 
7
- VERSION = "4.5.2"
7
+ VERSION = "4.5.3"
8
8
  DB_PATH = os.path.join(get_astrbot_data_path(), "data_v4.db")
9
9
 
10
10
  # 默认配置
@@ -296,7 +296,15 @@ class ToolsRoute(Route):
296
296
  """获取所有注册的工具列表"""
297
297
  try:
298
298
  tools = self.tool_mgr.func_list
299
- tools_dict = [tool.__dict__() for tool in tools]
299
+ tools_dict = [
300
+ {
301
+ "name": tool.name,
302
+ "description": tool.description,
303
+ "parameters": tool.parameters,
304
+ "active": tool.active,
305
+ }
306
+ for tool in tools
307
+ ]
300
308
  return Response().ok(data=tools_dict).__dict__
301
309
  except Exception as e:
302
310
  logger.error(traceback.format_exc())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AstrBot
3
- Version: 4.5.2
3
+ Version: 4.5.3
4
4
  Summary: 易上手的多平台 LLM 聊天机器人及开发框架
5
5
  License-File: LICENSE
6
6
  Keywords: Astrbot,Astrbot Module,Astrbot Plugin
@@ -47,7 +47,7 @@ astrbot/core/agent/runners/base.py,sha256=5vDgK676B_39yTHfbWS324e9z4R8E5w4Q9HqqH
47
47
  astrbot/core/agent/runners/tool_loop_agent_runner.py,sha256=EjYPCImSv7bVRkN6ljS3qOS_yd37HoAUVz7cEQlutG0,14915
48
48
  astrbot/core/config/__init__.py,sha256=vZjtpC7vr-IvBgSUtbS04C0wpulmCG5tPmcEP1WYE_4,172
49
49
  astrbot/core/config/astrbot_config.py,sha256=nGyvHyR9VJH9Pk0XKYyeDFVxjwbyVb9u0lIsuvpe3fg,6276
50
- astrbot/core/config/default.py,sha256=lOUaxJi8DADBNZqhwL5Ld_-D2Ick6yLocctJUmlxK1E,133409
50
+ astrbot/core/config/default.py,sha256=MLApxqW-zrmRPZFQ10Tas2jPk4uGwVBDe9UWShKQxiQ,133409
51
51
  astrbot/core/db/__init__.py,sha256=XA1ootJl_SoMHG6sNUWNR5nj663JHvNF--WEM-hfd1o,8965
52
52
  astrbot/core/db/po.py,sha256=jLrmhbtqbnjZ1r7sS0WO6SZIubZr1FH04qmD64N4Y50,7845
53
53
  astrbot/core/db/sqlite.py,sha256=H7DOQDktJ3gRFwK0H9TFb3miJqnpx5pRFjwdTETWhWo,26520
@@ -252,10 +252,10 @@ astrbot/dashboard/routes/session_management.py,sha256=gb3fiGFFEu5RU3Yedh1hsSfPLP
252
252
  astrbot/dashboard/routes/stat.py,sha256=OgNM491WFuDSAQbbJUGl4_UsqrQNefOGMMRIPLLoVBQ,6780
253
253
  astrbot/dashboard/routes/static_file.py,sha256=7KnNcOb1BVqSTft114LhGsDkfg69X2jHEm0tOK0kW0Y,1169
254
254
  astrbot/dashboard/routes/t2i.py,sha256=F6smxdL99MF7cRw3hqS6-2GErw8Zhsv0V0mfBUeEk-c,8931
255
- astrbot/dashboard/routes/tools.py,sha256=d2ha0Cqog1wMvpr5lvL6fuHZF6tG8bliedgcOOntGOs,14427
255
+ astrbot/dashboard/routes/tools.py,sha256=YsVFrwVIhxAI-Ikme7YPrHVnPVTkJ1IaH7n6ciREjdE,14663
256
256
  astrbot/dashboard/routes/update.py,sha256=qXiqQ_dbqRVftOzGgCQrvK8-qopVK6zKhhVVJ9SK26U,6648
257
- astrbot-4.5.2.dist-info/METADATA,sha256=wugr2wWdBMdmhPc19b0r_v8OYFi_ShFehEosh2HjB2U,10968
258
- astrbot-4.5.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
259
- astrbot-4.5.2.dist-info/entry_points.txt,sha256=OEF09YmhBWYuViXrvTLLpstF4ccmNwDL8r7nnFD0pfI,53
260
- astrbot-4.5.2.dist-info/licenses/LICENSE,sha256=zPfQj5Mq8-gThIiBcxETr7t8gND9bZWOjTGQAr80TQI,34500
261
- astrbot-4.5.2.dist-info/RECORD,,
257
+ astrbot-4.5.3.dist-info/METADATA,sha256=Mu78zqWEBmEaEjSeZrv3QXQcnwcagNugL5tdamij61I,10968
258
+ astrbot-4.5.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
259
+ astrbot-4.5.3.dist-info/entry_points.txt,sha256=OEF09YmhBWYuViXrvTLLpstF4ccmNwDL8r7nnFD0pfI,53
260
+ astrbot-4.5.3.dist-info/licenses/LICENSE,sha256=zPfQj5Mq8-gThIiBcxETr7t8gND9bZWOjTGQAr80TQI,34500
261
+ astrbot-4.5.3.dist-info/RECORD,,