AstrBot 4.14.0__py3-none-any.whl → 4.14.1__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/builtin_stars/astrbot/main.py +0 -1
- astrbot/builtin_stars/session_controller/main.py +1 -2
- astrbot/cli/__init__.py +1 -1
- astrbot/core/config/default.py +1 -1
- astrbot/core/platform/astr_message_event.py +5 -2
- {astrbot-4.14.0.dist-info → astrbot-4.14.1.dist-info}/METADATA +1 -1
- {astrbot-4.14.0.dist-info → astrbot-4.14.1.dist-info}/RECORD +10 -10
- {astrbot-4.14.0.dist-info → astrbot-4.14.1.dist-info}/WHEEL +0 -0
- {astrbot-4.14.0.dist-info → astrbot-4.14.1.dist-info}/entry_points.txt +0 -0
- {astrbot-4.14.0.dist-info → astrbot-4.14.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -49,7 +49,7 @@ class Main(Star):
|
|
|
49
49
|
if p_settings.get("empty_mention_waiting_need_reply", True):
|
|
50
50
|
try:
|
|
51
51
|
# 尝试使用 LLM 生成更生动的回复
|
|
52
|
-
func_tools_mgr = self.context.get_llm_tool_manager()
|
|
52
|
+
# func_tools_mgr = self.context.get_llm_tool_manager()
|
|
53
53
|
|
|
54
54
|
# 获取用户当前的对话信息
|
|
55
55
|
curr_cid = await self.context.conversation_manager.get_curr_conversation_id(
|
|
@@ -76,7 +76,6 @@ class Main(Star):
|
|
|
76
76
|
"你友好地询问用户想要聊些什么或者需要什么帮助,回复要符合人设,不要太过机械化。"
|
|
77
77
|
"请注意,你仅需要输出要回复用户的内容,不要输出其他任何东西"
|
|
78
78
|
),
|
|
79
|
-
func_tool_manager=func_tools_mgr,
|
|
80
79
|
session_id=curr_cid,
|
|
81
80
|
contexts=[],
|
|
82
81
|
system_prompt="",
|
astrbot/cli/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "4.14.
|
|
1
|
+
__version__ = "4.14.1"
|
astrbot/core/config/default.py
CHANGED
|
@@ -22,6 +22,7 @@ from astrbot.core.message.components import (
|
|
|
22
22
|
from astrbot.core.message.message_event_result import MessageChain, MessageEventResult
|
|
23
23
|
from astrbot.core.platform.message_type import MessageType
|
|
24
24
|
from astrbot.core.provider.entities import ProviderRequest
|
|
25
|
+
from astrbot.core.agent.tool import ToolSet
|
|
25
26
|
from astrbot.core.utils.metrics import Metric
|
|
26
27
|
from astrbot.core.utils.trace import TraceSpan
|
|
27
28
|
|
|
@@ -355,6 +356,7 @@ class AstrMessageEvent(abc.ABC):
|
|
|
355
356
|
self,
|
|
356
357
|
prompt: str,
|
|
357
358
|
func_tool_manager=None,
|
|
359
|
+
tool_set: ToolSet | None = None,
|
|
358
360
|
session_id: str = "",
|
|
359
361
|
image_urls: list[str] | None = None,
|
|
360
362
|
contexts: list | None = None,
|
|
@@ -377,7 +379,7 @@ class AstrMessageEvent(abc.ABC):
|
|
|
377
379
|
|
|
378
380
|
contexts: 当指定 contexts 时,将会使用 contexts 作为上下文。如果同时传入了 conversation,将会忽略 conversation。
|
|
379
381
|
|
|
380
|
-
func_tool_manager: 函数工具管理器,用于调用函数工具。用 self.context.get_llm_tool_manager()
|
|
382
|
+
func_tool_manager: [Deprecated] 函数工具管理器,用于调用函数工具。用 self.context.get_llm_tool_manager() 获取。已过时,请使用 tool_set 参数代替。
|
|
381
383
|
|
|
382
384
|
conversation: 可选。如果指定,将在指定的对话中进行 LLM 请求。对话的人格会被用于 LLM 请求,并且结果将会被记录到对话中。
|
|
383
385
|
|
|
@@ -393,7 +395,8 @@ class AstrMessageEvent(abc.ABC):
|
|
|
393
395
|
prompt=prompt,
|
|
394
396
|
session_id=session_id,
|
|
395
397
|
image_urls=image_urls,
|
|
396
|
-
func_tool=func_tool_manager,
|
|
398
|
+
# func_tool=func_tool_manager,
|
|
399
|
+
func_tool=tool_set,
|
|
397
400
|
contexts=contexts,
|
|
398
401
|
system_prompt=system_prompt,
|
|
399
402
|
conversation=conversation,
|
|
@@ -9,7 +9,7 @@ astrbot/api/provider/__init__.py,sha256=mJVcon0snjn_xYirk2hntwba6ymIYYC-ZKKmxvx-
|
|
|
9
9
|
astrbot/api/star/__init__.py,sha256=OxgHGtWn3lEQGjb4twbpbWnRepUevPu7gxtDAkAsfhQ,250
|
|
10
10
|
astrbot/api/util/__init__.py,sha256=L1O_mFEUDk8V4lEPsT5iiNbIiOVh7HbrNmitqzUWMZg,180
|
|
11
11
|
astrbot/builtin_stars/astrbot/long_term_memory.py,sha256=Gra7dqiqXLBH_u4M6TZmu49lxiolotbDNTwbh2aVTiA,7676
|
|
12
|
-
astrbot/builtin_stars/astrbot/main.py,sha256=
|
|
12
|
+
astrbot/builtin_stars/astrbot/main.py,sha256=cAXasaj62RRJdh02gRRpkjlpF9GDcfbv5AIfM2qQhAY,4608
|
|
13
13
|
astrbot/builtin_stars/astrbot/metadata.yaml,sha256=GCPK0piMKr4C6Bb0kaBJYhiqPDoMEAYJJp2MV5pXs4k,197
|
|
14
14
|
astrbot/builtin_stars/builtin_commands/main.py,sha256=T8bNer22YgFkKZbLn9Zl-5Y1SIbKpQe_HvDJpUiyte4,7613
|
|
15
15
|
astrbot/builtin_stars/builtin_commands/metadata.yaml,sha256=x0URUKI3S14RRXQ-ewgJy4dYXMKxZcEo2pSKeApGleg,152
|
|
@@ -27,14 +27,14 @@ astrbot/builtin_stars/builtin_commands/commands/sid.py,sha256=mQIk2f6zFjO7ukZf-6
|
|
|
27
27
|
astrbot/builtin_stars/builtin_commands/commands/t2i.py,sha256=cfE8Z75EQEFvpxA2k1hLNWHQk5OUAHQMMn9_m5mMB2k,775
|
|
28
28
|
astrbot/builtin_stars/builtin_commands/commands/tts.py,sha256=k6GJEEV6YkCAhIEosv85w65_R7NSAu4TfJ3ViCMHc0c,1304
|
|
29
29
|
astrbot/builtin_stars/builtin_commands/commands/utils/rst_scene.py,sha256=dOL-hjTceG-vrxatB9Cv3xLDFfRlTO_ifWb9Pc7Za7k,781
|
|
30
|
-
astrbot/builtin_stars/session_controller/main.py,sha256=
|
|
30
|
+
astrbot/builtin_stars/session_controller/main.py,sha256=cKu3zqyo75BTVdrCwvhd9cd5ViVrF2mqM9NUVTe7URk,5342
|
|
31
31
|
astrbot/builtin_stars/session_controller/metadata.yaml,sha256=JyV3_l1BjPdklELpe2L6V5C03i_oymXaQnnf3y_gFgc,126
|
|
32
32
|
astrbot/builtin_stars/web_searcher/main.py,sha256=B5eaSinpWbsZP5URZQkCxPw1IwZJRi_1BCINHl_RViQ,17820
|
|
33
33
|
astrbot/builtin_stars/web_searcher/metadata.yaml,sha256=aHAKtP8UZJaddzIN2eFfglTOIAnLyJ9-wyM00Io6P7E,99
|
|
34
34
|
astrbot/builtin_stars/web_searcher/engines/__init__.py,sha256=Gcp7k6m3w2Pb-hNCe3QIiYa9smQFcEzmb7jcfg2evuw,4300
|
|
35
35
|
astrbot/builtin_stars/web_searcher/engines/bing.py,sha256=pn3DPR-5SO2D_RtBIU3l9Ph7PTUB-FCZAMCYuk6kd6Q,1035
|
|
36
36
|
astrbot/builtin_stars/web_searcher/engines/sogo.py,sha256=YA7pA5-335r7UgKpyUPAeGGZQbYEwDBO8bm08Ro8Xg0,1701
|
|
37
|
-
astrbot/cli/__init__.py,sha256=
|
|
37
|
+
astrbot/cli/__init__.py,sha256=9Wn8BwD7EU7A8hupiqYQO3QNgiGcpbdgKgkCwHlUb-o,23
|
|
38
38
|
astrbot/cli/__main__.py,sha256=QobgMyFoLNTgI_OYddhGOZ9ZvQeBVjjz79mA2cC2OEU,1758
|
|
39
39
|
astrbot/cli/commands/__init__.py,sha256=eAgppZQIqFO1ylQJFABeYrzQ0oZqPWjtE80aKIPB3ks,149
|
|
40
40
|
astrbot/cli/commands/cmd_conf.py,sha256=6-YLicBt_zjWTzaVLUJ1VQLQPbDEPYACB9IVnN8Zvng,6330
|
|
@@ -107,7 +107,7 @@ astrbot/core/computer/tools/python.py,sha256=E6-eRarOjE6AhYioOj5gZhfn10S3fC8uHjO
|
|
|
107
107
|
astrbot/core/computer/tools/shell.py,sha256=b2RWis65YJtUZHhmsLZI1L1LRvnfMlsZcXL4KPbqq_s,2211
|
|
108
108
|
astrbot/core/config/__init__.py,sha256=vZjtpC7vr-IvBgSUtbS04C0wpulmCG5tPmcEP1WYE_4,172
|
|
109
109
|
astrbot/core/config/astrbot_config.py,sha256=5r2VhCNO4VuGCqct12g10-TcvAKyXV40-suk5vRMGns,6436
|
|
110
|
-
astrbot/core/config/default.py,sha256=
|
|
110
|
+
astrbot/core/config/default.py,sha256=2baPozggK-OD4OS6cRKhmCJHmj4qcklpvo0wlwNWumM,164252
|
|
111
111
|
astrbot/core/config/i18n_utils.py,sha256=HJn_0XeeVS9ryCBelYfnc0nEn10LlX702fcSSFrF1J8,3879
|
|
112
112
|
astrbot/core/cron/__init__.py,sha256=QJXfH2H9YSTAb9t5cZOxjwx9GasTF-TBIs6OksH4oKg,66
|
|
113
113
|
astrbot/core/cron/events.py,sha256=5QnRacoqTJ_FIF_7rupLZVIhjzjt5_aK61hcSVYPnJI,2265
|
|
@@ -174,7 +174,7 @@ astrbot/core/pipeline/session_status_check/stage.py,sha256=448eWo72O-JZCXMGBLznJ
|
|
|
174
174
|
astrbot/core/pipeline/waking_check/stage.py,sha256=eDxbk_nWEhiwrARJ8DFoH8qf1mi_OdeOutWq3xLA41c,9787
|
|
175
175
|
astrbot/core/pipeline/whitelist_check/stage.py,sha256=x6o4oswIvVtHFRbuKuLFoyFEgx-gSo3IMGYvopu8d9A,2411
|
|
176
176
|
astrbot/core/platform/__init__.py,sha256=5Hhb2mIb8mS2RWfxILIMuV03XiyfqEbn4pAjvi8ntl0,361
|
|
177
|
-
astrbot/core/platform/astr_message_event.py,sha256=
|
|
177
|
+
astrbot/core/platform/astr_message_event.py,sha256=4C0OayaWMSspjMSOJE-q-4tv6Gx73Wgq3ioVa0_Ah88,16142
|
|
178
178
|
astrbot/core/platform/astrbot_message.py,sha256=kdoiyZoCaH3iVua4pvKw7HHlfVpVB4bI36UeqYX1o38,2670
|
|
179
179
|
astrbot/core/platform/manager.py,sha256=iz6mnYE6DAIZ_b_bkqWfTNYCffRKJVHqsbxuugM3pTU,11549
|
|
180
180
|
astrbot/core/platform/message_session.py,sha256=Fg0MWI4i6IB2jsD39a7fAduFtNcVdFIi40HAHeR9brk,1092
|
|
@@ -340,8 +340,8 @@ astrbot/dashboard/routes/t2i.py,sha256=F6smxdL99MF7cRw3hqS6-2GErw8Zhsv0V0mfBUeEk
|
|
|
340
340
|
astrbot/dashboard/routes/tools.py,sha256=n2l04MGyZL7vVPvGtEbPPBNNs-1qbDkrNMcQbTL8Yag,16294
|
|
341
341
|
astrbot/dashboard/routes/update.py,sha256=qXiqQ_dbqRVftOzGgCQrvK8-qopVK6zKhhVVJ9SK26U,6648
|
|
342
342
|
astrbot/dashboard/routes/util.py,sha256=Ewf5EgWs0evjOyIbgFffJH6T4DzgDrIoacd6VZ5Ix2c,2856
|
|
343
|
-
astrbot-4.14.
|
|
344
|
-
astrbot-4.14.
|
|
345
|
-
astrbot-4.14.
|
|
346
|
-
astrbot-4.14.
|
|
347
|
-
astrbot-4.14.
|
|
343
|
+
astrbot-4.14.1.dist-info/METADATA,sha256=IrdyiuhhG6OQ3SYfrnNj5mUjHnmJoRicP7DDMLkj_lE,13559
|
|
344
|
+
astrbot-4.14.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
345
|
+
astrbot-4.14.1.dist-info/entry_points.txt,sha256=OEF09YmhBWYuViXrvTLLpstF4ccmNwDL8r7nnFD0pfI,53
|
|
346
|
+
astrbot-4.14.1.dist-info/licenses/LICENSE,sha256=zPfQj5Mq8-gThIiBcxETr7t8gND9bZWOjTGQAr80TQI,34500
|
|
347
|
+
astrbot-4.14.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|