AstrBot 4.12.3__tar.gz → 4.13.0__tar.gz
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-4.12.3 → astrbot-4.13.0}/.gitignore +4 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/PKG-INFO +1 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/astrbot/process_llm_request.py +42 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/__init__.py +0 -2
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/persona.py +68 -6
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/main.py +0 -26
- astrbot-4.13.0/astrbot/cli/__init__.py +1 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/runners/tool_loop_agent_runner.py +91 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/tool.py +61 -20
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/astr_agent_hooks.py +3 -1
- astrbot-4.13.0/astrbot/core/astr_agent_run_util.py +375 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/astr_agent_tool_exec.py +2 -2
- {astrbot-4.12.3/astrbot/core/sandbox → astrbot-4.13.0/astrbot/core/computer}/booters/base.py +4 -4
- {astrbot-4.12.3/astrbot/core/sandbox → astrbot-4.13.0/astrbot/core/computer}/booters/boxlite.py +2 -2
- astrbot-4.13.0/astrbot/core/computer/booters/local.py +234 -0
- {astrbot-4.12.3/astrbot/core/sandbox → astrbot-4.13.0/astrbot/core/computer}/booters/shipyard.py +2 -2
- astrbot-4.13.0/astrbot/core/computer/computer_client.py +102 -0
- {astrbot-4.12.3/astrbot/core/sandbox → astrbot-4.13.0/astrbot/core/computer}/tools/__init__.py +2 -1
- {astrbot-4.12.3/astrbot/core/sandbox → astrbot-4.13.0/astrbot/core/computer}/tools/fs.py +1 -1
- astrbot-4.13.0/astrbot/core/computer/tools/python.py +94 -0
- {astrbot-4.12.3/astrbot/core/sandbox → astrbot-4.13.0/astrbot/core/computer}/tools/shell.py +13 -5
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/config/default.py +90 -9
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/__init__.py +94 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/po.py +46 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/sqlite.py +248 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/message/components.py +2 -2
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/persona_mgr.py +162 -2
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/context_utils.py +2 -2
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/preprocess_stage/stage.py +1 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/process_stage/method/agent_sub_stages/internal.py +73 -6
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/process_stage/utils.py +31 -4
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/scheduler.py +1 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/waking_check/stage.py +0 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py +3 -3
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py +32 -14
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/dingtalk/dingtalk_adapter.py +61 -2
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/dingtalk/dingtalk_event.py +57 -11
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py +5 -7
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/webchat/webchat_adapter.py +1 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/webchat/webchat_event.py +24 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/manager.py +38 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/provider.py +54 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/gemini_embedding_source.py +1 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/gemini_source.py +12 -9
- astrbot-4.13.0/astrbot/core/provider/sources/genie_tts.py +128 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/openai_embedding_source.py +1 -1
- astrbot-4.13.0/astrbot/core/skills/__init__.py +3 -0
- astrbot-4.13.0/astrbot/core/skills/skill_manager.py +237 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/command_management.py +1 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/config.py +1 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/context.py +9 -8
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/filter/command.py +1 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/filter/custom_filter.py +2 -2
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/register/star_handler.py +2 -4
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/astrbot_path.py +6 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/__init__.py +2 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/config.py +236 -2
- astrbot-4.13.0/astrbot/dashboard/routes/live_chat.py +423 -0
- astrbot-4.13.0/astrbot/dashboard/routes/persona.py +466 -0
- astrbot-4.13.0/astrbot/dashboard/routes/skills.py +148 -0
- astrbot-4.13.0/astrbot/dashboard/routes/util.py +102 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/server.py +21 -5
- astrbot-4.13.0/changelogs/v4.12.4.md +21 -0
- astrbot-4.13.0/changelogs/v4.13.0.md +18 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/index.html +3 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/Chat.vue +127 -105
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/ChatInput.vue +146 -55
- astrbot-4.13.0/dashboard/src/components/chat/LiveMode.vue +682 -0
- astrbot-4.13.0/dashboard/src/components/chat/LiveOrb.vue +494 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/MessageList.vue +1 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/StandaloneChat.vue +1 -0
- astrbot-4.13.0/dashboard/src/components/extension/SkillsSection.vue +213 -0
- astrbot-4.13.0/dashboard/src/components/folder/BaseCreateFolderDialog.vue +132 -0
- astrbot-4.13.0/dashboard/src/components/folder/BaseFolderBreadcrumb.vue +84 -0
- astrbot-4.13.0/dashboard/src/components/folder/BaseFolderCard.vue +143 -0
- astrbot-4.13.0/dashboard/src/components/folder/BaseFolderItemSelector.vue +513 -0
- astrbot-4.13.0/dashboard/src/components/folder/BaseFolderTree.vue +272 -0
- astrbot-4.13.0/dashboard/src/components/folder/BaseFolderTreeNode.vue +154 -0
- astrbot-4.13.0/dashboard/src/components/folder/BaseMoveTargetNode.vue +93 -0
- astrbot-4.13.0/dashboard/src/components/folder/BaseMoveToFolderDialog.vue +178 -0
- astrbot-4.13.0/dashboard/src/components/folder/README.md +349 -0
- astrbot-4.13.0/dashboard/src/components/folder/index.ts +46 -0
- astrbot-4.13.0/dashboard/src/components/folder/types.ts +249 -0
- astrbot-4.13.0/dashboard/src/components/folder/useFolderManager.ts +324 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/AstrBotConfig.vue +23 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/ConfigItemRenderer.vue +19 -0
- astrbot-4.13.0/dashboard/src/components/shared/FileConfigItem.vue +407 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/ItemCard.vue +26 -21
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/PersonaForm.vue +242 -7
- astrbot-4.13.0/dashboard/src/components/shared/PersonaSelector.vue +198 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/ProviderSelector.vue +9 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/ProxySelector.vue +14 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/T2ITemplateEditor.vue +22 -7
- astrbot-4.13.0/dashboard/src/composables/useVADRecording.ts +163 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/core/shared.json +3 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/chat.json +7 -2
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/config-metadata.json +26 -3
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/config.json +18 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/extension.json +28 -0
- astrbot-4.13.0/dashboard/src/i18n/locales/en-US/features/persona.json +143 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/core/shared.json +3 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/chat.json +7 -2
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json +26 -3
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/config.json +19 -1
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/extension.json +28 -0
- astrbot-4.13.0/dashboard/src/i18n/locales/zh-CN/features/persona.json +143 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue +9 -2
- astrbot-4.13.0/dashboard/src/stores/personaStore.ts +334 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/ExtensionPage.vue +95 -15
- astrbot-4.13.0/dashboard/src/views/PersonaPage.vue +44 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/alkaid/KnowledgeBase.vue +8 -2
- astrbot-4.13.0/dashboard/src/views/persona/CreateFolderDialog.vue +77 -0
- astrbot-4.13.0/dashboard/src/views/persona/FolderBreadcrumb.vue +87 -0
- astrbot-4.13.0/dashboard/src/views/persona/FolderCard.vue +120 -0
- astrbot-4.13.0/dashboard/src/views/persona/FolderTree.vue +320 -0
- astrbot-4.13.0/dashboard/src/views/persona/FolderTreeNode.vue +66 -0
- astrbot-4.13.0/dashboard/src/views/persona/MoveTargetNode.vue +36 -0
- astrbot-4.13.0/dashboard/src/views/persona/MoveToFolderDialog.vue +201 -0
- astrbot-4.13.0/dashboard/src/views/persona/PersonaCard.vue +187 -0
- astrbot-4.13.0/dashboard/src/views/persona/PersonaManager.vue +577 -0
- astrbot-4.13.0/dashboard/src/views/persona/index.ts +23 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/pyproject.toml +1 -1
- astrbot-4.12.3/astrbot/builtin_stars/builtin_commands/commands/tool.py +0 -31
- astrbot-4.12.3/astrbot/cli/__init__.py +0 -1
- astrbot-4.12.3/astrbot/core/astr_agent_run_util.py +0 -133
- astrbot-4.12.3/astrbot/core/sandbox/sandbox_client.py +0 -52
- astrbot-4.12.3/astrbot/core/sandbox/tools/python.py +0 -74
- astrbot-4.12.3/astrbot/dashboard/routes/persona.py +0 -202
- astrbot-4.12.3/dashboard/src/components/shared/PersonaSelector.vue +0 -185
- astrbot-4.12.3/dashboard/src/i18n/locales/en-US/features/persona.json +0 -67
- astrbot-4.12.3/dashboard/src/i18n/locales/zh-CN/features/persona.json +0 -67
- astrbot-4.12.3/dashboard/src/views/PersonaPage.vue +0 -322
- {astrbot-4.12.3 → astrbot-4.13.0}/.dockerignore +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/FUNDING.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/ISSUE_TEMPLATE/PLUGIN_PUBLISH.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/auto_assign.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/copilot-instructions.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/dependabot.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/workflows/auto_release.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/workflows/code-format.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/workflows/codeql.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/workflows/coverage_test.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/workflows/dashboard_ci.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/workflows/docker-image.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/workflows/smoke_test.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.github/workflows/stale.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.pre-commit-config.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/.python-version +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/CODE_OF_CONDUCT.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/CONTRIBUTING.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/Dockerfile +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/EULA.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/LICENSE +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/README.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/README_en.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/README_fr.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/README_ja.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/README_ru.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/README_zh-TW.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/api/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/api/all.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/api/event/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/api/event/filter/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/api/message_components.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/api/platform/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/api/provider/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/api/star/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/api/util/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/astrbot/long_term_memory.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/astrbot/main.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/astrbot/metadata.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/admin.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/alter_cmd.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/conversation.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/help.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/llm.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/plugin.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/provider.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/setunset.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/sid.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/t2i.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/tts.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/utils/rst_scene.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/metadata.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/reminder/main.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/reminder/metadata.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/session_controller/main.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/session_controller/metadata.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/web_searcher/engines/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/web_searcher/engines/bing.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/web_searcher/engines/sogo.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/web_searcher/main.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/web_searcher/metadata.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/cli/__main__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/cli/commands/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/cli/commands/cmd_conf.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/cli/commands/cmd_init.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/cli/commands/cmd_plug.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/cli/commands/cmd_run.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/cli/utils/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/cli/utils/basic.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/cli/utils/plugin.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/cli/utils/version_comparator.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/agent.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/context/compressor.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/context/config.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/context/manager.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/context/token_counter.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/context/truncator.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/handoff.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/hooks.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/mcp_client.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/message.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/response.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/run_context.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/runners/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/runners/base.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/runners/coze/coze_agent_runner.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/runners/coze/coze_api_client.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/runners/dashscope/dashscope_agent_runner.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/runners/dify/dify_agent_runner.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/runners/dify/dify_api_client.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/agent/tool_executor.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/astr_agent_context.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/astrbot_config_mgr.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/backup/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/backup/constants.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/backup/exporter.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/backup/importer.py +0 -0
- {astrbot-4.12.3/astrbot/core/sandbox → astrbot-4.13.0/astrbot/core/computer}/olayer/__init__.py +0 -0
- {astrbot-4.12.3/astrbot/core/sandbox → astrbot-4.13.0/astrbot/core/computer}/olayer/filesystem.py +0 -0
- {astrbot-4.12.3/astrbot/core/sandbox → astrbot-4.13.0/astrbot/core/computer}/olayer/python.py +0 -0
- {astrbot-4.12.3/astrbot/core/sandbox → astrbot-4.13.0/astrbot/core/computer}/olayer/shell.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/config/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/config/astrbot_config.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/config/i18n_utils.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/conversation_mgr.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/core_lifecycle.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/migration/helper.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/migration/migra_3_to_4.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/migration/migra_45_to_46.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/migration/migra_token_usage.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/migration/migra_webchat_session.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/migration/shared_preferences_v3.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/migration/sqlite_v3.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/vec_db/base.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/vec_db/faiss_impl/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/vec_db/faiss_impl/document_storage.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/vec_db/faiss_impl/embedding_storage.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/vec_db/faiss_impl/sqlite_init.sql +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/db/vec_db/faiss_impl/vec_db.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/event_bus.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/exceptions.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/file_token_service.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/initial_loader.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/chunking/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/chunking/base.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/chunking/fixed_size.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/chunking/recursive.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/kb_db_sqlite.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/kb_helper.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/kb_mgr.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/models.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/parsers/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/parsers/base.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/parsers/markitdown_parser.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/parsers/pdf_parser.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/parsers/text_parser.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/parsers/url_parser.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/parsers/util.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/prompts.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/retrieval/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/retrieval/hit_stopwords.txt +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/retrieval/manager.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/retrieval/rank_fusion.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/knowledge_base/retrieval/sparse_retriever.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/log.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/message/message_event_result.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/content_safety_check/stage.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/content_safety_check/strategies/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/content_safety_check/strategies/baidu_aip.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/content_safety_check/strategies/keywords.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/content_safety_check/strategies/strategy.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/context.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/process_stage/method/agent_request.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/process_stage/method/agent_sub_stages/third_party.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/process_stage/method/star_request.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/process_stage/stage.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/rate_limit_check/stage.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/respond/stage.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/result_decorate/stage.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/session_status_check/stage.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/stage.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/pipeline/whitelist_check/stage.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/astr_message_event.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/astrbot_message.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/manager.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/message_session.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/message_type.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/platform.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/platform_metadata.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/register.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/discord/client.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/discord/components.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/discord/discord_platform_adapter.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/discord/discord_platform_event.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/lark/lark_adapter.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/lark/lark_event.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/lark/server.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/misskey/misskey_adapter.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/misskey/misskey_api.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/misskey/misskey_event.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/misskey/misskey_utils.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_adapter.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_event.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_server.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/satori/satori_adapter.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/satori/satori_event.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/slack/client.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/slack/slack_adapter.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/slack/slack_event.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/telegram/tg_adapter.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/telegram/tg_event.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/webchat/webchat_queue_mgr.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/wecom/wecom_adapter.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/wecom/wecom_event.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/wecom/wecom_kf.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/wecom/wecom_kf_message.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/wecom_ai_bot/WXBizJsonMsgCrypt.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/wecom_ai_bot/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/wecom_ai_bot/ierror.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_adapter.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_api.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_event.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_queue_mgr.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_server.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_utils.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_adapter.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_event.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/platform_message_history_mgr.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/entites.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/entities.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/func_tool_manager.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/register.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/anthropic_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/azure_tts_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/bailian_rerank_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/dashscope_tts.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/edge_tts_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/fishaudio_tts_api_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/gemini_tts_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/groq_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/gsv_selfhosted_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/gsvi_tts_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/minimax_tts_api_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/openai_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/openai_tts_api_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/sensevoice_selfhosted_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/vllm_rerank_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/volcengine_tts.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/whisper_api_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/whisper_selfhosted_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/xai_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/xinference_rerank_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/xinference_stt_provider.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/provider/sources/zhipu_source.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/README.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/filter/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/filter/command_group.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/filter/event_message_type.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/filter/permission.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/filter/platform_adapter_type.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/filter/regex.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/register/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/register/star.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/session_llm_manager.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/session_plugin_manager.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/star.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/star_handler.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/star_manager.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/star_tools.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/star/updator.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/umop_config_router.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/updator.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/command_parser.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/file_extract.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/io.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/llm_metadata.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/log_pipe.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/metrics.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/migra_helper.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/path_util.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/pip_installer.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/plugin_kv_store.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/session_lock.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/session_waiter.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/shared_preferences.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/t2i/__init__.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/t2i/local_strategy.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/t2i/network_strategy.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/t2i/renderer.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/t2i/template/astrbot_powershell.html +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/t2i/template/base.html +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/t2i/template_manager.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/tencent_record_helper.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/version_comparator.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/utils/webhook_utils.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/core/zip_updator.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/auth.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/backup.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/chat.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/chatui_project.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/command.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/conversation.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/file.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/knowledge_base.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/log.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/platform.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/plugin.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/route.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/session_management.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/stat.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/static_file.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/t2i.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/tools.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/routes/update.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/astrbot/dashboard/utils.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.0.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.1.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.10.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.11.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.12.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.13.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.14.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.15.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.16.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.17.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.18.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.19.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.20.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.21.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.22.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.23.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.24.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.25.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.26.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.27.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.28.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.29.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.3.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.30.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.31.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.32.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.33.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.35.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.36.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.37.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.38.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.39.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.4.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.5.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.6.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.7.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.8.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.4.9.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.0.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.1.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.10.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.11.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.12.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.13.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.14.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.15.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.16.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.17.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.18.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.19.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.2.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.20.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.21.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.22.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.23.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.24.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.25.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.26.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.27.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.3.1.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.3.2.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.3.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.4.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.5.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.6.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.7.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.8.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v3.5.9.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.0.0-beta.3.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.0.0-beta.4.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.0.0-beta.5.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.0.0.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.1.0.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.1.1.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.1.2.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.1.3.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.1.4.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.1.5.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.1.6.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.1.7.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.10.0-alpha.1.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.10.0-alpha.2.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.10.0.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.10.1.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.10.2.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.10.3.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.10.4.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.10.5.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.10.6.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.11.0.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.11.1.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.11.2.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.11.3.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.11.4.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.12.0.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.12.1.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.12.2.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.12.3.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.2.0.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.2.1.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.3.0.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.3.1.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.3.2.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.3.3.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.3.5.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.5.0.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.5.1.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.5.2.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.5.3.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.5.4.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.5.5.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.5.6.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.5.7.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.5.8.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.6.0.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.6.1.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.7.0.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.7.1.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.7.3.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.7.4.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.8.0.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.9.0.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.9.1.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/changelogs/v4.9.2.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/compose-with-shipyard.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/compose.yml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/.gitignore +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/LICENSE +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/README.md +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/env.d.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/public/_redirects +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/public/favicon.svg +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/App.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/astrbot_banner.png +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/astrbot_logo_mini.webp +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/icon-no-shadow.svg +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/loading-seio.webp +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/platform_logos/dingtalk.svg +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/platform_logos/discord.svg +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/platform_logos/kook.png +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/platform_logos/lark.png +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/platform_logos/misskey.png +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/platform_logos/onebot.png +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/platform_logos/qq.png +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/platform_logos/satori.png +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/platform_logos/slack.svg +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/platform_logos/telegram.svg +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/platform_logos/vocechat.png +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/platform_logos/wechat.png +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/platform_logos/wecom.png +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/plugin_icon.png +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/assets/images/xmas-hat.png +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/ConfirmDialog.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/ConfigSelector.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/ConversationSidebar.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/ProjectDialog.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/ProjectList.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/ProjectView.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/ProviderConfigDialog.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/ProviderModelMenu.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/WelcomeView.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/message_list_comps/ActionRef.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/message_list_comps/IPythonToolBlock.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/message_list_comps/ReasoningBlock.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/message_list_comps/RefNode.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/message_list_comps/RefsSidebar.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/chat/message_list_comps/ToolCallCard.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/config/AstrBotCoreConfigWrapper.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/extension/McpServersSection.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/extension/componentPanel/components/CommandFilters.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/extension/componentPanel/components/CommandTable.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/extension/componentPanel/components/DetailsDialog.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/extension/componentPanel/components/RenameDialog.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/extension/componentPanel/components/ToolTable.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/extension/componentPanel/composables/useCommandActions.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/extension/componentPanel/composables/useCommandFilters.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/extension/componentPanel/composables/useComponentData.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/extension/componentPanel/index.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/extension/componentPanel/types.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/platform/AddNewPlatform.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/provider/AddNewProvider.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/provider/ProviderModelsPanel.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/provider/ProviderSourcesPanel.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/AstrBotConfigV4.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/BackupDialog.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/ChangelogDialog.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/ConsoleDisplayer.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/ExtensionCard.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/ItemCardGrid.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/KnowledgeBaseSelector.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/LanguageSwitcher.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/ListConfigItem.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/Logo.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/MigrationDialog.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/ObjectEditor.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/PluginSetSelector.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/ReadmeDialog.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/SidebarCustomizer.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/StyledMenu.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/TemplateListEditor.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/UninstallConfirmDialog.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/components/shared/WaitingForRestart.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/composables/useConversations.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/composables/useMediaHandling.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/composables/useMessages.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/composables/useProjects.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/composables/useProviderSources.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/composables/useRecording.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/composables/useSessions.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/config.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/composables.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/loader.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/core/actions.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/core/common.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/core/header.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/core/navigation.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/core/status.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/about.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/alkaid/index.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/alkaid/knowledge-base.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/alkaid/memory.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/auth.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/chart.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/command.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/console.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/conversation.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/dashboard.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/knowledge-base/detail.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/knowledge-base/document.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/knowledge-base/index.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/migration.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/platform.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/provider.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/session-management.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/settings.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/features/tool-use.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/messages/errors.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/messages/success.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/en-US/messages/validation.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/core/actions.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/core/common.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/core/header.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/core/navigation.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/core/status.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/about.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/alkaid/index.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/alkaid/knowledge-base.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/alkaid/memory.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/auth.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/chart.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/command.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/console.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/conversation.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/dashboard.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/detail.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/document.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/index.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/migration.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/platform.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/provider.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/session-management.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/settings.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/features/tool-use.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/messages/errors.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/messages/success.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/locales/zh-CN/messages/validation.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/tools/index.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/translations.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/types.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/i18n/validator.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/layouts/blank/BlankLayout.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/layouts/full/FullLayout.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/layouts/full/vertical-sidebar/NavItem.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/main.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/plugins/confirmPlugin.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/plugins/vuetify.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/router/AuthRoutes.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/router/ChatBoxRoutes.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/router/MainRoutes.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/router/index.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/scss/_override.scss +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/scss/_variables.scss +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/scss/components/_VButtons.scss +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/scss/components/_VCard.scss +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/scss/components/_VField.scss +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/scss/components/_VInput.scss +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/scss/components/_VNavigationDrawer.scss +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/scss/components/_VScrollbar.scss +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/scss/components/_VShadow.scss +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/scss/components/_VTabs.scss +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/scss/components/_VTextField.scss +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/scss/layout/_container.scss +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/scss/layout/_sidebar.scss +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/scss/pages/_dashboards.scss +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/scss/style.scss +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/stores/auth.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/stores/common.js +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/stores/customizer.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/stores/routerLoading.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/stores/toast.js +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/theme/DarkTheme.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/theme/LightTheme.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/types/themeTypes/ThemeType.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/types/vue3-print-nb.d.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/types/vue_tabler_icon.d.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/utils/platformUtils.js +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/utils/providerUtils.js +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/utils/sidebarCustomization.js +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/utils/toast.js +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/AboutPage.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/AlkaidPage.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/ChatBoxPage.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/ChatPage.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/ConfigPage.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/ConsolePage.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/ConversationPage.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/PlatformPage.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/ProviderPage.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/SessionManagementPage.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/Settings.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/alkaid/LongTermMemory.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/alkaid/Other.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/authentication/auth/LoginPage.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/authentication/authForms/AuthLogin.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/dashboards/default/DefaultDashboard.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/dashboards/default/components/MemoryUsage.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/dashboards/default/components/MessageStat.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/dashboards/default/components/OnlinePlatform.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/dashboards/default/components/OnlineTime.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/dashboards/default/components/PlatformStat.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/dashboards/default/components/RunningTime.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/dashboards/default/components/TotalMessage.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/knowledge-base/DocumentDetail.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/knowledge-base/KBDetail.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/knowledge-base/KBList.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/knowledge-base/components/DocumentsTab.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/knowledge-base/components/RetrievalTab.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/knowledge-base/components/SettingsTab.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/knowledge-base/components/TavilyKeyDialog.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/src/views/knowledge-base/index.vue +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/tsconfig.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/tsconfig.vite-config.json +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/dashboard/vite.config.ts +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/k8s/astrbot/00-namespace.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/k8s/astrbot/01-pvc.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/k8s/astrbot/02-deployment.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/k8s/astrbot/03-service-nodeport.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/k8s/astrbot/04-service-loadbalancer.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/k8s/astrbot_with_napcat/00-namespace.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/k8s/astrbot_with_napcat/01-pvc.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/k8s/astrbot_with_napcat/02-deployment.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/k8s/astrbot_with_napcat/03-service-nodeport.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/k8s/astrbot_with_napcat/04-service-loadbalancer.yaml +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/main.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/requirements.txt +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/samples/stt_health_check.wav +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/tests/agent/test_context_manager.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/tests/agent/test_truncator.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/tests/test_backup.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/tests/test_dashboard.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/tests/test_kb_import.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/tests/test_main.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/tests/test_plugin_manager.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/tests/test_security_fixes.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/tests/test_tool_loop_agent_runner.py +0 -0
- {astrbot-4.12.3 → astrbot-4.13.0}/typings/faiss/__init__.pyi +0 -0
|
@@ -10,8 +10,11 @@ from astrbot.api.provider import Provider, ProviderRequest
|
|
|
10
10
|
from astrbot.core.agent.message import TextPart
|
|
11
11
|
from astrbot.core.pipeline.process_stage.utils import (
|
|
12
12
|
CHATUI_SPECIAL_DEFAULT_PERSONA_PROMPT,
|
|
13
|
+
LOCAL_EXECUTE_SHELL_TOOL,
|
|
14
|
+
LOCAL_PYTHON_TOOL,
|
|
13
15
|
)
|
|
14
16
|
from astrbot.core.provider.func_tool_manager import ToolSet
|
|
17
|
+
from astrbot.core.skills.skill_manager import SkillManager, build_skills_prompt
|
|
15
18
|
|
|
16
19
|
|
|
17
20
|
class ProcessLLMRequest:
|
|
@@ -25,6 +28,15 @@ class ProcessLLMRequest:
|
|
|
25
28
|
else:
|
|
26
29
|
logger.info(f"Timezone set to: {self.timezone}")
|
|
27
30
|
|
|
31
|
+
self.skill_manager = SkillManager()
|
|
32
|
+
|
|
33
|
+
def _apply_local_env_tools(self, req: ProviderRequest) -> None:
|
|
34
|
+
"""Add local environment tools to the provider request."""
|
|
35
|
+
if req.func_tool is None:
|
|
36
|
+
req.func_tool = ToolSet()
|
|
37
|
+
req.func_tool.add_tool(LOCAL_EXECUTE_SHELL_TOOL)
|
|
38
|
+
req.func_tool.add_tool(LOCAL_PYTHON_TOOL)
|
|
39
|
+
|
|
28
40
|
async def _ensure_persona(
|
|
29
41
|
self, req: ProviderRequest, cfg: dict, umo: str, platform_type: str
|
|
30
42
|
):
|
|
@@ -66,6 +78,30 @@ class ProcessLLMRequest:
|
|
|
66
78
|
if begin_dialogs := copy.deepcopy(persona["_begin_dialogs_processed"]):
|
|
67
79
|
req.contexts[:0] = begin_dialogs
|
|
68
80
|
|
|
81
|
+
# skills select and prompt
|
|
82
|
+
runtime = self.skills_cfg.get("runtime", "local")
|
|
83
|
+
skills = self.skill_manager.list_skills(active_only=True, runtime=runtime)
|
|
84
|
+
if runtime == "sandbox" and not self.sandbox_cfg.get("enable", False):
|
|
85
|
+
logger.warning(
|
|
86
|
+
"Skills runtime is set to sandbox, but sandbox mode is disabled, will skip skills prompt injection.",
|
|
87
|
+
)
|
|
88
|
+
req.system_prompt += "\n[Background: User added some skills, and skills runtime is set to sandbox, but sandbox mode is disabled. So skills will be unavailable.]\n"
|
|
89
|
+
elif skills:
|
|
90
|
+
# persona.skills == None means all skills are allowed
|
|
91
|
+
if persona and persona.get("skills") is not None:
|
|
92
|
+
if not persona["skills"]:
|
|
93
|
+
return
|
|
94
|
+
allowed = set(persona["skills"])
|
|
95
|
+
skills = [skill for skill in skills if skill.name in allowed]
|
|
96
|
+
if skills:
|
|
97
|
+
req.system_prompt += f"\n{build_skills_prompt(skills)}\n"
|
|
98
|
+
|
|
99
|
+
# if user wants to use skills in non-sandbox mode, apply local env tools
|
|
100
|
+
runtime = self.skills_cfg.get("runtime", "local")
|
|
101
|
+
sandbox_enabled = self.sandbox_cfg.get("enable", False)
|
|
102
|
+
if runtime == "local" and not sandbox_enabled:
|
|
103
|
+
self._apply_local_env_tools(req)
|
|
104
|
+
|
|
69
105
|
# tools select
|
|
70
106
|
tmgr = self.ctx.get_llm_tool_manager()
|
|
71
107
|
if (persona and persona.get("tools") is None) or not persona:
|
|
@@ -81,7 +117,10 @@ class ProcessLLMRequest:
|
|
|
81
117
|
tool = tmgr.get_func(tool_name)
|
|
82
118
|
if tool and tool.active:
|
|
83
119
|
toolset.add_tool(tool)
|
|
84
|
-
req.func_tool
|
|
120
|
+
if not req.func_tool:
|
|
121
|
+
req.func_tool = toolset
|
|
122
|
+
else:
|
|
123
|
+
req.func_tool.merge(toolset)
|
|
85
124
|
logger.debug(f"Tool set for persona {persona_id}: {toolset.names()}")
|
|
86
125
|
|
|
87
126
|
async def _ensure_img_caption(
|
|
@@ -134,6 +173,8 @@ class ProcessLLMRequest:
|
|
|
134
173
|
cfg: dict = self.ctx.get_config(umo=event.unified_msg_origin)[
|
|
135
174
|
"provider_settings"
|
|
136
175
|
]
|
|
176
|
+
self.skills_cfg = cfg.get("skills", {})
|
|
177
|
+
self.sandbox_cfg = cfg.get("sandbox", {})
|
|
137
178
|
|
|
138
179
|
# prompt prefix
|
|
139
180
|
if prefix := cfg.get("prompt_prefix"):
|
{astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/__init__.py
RENAMED
|
@@ -11,7 +11,6 @@ from .provider import ProviderCommands
|
|
|
11
11
|
from .setunset import SetUnsetCommands
|
|
12
12
|
from .sid import SIDCommand
|
|
13
13
|
from .t2i import T2ICommand
|
|
14
|
-
from .tool import ToolCommands
|
|
15
14
|
from .tts import TTSCommand
|
|
16
15
|
|
|
17
16
|
__all__ = [
|
|
@@ -27,5 +26,4 @@ __all__ = [
|
|
|
27
26
|
"SetUnsetCommands",
|
|
28
27
|
"T2ICommand",
|
|
29
28
|
"TTSCommand",
|
|
30
|
-
"ToolCommands",
|
|
31
29
|
]
|
{astrbot-4.12.3 → astrbot-4.13.0}/astrbot/builtin_stars/builtin_commands/commands/persona.py
RENAMED
|
@@ -1,13 +1,55 @@
|
|
|
1
1
|
import builtins
|
|
2
|
+
from typing import TYPE_CHECKING
|
|
2
3
|
|
|
3
4
|
from astrbot.api import sp, star
|
|
4
5
|
from astrbot.api.event import AstrMessageEvent, MessageEventResult
|
|
5
6
|
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from astrbot.core.db.po import Persona
|
|
9
|
+
|
|
6
10
|
|
|
7
11
|
class PersonaCommands:
|
|
8
12
|
def __init__(self, context: star.Context):
|
|
9
13
|
self.context = context
|
|
10
14
|
|
|
15
|
+
def _build_tree_output(
|
|
16
|
+
self,
|
|
17
|
+
folder_tree: list[dict],
|
|
18
|
+
all_personas: list["Persona"],
|
|
19
|
+
depth: int = 0,
|
|
20
|
+
) -> list[str]:
|
|
21
|
+
"""递归构建树状输出,使用短线条表示层级"""
|
|
22
|
+
lines: list[str] = []
|
|
23
|
+
# 使用短线条作为缩进前缀,每层只用 "│" 加一个空格
|
|
24
|
+
prefix = "│ " * depth
|
|
25
|
+
|
|
26
|
+
for folder in folder_tree:
|
|
27
|
+
# 输出文件夹
|
|
28
|
+
lines.append(f"{prefix}├ 📁 {folder['name']}/")
|
|
29
|
+
|
|
30
|
+
# 获取该文件夹下的人格
|
|
31
|
+
folder_personas = [
|
|
32
|
+
p for p in all_personas if p.folder_id == folder["folder_id"]
|
|
33
|
+
]
|
|
34
|
+
child_prefix = "│ " * (depth + 1)
|
|
35
|
+
|
|
36
|
+
# 输出该文件夹下的人格
|
|
37
|
+
for persona in folder_personas:
|
|
38
|
+
lines.append(f"{child_prefix}├ 👤 {persona.persona_id}")
|
|
39
|
+
|
|
40
|
+
# 递归处理子文件夹
|
|
41
|
+
children = folder.get("children", [])
|
|
42
|
+
if children:
|
|
43
|
+
lines.extend(
|
|
44
|
+
self._build_tree_output(
|
|
45
|
+
children,
|
|
46
|
+
all_personas,
|
|
47
|
+
depth + 1,
|
|
48
|
+
)
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
return lines
|
|
52
|
+
|
|
11
53
|
async def persona(self, message: AstrMessageEvent):
|
|
12
54
|
l = message.message_str.split(" ") # noqa: E741
|
|
13
55
|
umo = message.unified_msg_origin
|
|
@@ -69,12 +111,32 @@ class PersonaCommands:
|
|
|
69
111
|
.use_t2i(False),
|
|
70
112
|
)
|
|
71
113
|
elif l[1] == "list":
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
114
|
+
# 获取文件夹树和所有人格
|
|
115
|
+
folder_tree = await self.context.persona_manager.get_folder_tree()
|
|
116
|
+
all_personas = self.context.persona_manager.personas
|
|
117
|
+
|
|
118
|
+
lines = ["📂 人格列表:\n"]
|
|
119
|
+
|
|
120
|
+
# 构建树状输出
|
|
121
|
+
tree_lines = self._build_tree_output(folder_tree, all_personas)
|
|
122
|
+
lines.extend(tree_lines)
|
|
123
|
+
|
|
124
|
+
# 输出根目录下的人格(没有文件夹的)
|
|
125
|
+
root_personas = [p for p in all_personas if p.folder_id is None]
|
|
126
|
+
if root_personas:
|
|
127
|
+
if tree_lines: # 如果有文件夹内容,加个空行
|
|
128
|
+
lines.append("")
|
|
129
|
+
for persona in root_personas:
|
|
130
|
+
lines.append(f"👤 {persona.persona_id}")
|
|
131
|
+
|
|
132
|
+
# 统计信息
|
|
133
|
+
total_count = len(all_personas)
|
|
134
|
+
lines.append(f"\n共 {total_count} 个人格")
|
|
135
|
+
lines.append("\n*使用 `/persona <人格名>` 设置人格")
|
|
136
|
+
lines.append("*使用 `/persona view <人格名>` 查看详细信息")
|
|
137
|
+
|
|
138
|
+
msg = "\n".join(lines)
|
|
139
|
+
message.set_result(MessageEventResult().message(msg).use_t2i(False))
|
|
78
140
|
elif l[1] == "view":
|
|
79
141
|
if len(l) == 2:
|
|
80
142
|
message.set_result(MessageEventResult().message("请输入人格情景名"))
|
|
@@ -13,7 +13,6 @@ from .commands import (
|
|
|
13
13
|
SetUnsetCommands,
|
|
14
14
|
SIDCommand,
|
|
15
15
|
T2ICommand,
|
|
16
|
-
ToolCommands,
|
|
17
16
|
TTSCommand,
|
|
18
17
|
)
|
|
19
18
|
|
|
@@ -24,7 +23,6 @@ class Main(star.Star):
|
|
|
24
23
|
|
|
25
24
|
self.help_c = HelpCommand(self.context)
|
|
26
25
|
self.llm_c = LLMCommands(self.context)
|
|
27
|
-
self.tool_c = ToolCommands(self.context)
|
|
28
26
|
self.plugin_c = PluginCommands(self.context)
|
|
29
27
|
self.admin_c = AdminCommands(self.context)
|
|
30
28
|
self.conversation_c = ConversationCommands(self.context)
|
|
@@ -47,30 +45,6 @@ class Main(star.Star):
|
|
|
47
45
|
"""开启/关闭 LLM"""
|
|
48
46
|
await self.llm_c.llm(event)
|
|
49
47
|
|
|
50
|
-
@filter.command_group("tool")
|
|
51
|
-
def tool(self):
|
|
52
|
-
"""函数工具管理"""
|
|
53
|
-
|
|
54
|
-
@tool.command("ls")
|
|
55
|
-
async def tool_ls(self, event: AstrMessageEvent):
|
|
56
|
-
"""查看函数工具列表"""
|
|
57
|
-
await self.tool_c.tool_ls(event)
|
|
58
|
-
|
|
59
|
-
@tool.command("on")
|
|
60
|
-
async def tool_on(self, event: AstrMessageEvent, tool_name: str):
|
|
61
|
-
"""启用一个函数工具"""
|
|
62
|
-
await self.tool_c.tool_on(event, tool_name)
|
|
63
|
-
|
|
64
|
-
@tool.command("off")
|
|
65
|
-
async def tool_off(self, event: AstrMessageEvent, tool_name: str):
|
|
66
|
-
"""停用一个函数工具"""
|
|
67
|
-
await self.tool_c.tool_off(event, tool_name)
|
|
68
|
-
|
|
69
|
-
@tool.command("off_all")
|
|
70
|
-
async def tool_all_off(self, event: AstrMessageEvent):
|
|
71
|
-
"""停用所有函数工具"""
|
|
72
|
-
await self.tool_c.tool_all_off(event)
|
|
73
|
-
|
|
74
48
|
@filter.command_group("plugin")
|
|
75
49
|
def plugin(self):
|
|
76
50
|
"""插件管理"""
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "4.13.0"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import copy
|
|
1
2
|
import sys
|
|
2
3
|
import time
|
|
3
4
|
import traceback
|
|
@@ -14,6 +15,7 @@ from mcp.types import (
|
|
|
14
15
|
|
|
15
16
|
from astrbot import logger
|
|
16
17
|
from astrbot.core.agent.message import TextPart, ThinkPart
|
|
18
|
+
from astrbot.core.agent.tool import ToolSet
|
|
17
19
|
from astrbot.core.message.components import Json
|
|
18
20
|
from astrbot.core.message.message_event_result import (
|
|
19
21
|
MessageChain,
|
|
@@ -64,6 +66,7 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
64
66
|
# customize
|
|
65
67
|
custom_token_counter: TokenCounter | None = None,
|
|
66
68
|
custom_compressor: ContextCompressor | None = None,
|
|
69
|
+
tool_schema_mode: str | None = "full",
|
|
67
70
|
**kwargs: T.Any,
|
|
68
71
|
) -> None:
|
|
69
72
|
self.req = request
|
|
@@ -99,6 +102,24 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
99
102
|
self.agent_hooks = agent_hooks
|
|
100
103
|
self.run_context = run_context
|
|
101
104
|
|
|
105
|
+
# These two are used for tool schema mode handling
|
|
106
|
+
# We now have two modes:
|
|
107
|
+
# - "full": use full tool schema for LLM calls, default.
|
|
108
|
+
# - "skills_like": use light tool schema for LLM calls, and re-query with param-only schema when needed.
|
|
109
|
+
# Light tool schema does not include tool parameters.
|
|
110
|
+
# This can reduce token usage when tools have large descriptions.
|
|
111
|
+
# See #4681
|
|
112
|
+
self.tool_schema_mode = tool_schema_mode
|
|
113
|
+
self._tool_schema_param_set = None
|
|
114
|
+
if tool_schema_mode == "skills_like":
|
|
115
|
+
tool_set = self.req.func_tool
|
|
116
|
+
if not tool_set:
|
|
117
|
+
return
|
|
118
|
+
light_set = tool_set.get_light_tool_set()
|
|
119
|
+
self._tool_schema_param_set = tool_set.get_param_only_tool_set()
|
|
120
|
+
# MODIFIE the req.func_tool to use light tool schemas
|
|
121
|
+
self.req.func_tool = light_set
|
|
122
|
+
|
|
102
123
|
messages = []
|
|
103
124
|
# append existing messages in the run context
|
|
104
125
|
for msg in request.contexts:
|
|
@@ -253,6 +274,9 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
253
274
|
|
|
254
275
|
# 如果有工具调用,还需处理工具调用
|
|
255
276
|
if llm_resp.tools_call_name:
|
|
277
|
+
if self.tool_schema_mode == "skills_like":
|
|
278
|
+
llm_resp, _ = await self._resolve_tool_exec(llm_resp)
|
|
279
|
+
|
|
256
280
|
tool_call_result_blocks = []
|
|
257
281
|
async for result in self._handle_function_tools(self.req, llm_resp):
|
|
258
282
|
if isinstance(result, list):
|
|
@@ -269,6 +293,7 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
269
293
|
type=ar_type,
|
|
270
294
|
data=AgentResponseData(chain=result),
|
|
271
295
|
)
|
|
296
|
+
|
|
272
297
|
# 将结果添加到上下文中
|
|
273
298
|
parts = []
|
|
274
299
|
if llm_resp.reasoning_content or llm_resp.reasoning_signature:
|
|
@@ -354,7 +379,7 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
354
379
|
try:
|
|
355
380
|
if not req.func_tool:
|
|
356
381
|
return
|
|
357
|
-
func_tool = req.func_tool.
|
|
382
|
+
func_tool = req.func_tool.get_tool(func_tool_name)
|
|
358
383
|
logger.info(f"使用工具:{func_tool_name},参数:{func_tool_args}")
|
|
359
384
|
|
|
360
385
|
if not func_tool:
|
|
@@ -537,6 +562,71 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
537
562
|
if tool_call_result_blocks:
|
|
538
563
|
yield tool_call_result_blocks
|
|
539
564
|
|
|
565
|
+
def _build_tool_requery_context(
|
|
566
|
+
self, tool_names: list[str]
|
|
567
|
+
) -> list[dict[str, T.Any]]:
|
|
568
|
+
"""Build contexts for re-querying LLM with param-only tool schemas."""
|
|
569
|
+
contexts: list[dict[str, T.Any]] = []
|
|
570
|
+
for msg in self.run_context.messages:
|
|
571
|
+
if hasattr(msg, "model_dump"):
|
|
572
|
+
contexts.append(msg.model_dump()) # type: ignore[call-arg]
|
|
573
|
+
elif isinstance(msg, dict):
|
|
574
|
+
contexts.append(copy.deepcopy(msg))
|
|
575
|
+
instruction = (
|
|
576
|
+
"You have decided to call tool(s): "
|
|
577
|
+
+ ", ".join(tool_names)
|
|
578
|
+
+ ". Now call the tool(s) with required arguments using the tool schema, "
|
|
579
|
+
"and follow the existing tool-use rules."
|
|
580
|
+
)
|
|
581
|
+
if contexts and contexts[0].get("role") == "system":
|
|
582
|
+
content = contexts[0].get("content") or ""
|
|
583
|
+
contexts[0]["content"] = f"{content}\n{instruction}"
|
|
584
|
+
else:
|
|
585
|
+
contexts.insert(0, {"role": "system", "content": instruction})
|
|
586
|
+
return contexts
|
|
587
|
+
|
|
588
|
+
def _build_tool_subset(self, tool_set: ToolSet, tool_names: list[str]) -> ToolSet:
|
|
589
|
+
"""Build a subset of tools from the given tool set based on tool names."""
|
|
590
|
+
subset = ToolSet()
|
|
591
|
+
for name in tool_names:
|
|
592
|
+
tool = tool_set.get_tool(name)
|
|
593
|
+
if tool:
|
|
594
|
+
subset.add_tool(tool)
|
|
595
|
+
return subset
|
|
596
|
+
|
|
597
|
+
async def _resolve_tool_exec(
|
|
598
|
+
self,
|
|
599
|
+
llm_resp: LLMResponse,
|
|
600
|
+
) -> tuple[LLMResponse, ToolSet | None]:
|
|
601
|
+
"""Used in 'skills_like' tool schema mode to re-query LLM with param-only tool schemas."""
|
|
602
|
+
tool_names = llm_resp.tools_call_name
|
|
603
|
+
if not tool_names:
|
|
604
|
+
return llm_resp, self.req.func_tool
|
|
605
|
+
full_tool_set = self.req.func_tool
|
|
606
|
+
if not isinstance(full_tool_set, ToolSet):
|
|
607
|
+
return llm_resp, self.req.func_tool
|
|
608
|
+
|
|
609
|
+
subset = self._build_tool_subset(full_tool_set, tool_names)
|
|
610
|
+
if not subset.tools:
|
|
611
|
+
return llm_resp, full_tool_set
|
|
612
|
+
|
|
613
|
+
if isinstance(self._tool_schema_param_set, ToolSet):
|
|
614
|
+
param_subset = self._build_tool_subset(
|
|
615
|
+
self._tool_schema_param_set, tool_names
|
|
616
|
+
)
|
|
617
|
+
if param_subset.tools and tool_names:
|
|
618
|
+
contexts = self._build_tool_requery_context(tool_names)
|
|
619
|
+
requery_resp = await self.provider.text_chat(
|
|
620
|
+
contexts=contexts,
|
|
621
|
+
func_tool=param_subset,
|
|
622
|
+
model=self.req.model,
|
|
623
|
+
session_id=self.req.session_id,
|
|
624
|
+
)
|
|
625
|
+
if requery_resp:
|
|
626
|
+
llm_resp = requery_resp
|
|
627
|
+
|
|
628
|
+
return llm_resp, subset
|
|
629
|
+
|
|
540
630
|
def done(self) -> bool:
|
|
541
631
|
"""检查 Agent 是否已完成工作"""
|
|
542
632
|
return self._state in (AgentState.DONE, AgentState.ERROR)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import copy
|
|
1
2
|
from collections.abc import AsyncGenerator, Awaitable, Callable
|
|
2
3
|
from typing import Any, Generic
|
|
3
4
|
|
|
@@ -102,6 +103,47 @@ class ToolSet:
|
|
|
102
103
|
return tool
|
|
103
104
|
return None
|
|
104
105
|
|
|
106
|
+
def get_light_tool_set(self) -> "ToolSet":
|
|
107
|
+
"""Return a light tool set with only name/description."""
|
|
108
|
+
light_tools = []
|
|
109
|
+
for tool in self.tools:
|
|
110
|
+
if hasattr(tool, "active") and not tool.active:
|
|
111
|
+
continue
|
|
112
|
+
light_params = {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"properties": {},
|
|
115
|
+
}
|
|
116
|
+
light_tools.append(
|
|
117
|
+
FunctionTool(
|
|
118
|
+
name=tool.name,
|
|
119
|
+
parameters=light_params,
|
|
120
|
+
description=tool.description,
|
|
121
|
+
handler=None,
|
|
122
|
+
)
|
|
123
|
+
)
|
|
124
|
+
return ToolSet(light_tools)
|
|
125
|
+
|
|
126
|
+
def get_param_only_tool_set(self) -> "ToolSet":
|
|
127
|
+
"""Return a tool set with name/parameters only (no description)."""
|
|
128
|
+
param_tools = []
|
|
129
|
+
for tool in self.tools:
|
|
130
|
+
if hasattr(tool, "active") and not tool.active:
|
|
131
|
+
continue
|
|
132
|
+
params = (
|
|
133
|
+
copy.deepcopy(tool.parameters)
|
|
134
|
+
if tool.parameters
|
|
135
|
+
else {"type": "object", "properties": {}}
|
|
136
|
+
)
|
|
137
|
+
param_tools.append(
|
|
138
|
+
FunctionTool(
|
|
139
|
+
name=tool.name,
|
|
140
|
+
parameters=params,
|
|
141
|
+
description="",
|
|
142
|
+
handler=None,
|
|
143
|
+
)
|
|
144
|
+
)
|
|
145
|
+
return ToolSet(param_tools)
|
|
146
|
+
|
|
105
147
|
@deprecated(reason="Use add_tool() instead", version="4.0.0")
|
|
106
148
|
def add_func(
|
|
107
149
|
self,
|
|
@@ -147,18 +189,15 @@ class ToolSet:
|
|
|
147
189
|
"""Convert tools to OpenAI API function calling schema format."""
|
|
148
190
|
result = []
|
|
149
191
|
for tool in self.tools:
|
|
150
|
-
func_def = {
|
|
151
|
-
|
|
152
|
-
"function"
|
|
153
|
-
"name": tool.name,
|
|
154
|
-
"description": tool.description,
|
|
155
|
-
},
|
|
156
|
-
}
|
|
192
|
+
func_def = {"type": "function", "function": {"name": tool.name}}
|
|
193
|
+
if tool.description:
|
|
194
|
+
func_def["function"]["description"] = tool.description
|
|
157
195
|
|
|
158
|
-
if
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
196
|
+
if tool.parameters is not None:
|
|
197
|
+
if (
|
|
198
|
+
tool.parameters and tool.parameters.get("properties")
|
|
199
|
+
) or not omit_empty_parameter_field:
|
|
200
|
+
func_def["function"]["parameters"] = tool.parameters
|
|
162
201
|
|
|
163
202
|
result.append(func_def)
|
|
164
203
|
return result
|
|
@@ -171,11 +210,9 @@ class ToolSet:
|
|
|
171
210
|
if tool.parameters:
|
|
172
211
|
input_schema["properties"] = tool.parameters.get("properties", {})
|
|
173
212
|
input_schema["required"] = tool.parameters.get("required", [])
|
|
174
|
-
tool_def = {
|
|
175
|
-
|
|
176
|
-
"description"
|
|
177
|
-
"input_schema": input_schema,
|
|
178
|
-
}
|
|
213
|
+
tool_def = {"name": tool.name, "input_schema": input_schema}
|
|
214
|
+
if tool.description:
|
|
215
|
+
tool_def["description"] = tool.description
|
|
179
216
|
result.append(tool_def)
|
|
180
217
|
return result
|
|
181
218
|
|
|
@@ -245,10 +282,9 @@ class ToolSet:
|
|
|
245
282
|
|
|
246
283
|
tools = []
|
|
247
284
|
for tool in self.tools:
|
|
248
|
-
d: dict[str, Any] = {
|
|
249
|
-
|
|
250
|
-
"description"
|
|
251
|
-
}
|
|
285
|
+
d: dict[str, Any] = {"name": tool.name}
|
|
286
|
+
if tool.description:
|
|
287
|
+
d["description"] = tool.description
|
|
252
288
|
if tool.parameters:
|
|
253
289
|
d["parameters"] = convert_schema(tool.parameters)
|
|
254
290
|
tools.append(d)
|
|
@@ -274,6 +310,11 @@ class ToolSet:
|
|
|
274
310
|
"""获取所有工具的名称列表"""
|
|
275
311
|
return [tool.name for tool in self.tools]
|
|
276
312
|
|
|
313
|
+
def merge(self, other: "ToolSet"):
|
|
314
|
+
"""Merge another ToolSet into this one."""
|
|
315
|
+
for tool in other.tools:
|
|
316
|
+
self.add_tool(tool)
|
|
317
|
+
|
|
277
318
|
def __len__(self):
|
|
278
319
|
return len(self.tools)
|
|
279
320
|
|
|
@@ -56,8 +56,10 @@ class MainAgentHooks(BaseAgentRunHooks[AstrAgentContext]):
|
|
|
56
56
|
)
|
|
57
57
|
|
|
58
58
|
# special handle web_search_tavily
|
|
59
|
+
platform_name = run_context.context.event.get_platform_name()
|
|
59
60
|
if (
|
|
60
|
-
|
|
61
|
+
platform_name == "webchat"
|
|
62
|
+
and tool.name == "web_search_tavily"
|
|
61
63
|
and len(run_context.messages) > 0
|
|
62
64
|
and tool_result
|
|
63
65
|
and len(tool_result.content)
|