AstrBot 4.12.2__py3-none-any.whl → 4.12.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.
astrbot/cli/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "4.12.2"
1
+ __version__ = "4.12.3"
@@ -34,7 +34,7 @@ class MainAgentHooks(BaseAgentRunHooks[AstrAgentContext]):
34
34
  ):
35
35
  await call_event_hook(
36
36
  run_context.context.event,
37
- EventType.OnCallingFuncToolEvent,
37
+ EventType.OnUsingLLMToolEvent,
38
38
  tool,
39
39
  tool_args,
40
40
  )
@@ -49,7 +49,7 @@ class MainAgentHooks(BaseAgentRunHooks[AstrAgentContext]):
49
49
  run_context.context.event.clear_result()
50
50
  await call_event_hook(
51
51
  run_context.context.event,
52
- EventType.OnAfterCallingFuncToolEvent,
52
+ EventType.OnLLMToolRespondEvent,
53
53
  tool,
54
54
  tool_args,
55
55
  tool_result,
@@ -5,7 +5,7 @@ from typing import Any, TypedDict
5
5
 
6
6
  from astrbot.core.utils.astrbot_path import get_astrbot_data_path
7
7
 
8
- VERSION = "4.12.2"
8
+ VERSION = "4.12.3"
9
9
  DB_PATH = os.path.join(get_astrbot_data_path(), "data_v4.db")
10
10
 
11
11
  WEBHOOK_SUPPORTED_PLATFORMS = [
@@ -427,7 +427,7 @@ def register_on_using_llm_tool(**kwargs):
427
427
  """
428
428
 
429
429
  def decorator(awaitable):
430
- _ = get_handler_or_create(awaitable, EventType.OnCallingFuncToolEvent, **kwargs)
430
+ _ = get_handler_or_create(awaitable, EventType.OnUsingLLMToolEvent, **kwargs)
431
431
  return awaitable
432
432
 
433
433
  return decorator
@@ -453,7 +453,7 @@ def register_on_llm_tool_respond(**kwargs):
453
453
 
454
454
  def decorator(awaitable):
455
455
  _ = get_handler_or_create(
456
- awaitable, EventType.OnAfterCallingFuncToolEvent, **kwargs
456
+ awaitable, EventType.OnLLMToolRespondEvent, **kwargs
457
457
  )
458
458
  return awaitable
459
459
 
@@ -189,7 +189,8 @@ class EventType(enum.Enum):
189
189
  OnLLMResponseEvent = enum.auto() # LLM 响应后
190
190
  OnDecoratingResultEvent = enum.auto() # 发送消息前
191
191
  OnCallingFuncToolEvent = enum.auto() # 调用函数工具
192
- OnAfterCallingFuncToolEvent = enum.auto() # 调用函数工具后
192
+ OnUsingLLMToolEvent = enum.auto() # 使用 LLM 工具
193
+ OnLLMToolRespondEvent = enum.auto() # 调用函数工具后
193
194
  OnAfterMessageSentEvent = enum.auto() # 发送消息后
194
195
 
195
196
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AstrBot
3
- Version: 4.12.2
3
+ Version: 4.12.3
4
4
  Summary: Easy-to-use multi-platform LLM chatbot and development framework
5
5
  License-File: LICENSE
6
6
  Keywords: Astrbot,Astrbot Module,Astrbot Plugin
@@ -38,7 +38,7 @@ astrbot/builtin_stars/web_searcher/metadata.yaml,sha256=aHAKtP8UZJaddzIN2eFfglTO
38
38
  astrbot/builtin_stars/web_searcher/engines/__init__.py,sha256=Gcp7k6m3w2Pb-hNCe3QIiYa9smQFcEzmb7jcfg2evuw,4300
39
39
  astrbot/builtin_stars/web_searcher/engines/bing.py,sha256=pn3DPR-5SO2D_RtBIU3l9Ph7PTUB-FCZAMCYuk6kd6Q,1035
40
40
  astrbot/builtin_stars/web_searcher/engines/sogo.py,sha256=YA7pA5-335r7UgKpyUPAeGGZQbYEwDBO8bm08Ro8Xg0,1701
41
- astrbot/cli/__init__.py,sha256=ZaKQqt8t3pg_oyKeDTrMwS3Db5zofE4zQpVPaA937v4,23
41
+ astrbot/cli/__init__.py,sha256=LtJJT-N2C4wfhlyta9r5GprhH10h1L-1Bim6x9FBP9E,23
42
42
  astrbot/cli/__main__.py,sha256=QobgMyFoLNTgI_OYddhGOZ9ZvQeBVjjz79mA2cC2OEU,1758
43
43
  astrbot/cli/commands/__init__.py,sha256=eAgppZQIqFO1ylQJFABeYrzQ0oZqPWjtE80aKIPB3ks,149
44
44
  astrbot/cli/commands/cmd_conf.py,sha256=6-YLicBt_zjWTzaVLUJ1VQLQPbDEPYACB9IVnN8Zvng,6330
@@ -51,7 +51,7 @@ astrbot/cli/utils/plugin.py,sha256=FdLVcDHH5dBpoBhLC6iWriUomp_5ONGlWNJnOG4ZOnM,8
51
51
  astrbot/cli/utils/version_comparator.py,sha256=NVUmshfb5LU4a-S453rI7opqo0QtIHvlT1KUD3pdoVM,3462
52
52
  astrbot/core/__init__.py,sha256=zsaF9IeON4NaHk_Ktr0eB7xQEFC5tUZ4UJCesC3-KHM,1220
53
53
  astrbot/core/astr_agent_context.py,sha256=bJnAm_CGzkhMnC99GA_j0Xwmi-OYoBPmgGanuS36DF4,637
54
- astrbot/core/astr_agent_hooks.py,sha256=-bvcAtPFkWcOE__Hnzr7-X_IOxaWk4my0FLDzisfQQQ,2916
54
+ astrbot/core/astr_agent_hooks.py,sha256=KLXjUDt7hrIlqR1miWIM6CO6mDzK8ndfRB36DJxLXBc,2907
55
55
  astrbot/core/astr_agent_run_util.py,sha256=D_K2MOhAp0O8tQpAkrciiUhjbgDOo7zewMrXpzjdgsM,5534
56
56
  astrbot/core/astr_agent_tool_exec.py,sha256=DpGqVhQzSwL2EN6wfBJrlcwH7b1jLkX5b_1eI5xqUB8,10258
57
57
  astrbot/core/astrbot_config_mgr.py,sha256=SUvusfo8Qk89eNpEmduWcXuczJ9g5TBH-VOV69ax28g,8950
@@ -95,7 +95,7 @@ astrbot/core/backup/exporter.py,sha256=tULFmXhYqRhJtAwePFkxXMSKqct1MSMyISv9LrfKw
95
95
  astrbot/core/backup/importer.py,sha256=efGW5-5ZAfvN1mg4rcc5OrcFTLfyj7L9T0Yd7SBUlNo,28618
96
96
  astrbot/core/config/__init__.py,sha256=vZjtpC7vr-IvBgSUtbS04C0wpulmCG5tPmcEP1WYE_4,172
97
97
  astrbot/core/config/astrbot_config.py,sha256=5r2VhCNO4VuGCqct12g10-TcvAKyXV40-suk5vRMGns,6436
98
- astrbot/core/config/default.py,sha256=jYUjQ4PAcytPSKII7ngcuVu24H7m1fgnSSWZkddeRyA,157051
98
+ astrbot/core/config/default.py,sha256=5iTkBZ3I8S4GNbvYc_D_vMR6WBHm6S_XHa47xoT6ixw,157051
99
99
  astrbot/core/config/i18n_utils.py,sha256=HJn_0XeeVS9ryCBelYfnc0nEn10LlX702fcSSFrF1J8,3879
100
100
  astrbot/core/db/__init__.py,sha256=EQor28zGVxAECY30i9NDoeuPOo9inimpF5JV3E0N1BE,15608
101
101
  astrbot/core/db/po.py,sha256=7V8xZTDOojrhd4ULtREmraFZtW976mg7iHbfbVKgKEI,14287
@@ -265,7 +265,7 @@ astrbot/core/star/context.py,sha256=ieBndiGechkUa3c829HWtgjRTKJkHyOqrPb9T5ZivjY,
265
265
  astrbot/core/star/session_llm_manager.py,sha256=6y5rxQQ5RpuzOcw-4DAOeUBEep7nKIfBc6kTGTUkJX8,5707
266
266
  astrbot/core/star/session_plugin_manager.py,sha256=2mGUhwWHsAOC1F575d7GwcVdoc3Brv-w-pbISJSmP38,3144
267
267
  astrbot/core/star/star.py,sha256=Wkf81teNZ27JE_JrENuP0SrpFc2uFYRxHQsWo8R9-No,1826
268
- astrbot/core/star/star_handler.py,sha256=KWgmQerc0NeuU5ZM9YOp6ZuMI9Z5QgSdPhs3gmhsUww,7786
268
+ astrbot/core/star/star_handler.py,sha256=GvJ-QHGCQ1nBos6YWBO9WEQzmaIA6qWg9O3bqob3bTA,7839
269
269
  astrbot/core/star/star_manager.py,sha256=YP8bEy5zecAzTWtj2Oz1hZwX3CFLq4yJu-7tWJ9Nl4I,43686
270
270
  astrbot/core/star/star_tools.py,sha256=4q8emjyTbyIsVXHmzT88kX9uK28rIhlHc0re40Xm6m0,10847
271
271
  astrbot/core/star/updator.py,sha256=4pl42Ks_yjJ3kydx3BwOqocAczhhFBrRnxhBKh4_0Eo,3106
@@ -279,7 +279,7 @@ astrbot/core/star/filter/platform_adapter_type.py,sha256=yTJDeYRY_nH-LhRkkMUb6n6
279
279
  astrbot/core/star/filter/regex.py,sha256=GHB5YvBMLFbOOiFVUnEHaqHTER7sU1pAVrAcXdwBtkQ,545
280
280
  astrbot/core/star/register/__init__.py,sha256=U1LfqaZ5NbLj6lLuABLQHjpzh-x1qonR43oJMFn9rrc,1204
281
281
  astrbot/core/star/register/star.py,sha256=Eto7nD_HFuCNt-VJnXUXKv2D7a5TQ6qkhzLJ_itXo_8,1920
282
- astrbot/core/star/register/star_handler.py,sha256=GeqU34bEMOGNO9xpj8k3TQG8pGYI55FXe9048YlBjUo,20090
282
+ astrbot/core/star/register/star_handler.py,sha256=tpOBChN-cgrX6_ivNBfsvA6237DacryNrrOT1IN3-Co,20081
283
283
  astrbot/core/utils/astrbot_path.py,sha256=RhuIbIH9sWJQxJYbVkxwD0xBK4lG-ZSQGKg35mLdTpk,2526
284
284
  astrbot/core/utils/command_parser.py,sha256=Cwd4zzyKEoC-er0a-9WZ5n2g4F8eH9p6BHxD96gjaVM,617
285
285
  astrbot/core/utils/file_extract.py,sha256=I9jgcaPYK74-BwuI18oUpoupnPYINeP3QFD3kFodqBA,697
@@ -327,8 +327,8 @@ astrbot/dashboard/routes/static_file.py,sha256=7KnNcOb1BVqSTft114LhGsDkfg69X2jHE
327
327
  astrbot/dashboard/routes/t2i.py,sha256=F6smxdL99MF7cRw3hqS6-2GErw8Zhsv0V0mfBUeEk-c,8931
328
328
  astrbot/dashboard/routes/tools.py,sha256=mMwVFw_VOlpqy_WZg1A-ddGtYa5L5QLWYawl37PT0-c,15354
329
329
  astrbot/dashboard/routes/update.py,sha256=qXiqQ_dbqRVftOzGgCQrvK8-qopVK6zKhhVVJ9SK26U,6648
330
- astrbot-4.12.2.dist-info/METADATA,sha256=fnF0o4RWH2Cc7bPkBdufUKXG1SxRW99ZZDeOp_pBBH0,12183
331
- astrbot-4.12.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
332
- astrbot-4.12.2.dist-info/entry_points.txt,sha256=OEF09YmhBWYuViXrvTLLpstF4ccmNwDL8r7nnFD0pfI,53
333
- astrbot-4.12.2.dist-info/licenses/LICENSE,sha256=zPfQj5Mq8-gThIiBcxETr7t8gND9bZWOjTGQAr80TQI,34500
334
- astrbot-4.12.2.dist-info/RECORD,,
330
+ astrbot-4.12.3.dist-info/METADATA,sha256=_tNb7AHILYAnkgzow0VhQeW6bgA14KYXNyJ35F3u7no,12183
331
+ astrbot-4.12.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
332
+ astrbot-4.12.3.dist-info/entry_points.txt,sha256=OEF09YmhBWYuViXrvTLLpstF4ccmNwDL8r7nnFD0pfI,53
333
+ astrbot-4.12.3.dist-info/licenses/LICENSE,sha256=zPfQj5Mq8-gThIiBcxETr7t8gND9bZWOjTGQAr80TQI,34500
334
+ astrbot-4.12.3.dist-info/RECORD,,