Skip to content

Commit 09da25c

Browse files
authored
Merge branch 'master' into master
2 parents 7ef86e4 + 0068960 commit 09da25c

55 files changed

Lines changed: 2627 additions & 326 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/dashboard_ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ jobs:
2727
cache-dependency-path: dashboard/pnpm-lock.yaml
2828

2929
- name: Install and Build
30+
working-directory: dashboard
3031
run: |
31-
pnpm --dir dashboard install --frozen-lockfile
32-
pnpm --dir dashboard run build
32+
pnpm install --frozen-lockfile
33+
pnpm run build
3334
3435
- name: Inject Commit SHA
3536
id: get_sha

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
echo "tag=$tag" >> "$GITHUB_OUTPUT"
5252
5353
- name: Setup pnpm
54-
uses: pnpm/action-setup@v6.0.0
54+
uses: pnpm/action-setup@v5.0.0
5555
with:
5656
version: 10.28.2
5757

@@ -64,11 +64,11 @@ jobs:
6464

6565
- name: Build dashboard dist
6666
shell: bash
67+
working-directory: dashboard
6768
run: |
68-
pnpm --dir dashboard install --frozen-lockfile
69-
pnpm --dir dashboard run build
70-
echo "${{ steps.tag.outputs.tag }}" > dashboard/dist/assets/version
71-
cd dashboard
69+
pnpm install --frozen-lockfile
70+
pnpm run build
71+
echo "${{ steps.tag.outputs.tag }}" > dist/assets/version
7272
zip -r "AstrBot-${{ steps.tag.outputs.tag }}-dashboard.zip" dist
7373
7474
- name: Upload dashboard artifact

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ astrbot run
8686
> AstrBot requires Python 3.12 or later. The `--python 3.12` option ensures that `uv` creates the tool environment with Python 3.12.
8787
8888
> [!NOTE]
89-
> For macOS user: due to macOS security checks, the first run of the `astrbot` command may take longer (about 10-20s).
89+
> For macOS users: due to macOS security checks, the first run of the `astrbot` command may take longer (about 10-20s).
9090
9191
Update `astrbot`:
9292

@@ -101,7 +101,7 @@ uv tool upgrade astrbot --python 3.12
101101

102102
For users familiar with containers and looking for a more stable, production-ready deployment method, we recommend deploying AstrBot with Docker / Docker Compose.
103103

