vmoranv f92f0a3e5d feat(core): supports anthropic-skills-like tool call mode (#4681)
* feat(core): change llmtool to claude skills like func call

* feat: refactor tool execution logic in ToolLoopAgentRunner for improved clarity and efficiency

* feat(core): 添加工具调用模式配置选项

新增 tool_schema_mode 配置项,支持两种工具调用模式:
- skills_like:先发送工具名称和描述,再查询参数(两阶段)
- full:一次性发送完整工具模式

更新了默认配置、配置元数据定义以及代理子阶段处理逻辑,
添加了完整的工具调用提示语句,并在仪表板中提供了国际化支持。

* feat: 优化工具集获取逻辑,添加轻量和参数工具集返回方法

* refactor(runner): 重构工具模式处理逻辑到ToolLoopAgentRunner

- 将工具集激活逻辑提取到新的_build_active_tool_set方法中
- 实现工具模式配置功能,支持full和light模式的动态切换
- 移除InternalAgentSubStage中的工具模式应用逻辑,统一在runner中处理
- 添加_tool_schema_full_set和_tool_schema_param_set实例变量来管理工具集状态
- 修改工具查询逻辑以使用新的工具集管理方式

* fix: update default tool_schema_mode to 'full' in InternalAgentSubStage

* refactor: rename TOOL_CALL_PROMPT_FULL to TOOL_CALL_PROMPT_SKILLS_LIKE_MODE and update prompt logic

---------

Co-authored-by: Soulter <905617992@qq.com>
2026-01-28 22:49:34 +08:00
2026-01-24 14:55:32 +08:00
2026-01-05 17:26:10 +08:00
2025-11-07 15:41:03 +08:00
2025-05-01 20:32:05 +08:00
2026-01-26 21:21:26 +08:00
2023-04-15 15:33:00 +08:00
2025-11-07 15:41:03 +08:00
2026-01-13 12:19:05 +08:00
2025-02-24 00:31:57 +08:00
2026-01-24 14:55:32 +08:00
2026-01-12 20:31:17 +08:00
2026-01-12 20:31:17 +08:00
2026-01-12 20:31:17 +08:00
2026-01-12 20:31:17 +08:00
2026-01-12 20:31:17 +08:00
2026-01-16 17:57:49 +08:00
2026-01-15 16:19:26 +08:00

AstrBot-Logo-Simplified

AstrBot is an open-source all-in-one Agent chatbot platform that integrates with mainstream instant messaging apps. It provides reliable and scalable conversational AI infrastructure for individuals, developers, and teams. Whether you're building a personal AI companion, intelligent customer service, automation assistant, or enterprise knowledge base, AstrBot enables you to quickly build production-ready AI applications within your IM platform workflows.

image

Key Features

  1. 💯 Free & Open Source.
  2. AI LLM Conversations, Multimodal, Agent, MCP, Knowledge Base, Persona Settings.
  3. 🤖 Supports integration with Dify, Alibaba Cloud Bailian, Coze and other agent platforms.
  4. 🌐 Multi-Platform: QQ, WeChat Work, Feishu, DingTalk, WeChat Official Accounts, Telegram, Slack, and more.
  5. 📦 Plugin Extensions with nearly 800 plugins available for one-click installation.
  6. 💻 WebUI Support.
  7. 🌐 Internationalization (i18n) Support.

Quick Start

We recommend deploying AstrBot using Docker or Docker Compose.

Please refer to the official documentation: Deploy AstrBot with Docker.

uv Deployment

uvx astrbot

BT-Panel Deployment

AstrBot has partnered with BT-Panel and is now available in their marketplace.

Please refer to the official documentation: BT-Panel Deployment.

1Panel Deployment

AstrBot has been officially listed on the 1Panel marketplace.

Please refer to the official documentation: 1Panel Deployment.

Deploy on RainYun

AstrBot has been officially listed on RainYun's cloud application platform with one-click deployment.

Deploy on RainYun

Deploy on Replit

Community-contributed deployment method.

Run on Repl.it

Windows One-Click Installer

Please refer to the official documentation: Deploy AstrBot with Windows One-Click Installer.

CasaOS Deployment

Community-contributed deployment method.

Please refer to the official documentation: CasaOS Deployment.

Manual Deployment

First, install uv:

pip install uv

Install AstrBot via Git Clone:

git clone https://github.com/AstrBotDevs/AstrBot && cd AstrBot
uv run main.py

Or refer to the official documentation: Deploy AstrBot from Source.

Supported Messaging Platforms

Officially Maintained

  • QQ (Official Platform & OneBot)
  • Telegram
  • WeChat Work Application & WeChat Work Intelligent Bot
  • WeChat Customer Service & WeChat Official Accounts
  • Feishu (Lark)
  • DingTalk
  • Slack
  • Discord
  • Satori
  • Misskey
  • WhatsApp (Coming Soon)
  • LINE (Coming Soon)

Community Maintained

Supported Model Services

LLM Services

LLMOps Platforms

  • Dify
  • Alibaba Cloud Bailian Applications
  • Coze

Speech-to-Text Services

  • OpenAI Whisper
  • SenseVoice

Text-to-Speech Services

  • OpenAI TTS
  • Gemini TTS
  • GPT-Sovits-Inference
  • GPT-Sovits
  • FishAudio
  • Edge TTS
  • Alibaba Cloud Bailian TTS
  • Azure TTS
  • Minimax TTS
  • Volcano Engine TTS

❤️ Contributing

Issues and Pull Requests are always welcome! Feel free to submit your changes to this project :)

How to Contribute

You can contribute by reviewing issues or helping with pull request reviews. Any issues or PRs are welcome to encourage community participation. Of course, these are just suggestions—you can contribute in any way you like. For adding new features, please discuss through an Issue first.

Development Environment

AstrBot uses ruff for code formatting and linting.

git clone https://github.com/AstrBotDevs/AstrBot
pip install pre-commit
pre-commit install

🌍 Community

QQ Groups

  • Group 1: 322154837
  • Group 3: 630166526
  • Group 5: 822130018
  • Group 6: 753075035
  • Developer Group: 975206796

Telegram Group

Telegram_community

Discord Server

Discord_community

❤️ Special Thanks

Special thanks to all Contributors and plugin developers for their contributions to AstrBot ❤️

Additionally, the birth of this project would not have been possible without the help of the following open-source projects:

Star History

Tip

If this project has helped you in your life or work, or if you're interested in its future development, please give the project a Star. It's the driving force behind maintaining this open-source project <3

Star History Chart

私は、高性能ですから!

S
Description
No description provided
Readme AGPL-3.0 65 MiB
Languages
Python 69.1%
Vue 25.4%
TypeScript 3.4%
JavaScript 1.4%
Shell 0.3%
Other 0.4%