AstrBot 4.9.2__tar.gz → 4.10.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.9.2 → astrbot-4.10.0}/.github/workflows/dashboard_ci.yml +1 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/CONTRIBUTING.md +26 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/PKG-INFO +2 -2
- astrbot-4.10.0/astrbot/cli/__init__.py +1 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/message.py +6 -4
- astrbot-4.10.0/astrbot/core/agent/response.py +35 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/run_context.py +1 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/runners/tool_loop_agent_runner.py +99 -20
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/astr_agent_context.py +3 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/astr_agent_run_util.py +42 -3
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/astr_agent_tool_exec.py +34 -4
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/config/default.py +127 -184
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/core_lifecycle.py +3 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/db/__init__.py +72 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/db/po.py +59 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/db/sqlite.py +240 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/message/components.py +4 -5
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/process_stage/method/agent_sub_stages/internal.py +6 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/respond/stage.py +1 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/telegram/tg_event.py +9 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/webchat/webchat_event.py +22 -18
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/entities.py +41 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/manager.py +203 -93
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/anthropic_source.py +55 -11
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/gemini_source.py +84 -33
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/openai_source.py +21 -6
- astrbot-4.10.0/astrbot/core/star/command_management.py +449 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/context.py +4 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/filter/command.py +1 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/filter/command_group.py +1 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/star_handler.py +4 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/star_manager.py +2 -0
- astrbot-4.10.0/astrbot/core/utils/llm_metadata.py +63 -0
- astrbot-4.10.0/astrbot/core/utils/migra_helper.py +166 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/__init__.py +2 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/chat.py +56 -13
- astrbot-4.10.0/astrbot/dashboard/routes/command.py +82 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/config.py +291 -33
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/stat.py +96 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/tools.py +20 -4
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/server.py +1 -0
- astrbot-4.10.0/changelogs/v4.10.0-alpha.1.md +34 -0
- astrbot-4.10.0/changelogs/v4.10.0-alpha.2.md +44 -0
- astrbot-4.10.0/changelogs/v4.10.0.md +40 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/index.html +1 -1
- astrbot-4.10.0/dashboard/src/assets/images/platform_logos/onebot.png +0 -0
- astrbot-4.10.0/dashboard/src/assets/images/provider_logos/modelstack.svg +1 -0
- astrbot-4.10.0/dashboard/src/assets/images/xmas-hat.png +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/chat/Chat.vue +77 -51
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/chat/ChatInput.vue +20 -8
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/chat/ConfigSelector.vue +1 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/chat/ConversationSidebar.vue +118 -78
- astrbot-4.10.0/dashboard/src/components/chat/MessageList.vue +1477 -0
- astrbot-4.10.0/dashboard/src/components/chat/ProviderConfigDialog.vue +375 -0
- astrbot-4.10.0/dashboard/src/components/chat/ProviderModelMenu.vue +217 -0
- astrbot-4.9.2/dashboard/src/views/ToolUsePage.vue → astrbot-4.10.0/dashboard/src/components/extension/McpServersSection.vue +38 -328
- astrbot-4.10.0/dashboard/src/components/extension/componentPanel/components/CommandFilters.vue +155 -0
- astrbot-4.10.0/dashboard/src/components/extension/componentPanel/components/CommandTable.vue +257 -0
- astrbot-4.10.0/dashboard/src/components/extension/componentPanel/components/DetailsDialog.vue +143 -0
- astrbot-4.10.0/dashboard/src/components/extension/componentPanel/components/RenameDialog.vue +53 -0
- astrbot-4.10.0/dashboard/src/components/extension/componentPanel/components/ToolTable.vue +144 -0
- astrbot-4.10.0/dashboard/src/components/extension/componentPanel/composables/useCommandActions.ts +177 -0
- astrbot-4.10.0/dashboard/src/components/extension/componentPanel/composables/useCommandFilters.ts +187 -0
- astrbot-4.10.0/dashboard/src/components/extension/componentPanel/composables/useComponentData.ts +83 -0
- astrbot-4.10.0/dashboard/src/components/extension/componentPanel/index.vue +307 -0
- astrbot-4.10.0/dashboard/src/components/extension/componentPanel/types.ts +102 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/platform/AddNewPlatform.vue +23 -7
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/provider/AddNewProvider.vue +1 -5
- astrbot-4.10.0/dashboard/src/components/provider/ProviderModelsPanel.vue +211 -0
- astrbot-4.10.0/dashboard/src/components/provider/ProviderSourcesPanel.vue +157 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/AstrBotConfig.vue +3 -3
- astrbot-4.10.0/dashboard/src/components/shared/ChangelogDialog.vue +209 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/LanguageSwitcher.vue +17 -65
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/ListConfigItem.vue +31 -3
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/ProviderSelector.vue +90 -4
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/ReadmeDialog.vue +12 -26
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/SidebarCustomizer.vue +8 -30
- astrbot-4.10.0/dashboard/src/components/shared/StyledMenu.vue +79 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/composables/useMessages.ts +260 -158
- astrbot-4.10.0/dashboard/src/composables/useProviderSources.ts +659 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/composables/useSessions.ts +11 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/core/actions.json +2 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/core/common.json +1 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/core/navigation.json +10 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/core/shared.json +3 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/chat.json +10 -1
- astrbot-4.10.0/dashboard/src/i18n/locales/en-US/features/command.json +91 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/extension.json +10 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/provider.json +47 -2
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/tool-use.json +4 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/core/actions.json +2 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/core/common.json +1 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/core/navigation.json +10 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/core/shared.json +3 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/chat.json +10 -1
- astrbot-4.10.0/dashboard/src/i18n/locales/zh-CN/features/command.json +91 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/extension.json +10 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/provider.json +46 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/tool-use.json +4 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/translations.ts +6 -2
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/layouts/full/FullLayout.vue +51 -8
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue +231 -52
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue +16 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts +0 -10
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/router/MainRoutes.ts +0 -5
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/router/index.ts +11 -0
- astrbot-4.10.0/dashboard/src/scss/components/_VInput.scss +7 -0
- astrbot-4.10.0/dashboard/src/scss/components/_VTextField.scss +3 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/scss/layout/_container.scss +5 -1
- astrbot-4.10.0/dashboard/src/scss/pages/_dashboards.scss +53 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/stores/customizer.ts +6 -1
- astrbot-4.10.0/dashboard/src/stores/routerLoading.ts +60 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/utils/platformUtils.js +3 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/utils/providerUtils.js +3 -0
- astrbot-4.10.0/dashboard/src/utils/sidebarCustomization.js +137 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/AboutPage.vue +2 -2
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/ConversationPage.vue +63 -16
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/ExtensionPage.vue +93 -6
- astrbot-4.10.0/dashboard/src/views/ProviderPage.vue +678 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/alkaid/LongTermMemory.vue +1 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/astrbot/process_llm_request.py +27 -10
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/commands/admin.py +1 -0
- astrbot-4.10.0/packages/builtin_commands/commands/help.py +88 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/main.py +3 -2
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/python_interpreter/main.py +1 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/reminder/main.py +1 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/web_searcher/main.py +1 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/pyproject.toml +2 -2
- {astrbot-4.9.2 → astrbot-4.10.0}/requirements.txt +1 -1
- {astrbot-4.9.2 → astrbot-4.10.0}/tests/test_dashboard.py +28 -0
- astrbot-4.10.0/tests/test_tool_loop_agent_runner.py +326 -0
- astrbot-4.9.2/astrbot/cli/__init__.py +0 -1
- astrbot-4.9.2/astrbot/core/agent/response.py +0 -14
- astrbot-4.9.2/astrbot/core/utils/migra_helper.py +0 -73
- astrbot-4.9.2/dashboard/src/components/chat/MessageList.vue +0 -1169
- astrbot-4.9.2/dashboard/src/components/chat/ProviderModelSelector.vue +0 -359
- astrbot-4.9.2/dashboard/src/scss/components/_VInput.scss +0 -17
- astrbot-4.9.2/dashboard/src/scss/components/_VTextField.scss +0 -70
- astrbot-4.9.2/dashboard/src/scss/pages/_dashboards.scss +0 -93
- astrbot-4.9.2/dashboard/src/utils/sidebarCustomization.js +0 -99
- astrbot-4.9.2/dashboard/src/views/ProviderPage.vue +0 -892
- astrbot-4.9.2/packages/builtin_commands/commands/help.py +0 -63
- {astrbot-4.9.2 → astrbot-4.10.0}/.dockerignore +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.github/FUNDING.yml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.github/ISSUE_TEMPLATE/PLUGIN_PUBLISH.yml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.github/auto_assign.yml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.github/copilot-instructions.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.github/dependabot.yml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.github/workflows/auto_release.yml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.github/workflows/code-format.yml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.github/workflows/codeql.yml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.github/workflows/coverage_test.yml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.github/workflows/docker-image.yml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.github/workflows/smoke_test.yml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.github/workflows/stale.yml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.gitignore +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.pre-commit-config.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/.python-version +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/CODE_OF_CONDUCT.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/Dockerfile +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/LICENSE +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/README.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/README_en.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/README_fr.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/README_ja.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/README_ru.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/README_zh-TW.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/api/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/api/all.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/api/event/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/api/event/filter/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/api/message_components.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/api/platform/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/api/provider/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/api/star/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/api/util/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/cli/__main__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/cli/commands/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/cli/commands/cmd_conf.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/cli/commands/cmd_init.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/cli/commands/cmd_plug.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/cli/commands/cmd_run.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/cli/utils/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/cli/utils/basic.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/cli/utils/plugin.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/cli/utils/version_comparator.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/agent.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/handoff.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/hooks.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/mcp_client.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/runners/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/runners/base.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/runners/coze/coze_agent_runner.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/runners/coze/coze_api_client.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/runners/dashscope/dashscope_agent_runner.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/runners/dify/dify_agent_runner.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/runners/dify/dify_api_client.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/tool.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/agent/tool_executor.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/astr_agent_hooks.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/astrbot_config_mgr.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/config/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/config/astrbot_config.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/config/i18n_utils.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/conversation_mgr.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/db/migration/helper.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/db/migration/migra_3_to_4.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/db/migration/migra_45_to_46.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/db/migration/migra_webchat_session.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/db/migration/shared_preferences_v3.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/db/migration/sqlite_v3.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/db/vec_db/base.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/db/vec_db/faiss_impl/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/db/vec_db/faiss_impl/document_storage.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/db/vec_db/faiss_impl/embedding_storage.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/db/vec_db/faiss_impl/sqlite_init.sql +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/db/vec_db/faiss_impl/vec_db.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/event_bus.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/exceptions.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/file_token_service.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/initial_loader.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/chunking/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/chunking/base.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/chunking/fixed_size.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/chunking/recursive.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/kb_db_sqlite.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/kb_helper.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/kb_mgr.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/models.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/parsers/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/parsers/base.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/parsers/markitdown_parser.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/parsers/pdf_parser.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/parsers/text_parser.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/parsers/url_parser.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/parsers/util.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/prompts.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/retrieval/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/retrieval/hit_stopwords.txt +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/retrieval/manager.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/retrieval/rank_fusion.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/knowledge_base/retrieval/sparse_retriever.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/log.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/message/message_event_result.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/persona_mgr.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/content_safety_check/stage.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/content_safety_check/strategies/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/content_safety_check/strategies/baidu_aip.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/content_safety_check/strategies/keywords.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/content_safety_check/strategies/strategy.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/context.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/context_utils.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/preprocess_stage/stage.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/process_stage/method/agent_request.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/process_stage/method/agent_sub_stages/third_party.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/process_stage/method/star_request.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/process_stage/stage.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/process_stage/utils.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/rate_limit_check/stage.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/result_decorate/stage.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/scheduler.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/session_status_check/stage.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/stage.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/waking_check/stage.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/pipeline/whitelist_check/stage.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/astr_message_event.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/astrbot_message.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/manager.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/message_session.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/message_type.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/platform.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/platform_metadata.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/register.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/dingtalk/dingtalk_adapter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/dingtalk/dingtalk_event.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/discord/client.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/discord/components.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/discord/discord_platform_adapter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/discord/discord_platform_event.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/lark/lark_adapter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/lark/lark_event.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/lark/server.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/misskey/misskey_adapter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/misskey/misskey_api.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/misskey/misskey_event.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/misskey/misskey_utils.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_adapter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_event.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_server.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/satori/satori_adapter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/satori/satori_event.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/slack/client.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/slack/slack_adapter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/slack/slack_event.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/telegram/tg_adapter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/webchat/webchat_adapter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/webchat/webchat_queue_mgr.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_adapter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_message_event.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wechatpadpro/xml_data_parser.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom/wecom_adapter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom/wecom_event.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom/wecom_kf.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom/wecom_kf_message.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/WXBizJsonMsgCrypt.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/ierror.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_adapter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_api.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_event.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_queue_mgr.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_server.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_utils.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_adapter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_event.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/platform_message_history_mgr.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/entites.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/func_tool_manager.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/provider.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/register.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/azure_tts_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/bailian_rerank_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/dashscope_tts.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/edge_tts_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/fishaudio_tts_api_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/gemini_embedding_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/gemini_tts_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/groq_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/gsv_selfhosted_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/gsvi_tts_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/minimax_tts_api_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/openai_embedding_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/openai_tts_api_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/sensevoice_selfhosted_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/vllm_rerank_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/volcengine_tts.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/whisper_api_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/whisper_selfhosted_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/xinference_rerank_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/xinference_stt_provider.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/provider/sources/zhipu_source.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/README.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/config.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/filter/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/filter/custom_filter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/filter/event_message_type.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/filter/permission.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/filter/platform_adapter_type.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/filter/regex.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/register/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/register/star.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/register/star_handler.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/session_llm_manager.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/session_plugin_manager.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/star.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/star_tools.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/star/updator.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/umop_config_router.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/updator.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/astrbot_path.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/command_parser.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/file_extract.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/io.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/log_pipe.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/metrics.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/path_util.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/pip_installer.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/plugin_kv_store.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/session_lock.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/session_waiter.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/shared_preferences.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/t2i/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/t2i/local_strategy.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/t2i/network_strategy.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/t2i/renderer.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/t2i/template/astrbot_powershell.html +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/t2i/template/base.html +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/t2i/template_manager.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/tencent_record_helper.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/version_comparator.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/utils/webhook_utils.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/core/zip_updator.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/auth.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/conversation.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/file.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/knowledge_base.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/log.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/persona.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/platform.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/plugin.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/route.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/session_management.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/static_file.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/t2i.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/routes/update.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/astrbot/dashboard/utils.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.0.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.1.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.10.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.11.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.12.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.13.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.14.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.15.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.16.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.17.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.18.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.19.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.20.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.21.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.22.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.23.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.24.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.25.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.26.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.27.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.28.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.29.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.3.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.30.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.31.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.32.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.33.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.35.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.36.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.37.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.38.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.39.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.4.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.5.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.6.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.7.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.8.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.4.9.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.0.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.1.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.10.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.11.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.12.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.13.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.14.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.15.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.16.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.17.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.18.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.19.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.2.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.20.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.21.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.22.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.23.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.24.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.25.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.26.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.27.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.3.1.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.3.2.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.3.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.4.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.5.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.6.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.7.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.8.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v3.5.9.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.0.0-beta.3.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.0.0-beta.4.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.0.0-beta.5.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.0.0.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.1.0.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.1.1.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.1.2.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.1.3.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.1.4.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.1.5.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.1.6.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.1.7.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.2.0.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.2.1.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.3.0.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.3.1.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.3.2.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.3.3.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.3.5.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.5.0.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.5.1.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.5.2.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.5.3.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.5.4.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.5.5.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.5.6.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.5.7.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.5.8.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.6.0.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.6.1.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.7.0.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.7.1.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.7.3.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.7.4.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.8.0.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.9.0.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.9.1.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/changelogs/v4.9.2.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/compose.yml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/.gitignore +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/LICENSE +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/README.md +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/env.d.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/public/_redirects +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/public/favicon.svg +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/App.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/astrbot_banner.png +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/astrbot_logo_mini.webp +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/icon-no-shadow.svg +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/loading-seio.webp +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/dingtalk.svg +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/discord.svg +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/kook.png +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/lark.png +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/misskey.png +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/qq.png +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/satori.png +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/slack.svg +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/telegram.svg +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/vocechat.png +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/wechat.png +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/wecom.png +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/assets/images/plugin_icon.png +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/ConfirmDialog.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/chat/StandaloneChat.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/config/AstrBotCoreConfigWrapper.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/AstrBotConfigV4.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/ConsoleDisplayer.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/ExtensionCard.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/ItemCard.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/ItemCardGrid.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/KnowledgeBaseSelector.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/Logo.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/MigrationDialog.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/ObjectEditor.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/PersonaForm.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/PersonaSelector.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/PluginSetSelector.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/ProxySelector.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/T2ITemplateEditor.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/UninstallConfirmDialog.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/components/shared/WaitingForRestart.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/composables/useConversations.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/composables/useMediaHandling.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/composables/useRecording.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/config.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/composables.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/loader.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/core/header.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/core/status.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/about.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/alkaid/index.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/alkaid/knowledge-base.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/alkaid/memory.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/auth.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/chart.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/config-metadata.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/config.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/console.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/conversation.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/dashboard.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/knowledge-base/detail.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/knowledge-base/document.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/knowledge-base/index.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/migration.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/persona.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/platform.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/session-management.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/settings.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/messages/errors.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/messages/success.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/messages/validation.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/core/header.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/core/status.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/about.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/alkaid/index.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/alkaid/knowledge-base.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/alkaid/memory.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/auth.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/chart.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/config.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/console.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/conversation.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/dashboard.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/detail.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/document.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/index.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/migration.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/persona.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/platform.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/session-management.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/settings.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/messages/errors.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/messages/success.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/messages/validation.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/tools/index.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/types.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/i18n/validator.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/layouts/blank/BlankLayout.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/layouts/full/vertical-sidebar/NavItem.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/main.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/plugins/confirmPlugin.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/plugins/vuetify.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/router/AuthRoutes.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/router/ChatBoxRoutes.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/scss/_override.scss +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/scss/_variables.scss +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/scss/components/_VButtons.scss +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/scss/components/_VCard.scss +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/scss/components/_VField.scss +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/scss/components/_VNavigationDrawer.scss +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/scss/components/_VScrollbar.scss +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/scss/components/_VShadow.scss +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/scss/components/_VTabs.scss +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/scss/layout/_sidebar.scss +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/scss/style.scss +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/stores/auth.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/stores/common.js +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/stores/toast.js +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/theme/DarkTheme.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/theme/LightTheme.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/types/themeTypes/ThemeType.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/types/vue3-print-nb.d.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/types/vue_tabler_icon.d.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/utils/toast.js +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/AlkaidPage.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/ChatBoxPage.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/ChatPage.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/ConfigPage.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/ConsolePage.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/PersonaPage.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/PlatformPage.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/SessionManagementPage.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/Settings.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/alkaid/KnowledgeBase.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/alkaid/Other.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/authentication/auth/LoginPage.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/authentication/authForms/AuthLogin.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/DefaultDashboard.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/components/MemoryUsage.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/components/MessageStat.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/components/OnlinePlatform.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/components/OnlineTime.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/components/PlatformStat.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/components/RunningTime.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/components/TotalMessage.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/DocumentDetail.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/KBDetail.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/KBList.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/components/DocumentsTab.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/components/RetrievalTab.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/components/SettingsTab.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/components/TavilyKeyDialog.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/index.vue +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/tsconfig.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/tsconfig.vite-config.json +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/dashboard/vite.config.ts +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/k8s/astrbot/00-namespace.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/k8s/astrbot/01-pvc.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/k8s/astrbot/02-deployment.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/k8s/astrbot/03-service-nodeport.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/k8s/astrbot/04-service-loadbalancer.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/k8s/astrbot_with_napcat/00-namespace.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/k8s/astrbot_with_napcat/01-pvc.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/k8s/astrbot_with_napcat/02-deployment.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/k8s/astrbot_with_napcat/03-service-nodeport.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/k8s/astrbot_with_napcat/04-service-loadbalancer.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/main.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/astrbot/long_term_memory.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/astrbot/main.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/astrbot/metadata.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/commands/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/commands/alter_cmd.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/commands/conversation.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/commands/llm.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/commands/persona.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/commands/plugin.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/commands/provider.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/commands/setunset.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/commands/sid.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/commands/t2i.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/commands/tool.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/commands/tts.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/commands/utils/rst_scene.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/builtin_commands/metadata.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/python_interpreter/metadata.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/python_interpreter/requirements.txt +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/python_interpreter/shared/api.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/reminder/metadata.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/session_controller/main.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/session_controller/metadata.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/web_searcher/engines/__init__.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/web_searcher/engines/bing.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/web_searcher/engines/sogo.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/packages/web_searcher/metadata.yaml +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/samples/stt_health_check.wav +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/tests/test_kb_import.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/tests/test_main.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/tests/test_plugin_manager.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/tests/test_security_fixes.py +0 -0
- {astrbot-4.9.2 → astrbot-4.10.0}/typings/faiss/__init__.pyi +0 -0
|
@@ -33,6 +33,20 @@
|
|
|
33
33
|
- 请使用英文描述您的 PR。
|
|
34
34
|
- 标题请使用 `fix: `, `feat: `, `docs: `, `style: `, `refactor: `, `test: `, `chore: ` 等语义化前缀,并简要描述更改内容。如:`fix: correct login page typo`。
|
|
35
35
|
|
|
36
|
+
#### 代码规范
|
|
37
|
+
|
|
38
|
+
##### Core
|
|
39
|
+
|
|
40
|
+
我们使用 Ruff 作为代码格式化和静态分析工具。在提交代码之前,请运行以下命令以确保代码符合规范:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
ruff format .
|
|
44
|
+
ruff check .
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
如果您使用 VSCode,可以安装 `Ruff` 插件。
|
|
48
|
+
|
|
49
|
+
|
|
36
50
|
## Contributing Guide
|
|
37
51
|
|
|
38
52
|
First off, thanks for taking the time to contribute! ❤️
|
|
@@ -62,4 +76,15 @@ We use the `fix/` prefix for bug fixes and the `feat/` prefix for new features.
|
|
|
62
76
|
|
|
63
77
|
#### PR Description
|
|
64
78
|
- Please use English to describe your PR.
|
|
65
|
-
- Use semantic prefixes like `fix: `, `feat: `, `docs: `, `style: `, `refactor: `, `test: `, `chore: ` in the title, followed by a brief description of the changes, e.g., `fix: correct login page typo`.
|
|
79
|
+
- Use semantic prefixes like `fix: `, `feat: `, `docs: `, `style: `, `refactor: `, `test: `, `chore: ` in the title, followed by a brief description of the changes, e.g., `fix: correct login page typo`.
|
|
80
|
+
|
|
81
|
+
#### Code Style
|
|
82
|
+
|
|
83
|
+
##### Core
|
|
84
|
+
|
|
85
|
+
We use Ruff as our code formatter and static analysis tool. Before submitting your code, please run the following commands to ensure your code adheres to the style guidelines:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
ruff format .
|
|
89
|
+
ruff check .
|
|
90
|
+
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: AstrBot
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.10.0
|
|
4
4
|
Summary: Easy-to-use multi-platform LLM chatbot and development framework
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Keywords: Astrbot,Astrbot Module,Astrbot Plugin
|
|
@@ -26,7 +26,7 @@ Requires-Dist: dingtalk-stream>=0.22.1
|
|
|
26
26
|
Requires-Dist: docstring-parser>=0.16
|
|
27
27
|
Requires-Dist: faiss-cpu==1.10.0
|
|
28
28
|
Requires-Dist: filelock>=3.18.0
|
|
29
|
-
Requires-Dist: google-genai
|
|
29
|
+
Requires-Dist: google-genai>=1.56.0
|
|
30
30
|
Requires-Dist: jieba>=0.42.1
|
|
31
31
|
Requires-Dist: lark-oapi>=1.4.15
|
|
32
32
|
Requires-Dist: lxml-html-clean>=0.4.2
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "4.10.0"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
from typing import Any, ClassVar, Literal, cast
|
|
5
5
|
|
|
6
|
-
from pydantic import BaseModel, GetCoreSchemaHandler, model_validator
|
|
6
|
+
from pydantic import BaseModel, GetCoreSchemaHandler, model_serializer, model_validator
|
|
7
7
|
from pydantic_core import core_schema
|
|
8
8
|
|
|
9
9
|
|
|
@@ -122,10 +122,12 @@ class ToolCall(BaseModel):
|
|
|
122
122
|
extra_content: dict[str, Any] | None = None
|
|
123
123
|
"""Extra metadata for the tool call."""
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
@model_serializer(mode="wrap")
|
|
126
|
+
def serialize(self, handler):
|
|
127
|
+
data = handler(self)
|
|
126
128
|
if self.extra_content is None:
|
|
127
|
-
|
|
128
|
-
return
|
|
129
|
+
data.pop("extra_content", None)
|
|
130
|
+
return data
|
|
129
131
|
|
|
130
132
|
|
|
131
133
|
class ToolCallPart(BaseModel):
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import typing as T
|
|
2
|
+
from dataclasses import dataclass, field
|
|
3
|
+
|
|
4
|
+
from astrbot.core.message.message_event_result import MessageChain
|
|
5
|
+
from astrbot.core.provider.entities import TokenUsage
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AgentResponseData(T.TypedDict):
|
|
9
|
+
chain: MessageChain
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@dataclass
|
|
13
|
+
class AgentResponse:
|
|
14
|
+
type: str
|
|
15
|
+
data: AgentResponseData
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@dataclass
|
|
19
|
+
class AgentStats:
|
|
20
|
+
token_usage: TokenUsage = field(default_factory=TokenUsage)
|
|
21
|
+
start_time: float = 0.0
|
|
22
|
+
end_time: float = 0.0
|
|
23
|
+
time_to_first_token: float = 0.0
|
|
24
|
+
|
|
25
|
+
@property
|
|
26
|
+
def duration(self) -> float:
|
|
27
|
+
return self.end_time - self.start_time
|
|
28
|
+
|
|
29
|
+
def to_dict(self) -> dict:
|
|
30
|
+
return {
|
|
31
|
+
"token_usage": self.token_usage.__dict__,
|
|
32
|
+
"start_time": self.start_time,
|
|
33
|
+
"end_time": self.end_time,
|
|
34
|
+
"time_to_first_token": self.time_to_first_token,
|
|
35
|
+
}
|
|
@@ -9,7 +9,7 @@ from .message import Message
|
|
|
9
9
|
TContext = TypeVar("TContext", default=Any)
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
@dataclass
|
|
12
|
+
@dataclass
|
|
13
13
|
class ContextWrapper(Generic[TContext]):
|
|
14
14
|
"""A context for running an agent, which can be used to pass additional data or state."""
|
|
15
15
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import sys
|
|
2
|
+
import time
|
|
2
3
|
import traceback
|
|
3
4
|
import typing as T
|
|
4
5
|
|
|
@@ -12,6 +13,7 @@ from mcp.types import (
|
|
|
12
13
|
)
|
|
13
14
|
|
|
14
15
|
from astrbot import logger
|
|
16
|
+
from astrbot.core.message.components import Json
|
|
15
17
|
from astrbot.core.message.message_event_result import (
|
|
16
18
|
MessageChain,
|
|
17
19
|
)
|
|
@@ -24,7 +26,7 @@ from astrbot.core.provider.provider import Provider
|
|
|
24
26
|
|
|
25
27
|
from ..hooks import BaseAgentRunHooks
|
|
26
28
|
from ..message import AssistantMessageSegment, Message, ToolCallMessageSegment
|
|
27
|
-
from ..response import AgentResponseData
|
|
29
|
+
from ..response import AgentResponseData, AgentStats
|
|
28
30
|
from ..run_context import ContextWrapper, TContext
|
|
29
31
|
from ..tool_executor import BaseFunctionToolExecutor
|
|
30
32
|
from .base import AgentResponse, AgentState, BaseAgentRunner
|
|
@@ -69,14 +71,24 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
69
71
|
)
|
|
70
72
|
self.run_context.messages = messages
|
|
71
73
|
|
|
74
|
+
self.stats = AgentStats()
|
|
75
|
+
self.stats.start_time = time.time()
|
|
76
|
+
|
|
72
77
|
async def _iter_llm_responses(self) -> T.AsyncGenerator[LLMResponse, None]:
|
|
73
78
|
"""Yields chunks *and* a final LLMResponse."""
|
|
79
|
+
payload = {
|
|
80
|
+
"contexts": self.run_context.messages,
|
|
81
|
+
"func_tool": self.req.func_tool,
|
|
82
|
+
"model": self.req.model, # NOTE: in fact, this arg is None in most cases
|
|
83
|
+
"session_id": self.req.session_id,
|
|
84
|
+
}
|
|
85
|
+
|
|
74
86
|
if self.streaming:
|
|
75
|
-
stream = self.provider.text_chat_stream(**
|
|
87
|
+
stream = self.provider.text_chat_stream(**payload)
|
|
76
88
|
async for resp in stream: # type: ignore
|
|
77
89
|
yield resp
|
|
78
90
|
else:
|
|
79
|
-
yield await self.provider.text_chat(**
|
|
91
|
+
yield await self.provider.text_chat(**payload)
|
|
80
92
|
|
|
81
93
|
@override
|
|
82
94
|
async def step(self):
|
|
@@ -98,6 +110,10 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
98
110
|
|
|
99
111
|
async for llm_response in self._iter_llm_responses():
|
|
100
112
|
if llm_response.is_chunk:
|
|
113
|
+
# update ttft
|
|
114
|
+
if self.stats.time_to_first_token == 0:
|
|
115
|
+
self.stats.time_to_first_token = time.time() - self.stats.start_time
|
|
116
|
+
|
|
101
117
|
if llm_response.result_chain:
|
|
102
118
|
yield AgentResponse(
|
|
103
119
|
type="streaming_delta",
|
|
@@ -121,6 +137,10 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
121
137
|
)
|
|
122
138
|
continue
|
|
123
139
|
llm_resp_result = llm_response
|
|
140
|
+
|
|
141
|
+
if not llm_response.is_chunk and llm_response.usage:
|
|
142
|
+
# only count the token usage of the final response for computation purpose
|
|
143
|
+
self.stats.token_usage += llm_response.usage
|
|
124
144
|
break # got final response
|
|
125
145
|
|
|
126
146
|
if not llm_resp_result:
|
|
@@ -132,6 +152,7 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
132
152
|
if llm_resp.role == "err":
|
|
133
153
|
# 如果 LLM 响应错误,转换到错误状态
|
|
134
154
|
self.final_llm_resp = llm_resp
|
|
155
|
+
self.stats.end_time = time.time()
|
|
135
156
|
self._transition_state(AgentState.ERROR)
|
|
136
157
|
yield AgentResponse(
|
|
137
158
|
type="err",
|
|
@@ -146,11 +167,12 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
146
167
|
# 如果没有工具调用,转换到完成状态
|
|
147
168
|
self.final_llm_resp = llm_resp
|
|
148
169
|
self._transition_state(AgentState.DONE)
|
|
170
|
+
self.stats.end_time = time.time()
|
|
149
171
|
# record the final assistant message
|
|
150
172
|
self.run_context.messages.append(
|
|
151
173
|
Message(
|
|
152
174
|
role="assistant",
|
|
153
|
-
content=llm_resp.completion_text or "",
|
|
175
|
+
content=llm_resp.completion_text or "*No response*",
|
|
154
176
|
),
|
|
155
177
|
)
|
|
156
178
|
try:
|
|
@@ -175,22 +197,19 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
175
197
|
# 如果有工具调用,还需处理工具调用
|
|
176
198
|
if llm_resp.tools_call_name:
|
|
177
199
|
tool_call_result_blocks = []
|
|
178
|
-
for tool_call_name in llm_resp.tools_call_name:
|
|
179
|
-
yield AgentResponse(
|
|
180
|
-
type="tool_call",
|
|
181
|
-
data=AgentResponseData(
|
|
182
|
-
chain=MessageChain(type="tool_call").message(
|
|
183
|
-
f"🔨 调用工具: {tool_call_name}"
|
|
184
|
-
),
|
|
185
|
-
),
|
|
186
|
-
)
|
|
187
200
|
async for result in self._handle_function_tools(self.req, llm_resp):
|
|
188
201
|
if isinstance(result, list):
|
|
189
202
|
tool_call_result_blocks = result
|
|
190
203
|
elif isinstance(result, MessageChain):
|
|
191
|
-
result.type
|
|
204
|
+
if result.type is None:
|
|
205
|
+
# should not happen
|
|
206
|
+
continue
|
|
207
|
+
if result.type == "tool_direct_result":
|
|
208
|
+
ar_type = "tool_call_result"
|
|
209
|
+
else:
|
|
210
|
+
ar_type = result.type
|
|
192
211
|
yield AgentResponse(
|
|
193
|
-
type=
|
|
212
|
+
type=ar_type,
|
|
194
213
|
data=AgentResponseData(chain=result),
|
|
195
214
|
)
|
|
196
215
|
# 将结果添加到上下文中
|
|
@@ -218,6 +237,25 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
218
237
|
async for resp in self.step():
|
|
219
238
|
yield resp
|
|
220
239
|
|
|
240
|
+
# 如果循环结束了但是 agent 还没有完成,说明是达到了 max_step
|
|
241
|
+
if not self.done():
|
|
242
|
+
logger.warning(
|
|
243
|
+
f"Agent reached max steps ({max_step}), forcing a final response."
|
|
244
|
+
)
|
|
245
|
+
# 拔掉所有工具
|
|
246
|
+
if self.req:
|
|
247
|
+
self.req.func_tool = None
|
|
248
|
+
# 注入提示词
|
|
249
|
+
self.run_context.messages.append(
|
|
250
|
+
Message(
|
|
251
|
+
role="user",
|
|
252
|
+
content="工具调用次数已达到上限,请停止使用工具,并根据已经收集到的信息,对你的任务和发现进行总结,然后直接回复用户。",
|
|
253
|
+
)
|
|
254
|
+
)
|
|
255
|
+
# 再执行最后一步
|
|
256
|
+
async for resp in self.step():
|
|
257
|
+
yield resp
|
|
258
|
+
|
|
221
259
|
async def _handle_function_tools(
|
|
222
260
|
self,
|
|
223
261
|
req: ProviderRequest,
|
|
@@ -233,6 +271,19 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
233
271
|
llm_response.tools_call_args,
|
|
234
272
|
llm_response.tools_call_ids,
|
|
235
273
|
):
|
|
274
|
+
yield MessageChain(
|
|
275
|
+
type="tool_call",
|
|
276
|
+
chain=[
|
|
277
|
+
Json(
|
|
278
|
+
data={
|
|
279
|
+
"id": func_tool_id,
|
|
280
|
+
"name": func_tool_name,
|
|
281
|
+
"args": func_tool_args,
|
|
282
|
+
"ts": time.time(),
|
|
283
|
+
}
|
|
284
|
+
)
|
|
285
|
+
],
|
|
286
|
+
)
|
|
236
287
|
try:
|
|
237
288
|
if not req.func_tool:
|
|
238
289
|
return
|
|
@@ -306,7 +357,6 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
306
357
|
content=res.content[0].text,
|
|
307
358
|
),
|
|
308
359
|
)
|
|
309
|
-
yield MessageChain().message(res.content[0].text)
|
|
310
360
|
elif isinstance(res.content[0], ImageContent):
|
|
311
361
|
tool_call_result_blocks.append(
|
|
312
362
|
ToolCallMessageSegment(
|
|
@@ -328,7 +378,6 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
328
378
|
content=resource.text,
|
|
329
379
|
),
|
|
330
380
|
)
|
|
331
|
-
yield MessageChain().message(resource.text)
|
|
332
381
|
elif (
|
|
333
382
|
isinstance(resource, BlobResourceContents)
|
|
334
383
|
and resource.mimeType
|
|
@@ -352,20 +401,34 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
352
401
|
content="返回的数据类型不受支持",
|
|
353
402
|
),
|
|
354
403
|
)
|
|
355
|
-
yield MessageChain().message("返回的数据类型不受支持。")
|
|
356
404
|
|
|
357
405
|
elif resp is None:
|
|
358
406
|
# Tool 直接请求发送消息给用户
|
|
359
407
|
# 这里我们将直接结束 Agent Loop。
|
|
360
408
|
# 发送消息逻辑在 ToolExecutor 中处理了。
|
|
361
409
|
logger.warning(
|
|
362
|
-
f"{func_tool_name}
|
|
410
|
+
f"{func_tool_name} 没有没有返回值或者将结果直接发送给用户。"
|
|
363
411
|
)
|
|
364
412
|
self._transition_state(AgentState.DONE)
|
|
413
|
+
self.stats.end_time = time.time()
|
|
414
|
+
tool_call_result_blocks.append(
|
|
415
|
+
ToolCallMessageSegment(
|
|
416
|
+
role="tool",
|
|
417
|
+
tool_call_id=func_tool_id,
|
|
418
|
+
content="*工具没有返回值或者将结果直接发送给了用户*",
|
|
419
|
+
),
|
|
420
|
+
)
|
|
365
421
|
else:
|
|
366
422
|
# 不应该出现其他类型
|
|
367
423
|
logger.warning(
|
|
368
|
-
f"Tool 返回了不支持的类型: {type(resp)}
|
|
424
|
+
f"Tool 返回了不支持的类型: {type(resp)}。",
|
|
425
|
+
)
|
|
426
|
+
tool_call_result_blocks.append(
|
|
427
|
+
ToolCallMessageSegment(
|
|
428
|
+
role="tool",
|
|
429
|
+
tool_call_id=func_tool_id,
|
|
430
|
+
content="*工具返回了不支持的类型,请告诉用户检查这个工具的定义和实现。*",
|
|
431
|
+
),
|
|
369
432
|
)
|
|
370
433
|
|
|
371
434
|
try:
|
|
@@ -387,6 +450,22 @@ class ToolLoopAgentRunner(BaseAgentRunner[TContext]):
|
|
|
387
450
|
),
|
|
388
451
|
)
|
|
389
452
|
|
|
453
|
+
# yield the last tool call result
|
|
454
|
+
if tool_call_result_blocks:
|
|
455
|
+
last_tcr_content = str(tool_call_result_blocks[-1].content)
|
|
456
|
+
yield MessageChain(
|
|
457
|
+
type="tool_call_result",
|
|
458
|
+
chain=[
|
|
459
|
+
Json(
|
|
460
|
+
data={
|
|
461
|
+
"id": func_tool_id,
|
|
462
|
+
"ts": time.time(),
|
|
463
|
+
"result": last_tcr_content,
|
|
464
|
+
}
|
|
465
|
+
)
|
|
466
|
+
],
|
|
467
|
+
)
|
|
468
|
+
|
|
390
469
|
# 处理函数调用响应
|
|
391
470
|
if tool_call_result_blocks:
|
|
392
471
|
yield tool_call_result_blocks
|
|
@@ -6,8 +6,10 @@ from astrbot.core.platform.astr_message_event import AstrMessageEvent
|
|
|
6
6
|
from astrbot.core.star.context import Context
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
@dataclass
|
|
9
|
+
@dataclass
|
|
10
10
|
class AstrAgentContext:
|
|
11
|
+
__pydantic_config__ = {"arbitrary_types_allowed": True}
|
|
12
|
+
|
|
11
13
|
context: Context
|
|
12
14
|
"""The star context instance"""
|
|
13
15
|
event: AstrMessageEvent
|
|
@@ -2,8 +2,10 @@ import traceback
|
|
|
2
2
|
from collections.abc import AsyncGenerator
|
|
3
3
|
|
|
4
4
|
from astrbot.core import logger
|
|
5
|
+
from astrbot.core.agent.message import Message
|
|
5
6
|
from astrbot.core.agent.runners.tool_loop_agent_runner import ToolLoopAgentRunner
|
|
6
7
|
from astrbot.core.astr_agent_context import AstrAgentContext
|
|
8
|
+
from astrbot.core.message.components import Json
|
|
7
9
|
from astrbot.core.message.message_event_result import (
|
|
8
10
|
MessageChain,
|
|
9
11
|
MessageEventResult,
|
|
@@ -23,8 +25,25 @@ async def run_agent(
|
|
|
23
25
|
) -> AsyncGenerator[MessageChain | None, None]:
|
|
24
26
|
step_idx = 0
|
|
25
27
|
astr_event = agent_runner.run_context.context.event
|
|
26
|
-
while step_idx < max_step:
|
|
28
|
+
while step_idx < max_step + 1:
|
|
27
29
|
step_idx += 1
|
|
30
|
+
|
|
31
|
+
if step_idx == max_step + 1:
|
|
32
|
+
logger.warning(
|
|
33
|
+
f"Agent reached max steps ({max_step}), forcing a final response."
|
|
34
|
+
)
|
|
35
|
+
if not agent_runner.done():
|
|
36
|
+
# 拔掉所有工具
|
|
37
|
+
if agent_runner.req:
|
|
38
|
+
agent_runner.req.func_tool = None
|
|
39
|
+
# 注入提示词
|
|
40
|
+
agent_runner.run_context.messages.append(
|
|
41
|
+
Message(
|
|
42
|
+
role="user",
|
|
43
|
+
content="工具调用次数已达到上限,请停止使用工具,并根据已经收集到的信息,对你的任务和发现进行总结,然后直接回复用户。",
|
|
44
|
+
)
|
|
45
|
+
)
|
|
46
|
+
|
|
28
47
|
try:
|
|
29
48
|
async for resp in agent_runner.step():
|
|
30
49
|
if astr_event.is_stopped():
|
|
@@ -33,16 +52,27 @@ async def run_agent(
|
|
|
33
52
|
msg_chain = resp.data["chain"]
|
|
34
53
|
if msg_chain.type == "tool_direct_result":
|
|
35
54
|
# tool_direct_result 用于标记 llm tool 需要直接发送给用户的内容
|
|
36
|
-
await astr_event.send(
|
|
55
|
+
await astr_event.send(msg_chain)
|
|
37
56
|
continue
|
|
57
|
+
if astr_event.get_platform_id() == "webchat":
|
|
58
|
+
await astr_event.send(msg_chain)
|
|
38
59
|
# 对于其他情况,暂时先不处理
|
|
39
60
|
continue
|
|
40
61
|
elif resp.type == "tool_call":
|
|
41
62
|
if agent_runner.streaming:
|
|
42
63
|
# 用来标记流式响应需要分节
|
|
43
64
|
yield MessageChain(chain=[], type="break")
|
|
44
|
-
|
|
65
|
+
|
|
66
|
+
if astr_event.get_platform_name() == "webchat":
|
|
45
67
|
await astr_event.send(resp.data["chain"])
|
|
68
|
+
elif show_tool_use:
|
|
69
|
+
json_comp = resp.data["chain"].chain[0]
|
|
70
|
+
if isinstance(json_comp, Json):
|
|
71
|
+
m = f"🔨 调用工具: {json_comp.data.get('name')}"
|
|
72
|
+
else:
|
|
73
|
+
m = "🔨 调用工具..."
|
|
74
|
+
chain = MessageChain(type="tool_call").message(m)
|
|
75
|
+
await astr_event.send(chain)
|
|
46
76
|
continue
|
|
47
77
|
|
|
48
78
|
if stream_to_general and resp.type == "streaming_delta":
|
|
@@ -69,6 +99,15 @@ async def run_agent(
|
|
|
69
99
|
continue
|
|
70
100
|
yield resp.data["chain"] # MessageChain
|
|
71
101
|
if agent_runner.done():
|
|
102
|
+
# send agent stats to webchat
|
|
103
|
+
if astr_event.get_platform_name() == "webchat":
|
|
104
|
+
await astr_event.send(
|
|
105
|
+
MessageChain(
|
|
106
|
+
type="agent_stats",
|
|
107
|
+
chain=[Json(data=agent_runner.stats.to_dict())],
|
|
108
|
+
)
|
|
109
|
+
)
|
|
110
|
+
|
|
72
111
|
break
|
|
73
112
|
|
|
74
113
|
except Exception as e:
|
|
@@ -209,12 +209,42 @@ async def call_local_llm_tool(
|
|
|
209
209
|
else:
|
|
210
210
|
raise ValueError(f"未知的方法名: {method_name}")
|
|
211
211
|
except ValueError as e:
|
|
212
|
-
|
|
213
|
-
except TypeError:
|
|
214
|
-
|
|
212
|
+
raise Exception(f"Tool execution ValueError: {e}") from e
|
|
213
|
+
except TypeError as e:
|
|
214
|
+
# 获取函数的签名(包括类型),除了第一个 event/context 参数。
|
|
215
|
+
try:
|
|
216
|
+
sig = inspect.signature(handler)
|
|
217
|
+
params = list(sig.parameters.values())
|
|
218
|
+
# 跳过第一个参数(event 或 context)
|
|
219
|
+
if params:
|
|
220
|
+
params = params[1:]
|
|
221
|
+
|
|
222
|
+
param_strs = []
|
|
223
|
+
for param in params:
|
|
224
|
+
param_str = param.name
|
|
225
|
+
if param.annotation != inspect.Parameter.empty:
|
|
226
|
+
# 获取类型注解的字符串表示
|
|
227
|
+
if isinstance(param.annotation, type):
|
|
228
|
+
type_str = param.annotation.__name__
|
|
229
|
+
else:
|
|
230
|
+
type_str = str(param.annotation)
|
|
231
|
+
param_str += f": {type_str}"
|
|
232
|
+
if param.default != inspect.Parameter.empty:
|
|
233
|
+
param_str += f" = {param.default!r}"
|
|
234
|
+
param_strs.append(param_str)
|
|
235
|
+
|
|
236
|
+
handler_param_str = (
|
|
237
|
+
", ".join(param_strs) if param_strs else "(no additional parameters)"
|
|
238
|
+
)
|
|
239
|
+
except Exception:
|
|
240
|
+
handler_param_str = "(unable to inspect signature)"
|
|
241
|
+
|
|
242
|
+
raise Exception(
|
|
243
|
+
f"Tool handler parameter mismatch, please check the handler definition. Handler parameters: {handler_param_str}"
|
|
244
|
+
) from e
|
|
215
245
|
except Exception as e:
|
|
216
246
|
trace_ = traceback.format_exc()
|
|
217
|
-
|
|
247
|
+
raise Exception(f"Tool execution error: {e}. Traceback: {trace_}") from e
|
|
218
248
|
|
|
219
249
|
if not ready_to_call:
|
|
220
250
|
return
|