104-
Please refer to the official documentation: [Deploy AstrBot with Docker](https://astrbot.app/deploy/astrbot/docker.html#%E4%BD%BF%E7%94%A8-docker-%E9%83%A8%E7%BD%B2-astrbot).
104+
Please refer to the official documentation: [Deploy AstrBot with Docker](https://docs.astrbot.app/deploy/astrbot/docker.html#%E4%BD%BF%E7%94%A8-docker-%E9%83%A8%E7%BD%B2-astrbot).
105105

106106
### Deploy on RainYun
107107

@@ -139,7 +139,7 @@ yay -S astrbot-git
139139

140140
**More deployment methods**
141141

142-
If you need panel-based management or deeper customization, see [BT-Panel Deployment](https://astrbot.app/deploy/astrbot/btpanel.html) for BT Panel app-store setup, [1Panel Deployment](https://astrbot.app/deploy/astrbot/1panel.html) for 1Panel app-market deployment, [CasaOS Deployment](https://astrbot.app/deploy/astrbot/casaos.html) for NAS/home-server visual deployment, and [Manual Deployment](https://astrbot.app/deploy/astrbot/cli.html) for fully custom source-based installation with `uv`.
142+
If you need panel-based management or deeper customization, see [BT-Panel Deployment](https://docs.astrbot.app/deploy/astrbot/btpanel.html) for BT Panel app-store setup, [1Panel Deployment](https://docs.astrbot.app/deploy/astrbot/1panel.html) for 1Panel app-market deployment, [CasaOS Deployment](https://docs.astrbot.app/deploy/astrbot/casaos.html) for NAS/home-server visual deployment, and [Manual Deployment](https://docs.astrbot.app/deploy/astrbot/cli.html) for fully custom source-based installation with `uv`.
143143

144144
## Supported Messaging Platforms
145145

README_fr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ uv tool upgrade astrbot --python 3.12
100100

101101
Pour les utilisateurs familiers avec les conteneurs et qui souhaitent une méthode plus stable et adaptée à la production, nous recommandons de déployer AstrBot avec Docker / Docker Compose.
102102

103-
Veuillez consulter la documentation officielle [Déployer AstrBot avec Docker](https://astrbot.app/deploy/astrbot/docker.html#%E4%BD%BF%E7%94%A8-docker-%E9%83%A8%E7%BD%B2-astrbot).
103+
Veuillez consulter la documentation officielle [Déployer AstrBot avec Docker](https://docs.astrbot.app/deploy/astrbot/docker.html#%E4%BD%BF%E7%94%A8-docker-%E9%83%A8%E7%BD%B2-astrbot).
104104

105105
### Déployer sur RainYun
106106

@@ -138,7 +138,7 @@ yay -S astrbot-git
138138

139139
**Autres méthodes de déploiement**
140140

141-
Si vous avez besoin d'une gestion par panneau ou d'une personnalisation plus poussée, consultez [Déploiement BT-Panel](https://astrbot.app/deploy/astrbot/btpanel.html) pour une installation via BT Panel, [Déploiement 1Panel](https://astrbot.app/deploy/astrbot/1panel.html) pour le marketplace 1Panel, [Déploiement CasaOS](https://astrbot.app/deploy/astrbot/casaos.html) pour un déploiement visuel sur NAS/serveur domestique, et [Déploiement manuel](https://astrbot.app/deploy/astrbot/cli.html) pour une installation complète depuis les sources avec `uv`.
141+
Si vous avez besoin d'une gestion par panneau ou d'une personnalisation plus poussée, consultez [Déploiement BT-Panel](https://docs.astrbot.app/deploy/astrbot/btpanel.html) pour une installation via BT Panel, [Déploiement 1Panel](https://docs.astrbot.app/deploy/astrbot/1panel.html) pour le marketplace 1Panel, [Déploiement CasaOS](https://docs.astrbot.app/deploy/astrbot/casaos.html) pour un déploiement visuel sur NAS/serveur domestique, et [Déploiement manuel](https://docs.astrbot.app/deploy/astrbot/cli.html) pour une installation complète depuis les sources avec `uv`.
142142

143143
## Plateformes de messagerie prises en charge
144144

README_ja.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ uv tool upgrade astrbot --python 3.12
100100

101101
コンテナ運用に慣れており、より安定した本番向けのデプロイ方法を求めるユーザーには、Docker / Docker Compose での AstrBot デプロイをおすすめします。
102102

103-
公式ドキュメント [Docker を使用した AstrBot のデプロイ](https://astrbot.app/deploy/astrbot/docker.html#%E4%BD%BF%E7%94%A8-docker-%E9%83%A8%E7%BD%B2-astrbot) をご参照ください。
103+
公式ドキュメント [Docker を使用した AstrBot のデプロイ](https://docs.astrbot.app/deploy/astrbot/docker.html#%E4%BD%BF%E7%94%A8-docker-%E9%83%A8%E7%BD%B2-astrbot) をご参照ください。
104104

105105
### 雨云でのデプロイ
106106

@@ -138,7 +138,7 @@ yay -S astrbot-git
138138

139139
**その他のデプロイ方法**
140140

141-
パネル操作での導入やより高度なカスタマイズが必要な場合は、[宝塔パネルデプロイ](https://astrbot.app/deploy/astrbot/btpanel.html)(BT Panel 経由の導入)、[1Panel デプロイ](https://astrbot.app/deploy/astrbot/1panel.html)(1Panel アプリマーケット経由)、[CasaOS デプロイ](https://astrbot.app/deploy/astrbot/casaos.html)(NAS / ホームサーバー向け可視化導入)、[手動デプロイ](https://astrbot.app/deploy/astrbot/cli.html)`uv` とソースベースのフルカスタム導入)を参照してください。
141+
パネル操作での導入やより高度なカスタマイズが必要な場合は、[宝塔パネルデプロイ](https://docs.astrbot.app/deploy/astrbot/btpanel.html)(BT Panel 経由の導入)、[1Panel デプロイ](https://docs.astrbot.app/deploy/astrbot/1panel.html)(1Panel アプリマーケット経由)、[CasaOS デプロイ](https://docs.astrbot.app/deploy/astrbot/casaos.html)(NAS / ホームサーバー向け可視化導入)、[手動デプロイ](https://docs.astrbot.app/deploy/astrbot/cli.html)`uv` とソースベースのフルカスタム導入)を参照してください。
142142

143143
## サポートされているメッセージプラットフォーム
144144

README_ru.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ uv tool upgrade astrbot --python 3.12
100100

101101
Для пользователей, знакомых с контейнерами и которым нужен более стабильный и подходящий для production способ, мы рекомендуем разворачивать AstrBot через Docker / Docker Compose.
102102

103-
См. официальную документацию [Развёртывание AstrBot с Docker](https://astrbot.app/deploy/astrbot/docker.html#%E4%BD%BF%E7%94%A8-docker-%E9%83%A8%E7%BD%B2-astrbot).
103+
См. официальную документацию [Развёртывание AstrBot с Docker](https://docs.astrbot.app/deploy/astrbot/docker.html#%E4%BD%BF%E7%94%A8-docker-%E9%83%A8%E7%BD%B2-astrbot).
104104

105105
### Развёртывание на RainYun
106106

@@ -138,7 +138,7 @@ yay -S astrbot-git
138138

139139
**Другие способы развёртывания**
140140

141-
Если вам нужна панельная установка или более глубокая кастомизация, смотрите [Развёртывание BT-Panel](https://astrbot.app/deploy/astrbot/btpanel.html) (установка через BT Panel), [Развёртывание 1Panel](https://astrbot.app/deploy/astrbot/1panel.html) (развёртывание через маркетплейс 1Panel), [Развёртывание CasaOS](https://astrbot.app/deploy/astrbot/casaos.html) (визуальный вариант для NAS и домашних серверов) и [Ручное развёртывание](https://astrbot.app/deploy/astrbot/cli.html) (полностью настраиваемая установка из исходников через `uv`).
141+
Если вам нужна панельная установка или более глубокая кастомизация, смотрите [Развёртывание BT-Panel](https://docs.astrbot.app/deploy/astrbot/btpanel.html) (установка через BT Panel), [Развёртывание 1Panel](https://docs.astrbot.app/deploy/astrbot/1panel.html) (развёртывание через маркетплейс 1Panel), [Развёртывание CasaOS](https://docs.astrbot.app/deploy/astrbot/casaos.html) (визуальный вариант для NAS и домашних серверов) и [Ручное развёртывание](https://docs.astrbot.app/deploy/astrbot/cli.html) (полностью настраиваемая установка из исходников через `uv`).
142142

143143
## Поддерживаемые платформы обмена сообщениями
144144

README_zh-TW.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<a href="https://astrbot.app/">文件</a> |
3333
<a href="https://blog.astrbot.app/">Blog</a> |
3434
<a href="https://astrbot.featurebase.app/roadmap">路線圖</a> |
35-
<a href="https://github.com/AstrBotDevs/AstrBot/issues">問題回報</a>
35+
<a href="https://github.com/AstrBotDevs/AstrBot/issues">問題回報</a>
3636
<a href="mailto:community@astrbot.app">Email</a>
3737
</div>
3838

@@ -100,7 +100,7 @@ uv tool upgrade astrbot --python 3.12
100100

101101
對於熟悉容器、希望獲得更穩定且更適合正式環境部署方式的使用者,我們推薦使用 Docker / Docker Compose 部署 AstrBot。
102102

103-
請參考官方文件 [使用 Docker 部署 AstrBot](https://astrbot.app/deploy/astrbot/docker.html#%E4%BD%BF%E7%94%A8-docker-%E9%83%A8%E7%BD%B2-astrbot)
103+
請參考官方文件 [使用 Docker 部署 AstrBot](https://docs.astrbot.app/deploy/astrbot/docker.html#%E4%BD%BF%E7%94%A8-docker-%E9%83%A8%E7%BD%B2-astrbot)
104104

105105
### 在雨雲上部署
106106

@@ -138,7 +138,7 @@ yay -S astrbot-git
138138

139139
**更多部署方式**
140140

141-
若你需要面板化或更高自訂程度的部署,可參考 [寶塔面板](https://astrbot.app/deploy/astrbot/btpanel.html)(BT Panel 應用商店安裝)、[1Panel](https://astrbot.app/deploy/astrbot/1panel.html)(1Panel 應用商店安裝)、[CasaOS](https://astrbot.app/deploy/astrbot/casaos.html)(NAS / 家用伺服器可視化部署)與 [手動部署](https://astrbot.app/deploy/astrbot/cli.html)(基於原始碼與 `uv` 的完整自訂安裝)。
141+
若你需要面板化或更高自訂程度的部署,可參考 [寶塔面板](https://docs.astrbot.app/deploy/astrbot/btpanel.html)(BT Panel 應用商店安裝)、[1Panel](https://docs.astrbot.app/deploy/astrbot/1panel.html)(1Panel 應用商店安裝)、[CasaOS](https://docs.astrbot.app/deploy/astrbot/casaos.html)(NAS / 家用伺服器可視化部署)與 [手動部署](https://docs.astrbot.app/deploy/astrbot/cli.html)(基於原始碼與 `uv` 的完整自訂安裝)。
142142

143143
## 支援的訊息平台
144144

@@ -160,7 +160,7 @@ yay -S astrbot-git
160160
| KOOK | 官方維護 |
161161
| Misskey | 官方維護 |
162162
| Mattermost | 官方維護 |
163-
| Whatsapp(即將支援) | 官方維護 |
163+
| WhatsApp(即將支援) | 官方維護 |
164164
| [Matrix](https://github.com/stevessr/astrbot_plugin_matrix_adapter) | 社群維護 |
165165
| [Rocket.Chat](https://github.com/NET-Homeless/astrbot_plugin_rocket_chat_adapter) | 社群維護 |
166166
| [VoceChat](https://github.com/HikariFroya/astrbot_plugin_vocechat) | 社群維護 |

README_zh.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
<a href="https://astrbot.app/">文档</a> |
3232
<a href="https://blog.astrbot.app/">博客</a> |
3333
<a href="https://astrbot.featurebase.app/roadmap">路线图</a> |
34-
<a href="https://github.com/AstrBotDevs/AstrBot/issues">问题提交</a>
34+
<a href="https://github.com/AstrBotDevs/AstrBot/issues">问题提交</a>
3535
<a href="mailto:community@astrbot.app">Email</a>
3636

3737
</div>
3838

39-
AstrBot 是一个开源的一站式 Agentic 个人和群聊助手,可在 QQ、Telegram、企业微信、飞书、钉钉、Slack等数十款主流即时通讯软件上部署,此外还内置类似 OpenWebUI 的轻量化 ChatUI,为个人、开发者和团队打造可靠、可扩展的对话式智能基础设施。无论是个人 AI 伙伴、智能客服、自动化助手,还是企业知识库,AstrBot 都能在你的即时通讯软件平台的工作流中快速构建 AI 应用。
39+
AstrBot 是一个开源的一站式 Agentic 个人和群聊助手,可在 QQ、Telegram、企业微信、飞书、钉钉、Slack 等数十款主流即时通讯软件上部署,此外还内置类似 OpenWebUI 的轻量化 ChatUI,为个人、开发者和团队打造可靠、可扩展的对话式智能基础设施。无论是个人 AI 伙伴、智能客服、自动化助手,还是企业知识库,AstrBot 都能在你的即时通讯软件平台的工作流中快速构建 AI 应用。
4040

4141
![landingpage](https://github.com/user-attachments/assets/45fc5699-cddf-4e21-af35-13040706f6c0)
4242

@@ -100,7 +100,7 @@ uv tool upgrade astrbot --python 3.12
100100

101101
对于熟悉容器、希望获得更稳定且更适合生产环境部署方式的用户,我们推荐使用 Docker / Docker Compose 部署 AstrBot。
102102

103-
请参考官方文档 [使用 Docker 部署 AstrBot](https://astrbot.app/deploy/astrbot/docker.html#%E4%BD%BF%E7%94%A8-docker-%E9%83%A8%E7%BD%B2-astrbot)
103+
请参考官方文档 [使用 Docker 部署 AstrBot](https://docs.astrbot.app/deploy/astrbot/docker.html#%E4%BD%BF%E7%94%A8-docker-%E9%83%A8%E7%BD%B2-astrbot)
104104

105105
### 在 雨云 上部署
106106

@@ -138,7 +138,7 @@ yay -S astrbot-git
138138

139139
**更多部署方式**
140140

141-
若你需要面板化或更高自定义部署,可参考 [宝塔面板](https://astrbot.app/deploy/astrbot/btpanel.html)(BT Panel 应用商店安装)、[1Panel](https://astrbot.app/deploy/astrbot/1panel.html)(1Panel 应用商店安装)、[CasaOS](https://astrbot.app/deploy/astrbot/casaos.html)(NAS / 家庭服务器可视化部署)和 [手动部署](https://astrbot.app/deploy/astrbot/cli.html)(基于源码与 `uv` 的完整自定义安装)。
141+
若你需要面板化或更高自定义部署,可参考 [宝塔面板](https://docs.astrbot.app/deploy/astrbot/btpanel.html)(BT Panel 应用商店安装)、[1Panel](https://docs.astrbot.app/deploy/astrbot/1panel.html)(1Panel 应用商店安装)、[CasaOS](https://docs.astrbot.app/deploy/astrbot/casaos.html)(NAS / 家庭服务器可视化部署)和 [手动部署](https://docs.astrbot.app/deploy/astrbot/cli.html)(基于源码与 `uv` 的完整自定义安装)。
142142

143143
## 支持的消息平台
144144

@@ -160,7 +160,7 @@ yay -S astrbot-git
160160
| **KOOK** | 官方维护 |
161161
| **Misskey** | 官方维护 |
162162
| **Mattermost** | 官方维护 |
163-
| **Whatsapp (将支持)** | 官方维护 |
163+
| **WhatsApp(将支持** | 官方维护 |
164164
| [**Matrix**](https://github.com/stevessr/astrbot_plugin_matrix_adapter) | 社区维护 |
165165
| [**Rocket.Chat**](https://github.com/NET-Homeless/astrbot_plugin_rocket_chat_adapter) | 社区维护 |
166166
| [**VoceChat**](https://github.com/HikariFroya/astrbot_plugin_vocechat) | 社区维护 |

astrbot/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.23.1"
1+
__version__ = "4.23.2"

astrbot/core/agent/runners/tool_loop_agent_runner.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,14 +940,25 @@ def _append_tool_call_result(tool_call_id: str, content: str) -> None:
940940
)
941941
else:
942942
func_tool = req.func_tool.get_tool(func_tool_name)
943+
if (
944+
self.tool_schema_mode == "skills_like"
945+
and self._skill_like_raw_tool_set
946+
):
947+
# in 'skills_like' mode, raw.func_tool is light schema, does not have handler
948+
# so we need to get the tool from the raw tool set
949+
func_tool = self._skill_like_raw_tool_set.get_tool(func_tool_name)
950+
available_tools = self._skill_like_raw_tool_set.names()
951+
else:
952+
func_tool = req.func_tool.get_tool(func_tool_name)
953+
available_tools = req.func_tool.names()
943954

944955
logger.info(f"使用工具:{func_tool_name},参数:{func_tool_args}")
945956

946957
if not func_tool:
947958
logger.warning(f"未找到指定的工具: {func_tool_name},将跳过。")
948959
_append_tool_call_result(
949960
func_tool_id,
950-
f"error: Tool {func_tool_name} not found.",
961+
f"error: Tool {func_tool_name} not found. Available tools are: {', '.join(available_tools)}",
951962
)
952963
continue
953964

0 commit comments

Comments
 (0)