AstrBot 4.9.1__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.
Files changed (719) hide show
  1. {astrbot-4.9.1 → astrbot-4.10.0}/.github/workflows/dashboard_ci.yml +1 -1
  2. {astrbot-4.9.1 → astrbot-4.10.0}/CONTRIBUTING.md +26 -1
  3. {astrbot-4.9.1 → astrbot-4.10.0}/PKG-INFO +2 -2
  4. astrbot-4.10.0/astrbot/cli/__init__.py +1 -0
  5. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/message.py +6 -4
  6. astrbot-4.10.0/astrbot/core/agent/response.py +35 -0
  7. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/run_context.py +1 -1
  8. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/runners/tool_loop_agent_runner.py +99 -20
  9. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/astr_agent_context.py +3 -1
  10. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/astr_agent_run_util.py +42 -3
  11. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/astr_agent_tool_exec.py +34 -4
  12. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/config/default.py +127 -184
  13. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/core_lifecycle.py +3 -0
  14. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/db/__init__.py +72 -0
  15. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/db/po.py +59 -0
  16. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/db/sqlite.py +240 -0
  17. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/message/components.py +4 -5
  18. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/process_stage/method/agent_sub_stages/internal.py +6 -1
  19. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/respond/stage.py +1 -1
  20. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/telegram/tg_event.py +9 -0
  21. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/webchat/webchat_event.py +22 -18
  22. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/entities.py +41 -0
  23. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/manager.py +203 -93
  24. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/anthropic_source.py +55 -11
  25. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/gemini_source.py +84 -33
  26. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/openai_source.py +21 -6
  27. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/__init__.py +5 -1
  28. astrbot-4.10.0/astrbot/core/star/command_management.py +449 -0
  29. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/context.py +4 -0
  30. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/filter/command.py +1 -0
  31. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/filter/command_group.py +1 -0
  32. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/star_handler.py +4 -0
  33. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/star_manager.py +14 -0
  34. astrbot-4.10.0/astrbot/core/utils/llm_metadata.py +63 -0
  35. astrbot-4.10.0/astrbot/core/utils/migra_helper.py +166 -0
  36. astrbot-4.10.0/astrbot/core/utils/plugin_kv_store.py +28 -0
  37. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/__init__.py +2 -0
  38. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/chat.py +56 -13
  39. astrbot-4.10.0/astrbot/dashboard/routes/command.py +82 -0
  40. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/config.py +291 -33
  41. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/stat.py +96 -0
  42. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/tools.py +20 -4
  43. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/server.py +1 -0
  44. astrbot-4.10.0/changelogs/v4.10.0-alpha.1.md +34 -0
  45. astrbot-4.10.0/changelogs/v4.10.0-alpha.2.md +44 -0
  46. astrbot-4.10.0/changelogs/v4.10.0.md +40 -0
  47. astrbot-4.10.0/changelogs/v4.9.1.md +3 -0
  48. astrbot-4.9.1/changelogs/v4.9.1.md → astrbot-4.10.0/changelogs/v4.9.2.md +3 -2
  49. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/index.html +1 -1
  50. astrbot-4.10.0/dashboard/src/assets/images/platform_logos/onebot.png +0 -0
  51. astrbot-4.10.0/dashboard/src/assets/images/provider_logos/modelstack.svg +1 -0
  52. astrbot-4.10.0/dashboard/src/assets/images/xmas-hat.png +0 -0
  53. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/chat/Chat.vue +77 -51
  54. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/chat/ChatInput.vue +20 -8
  55. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/chat/ConfigSelector.vue +1 -1
  56. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/chat/ConversationSidebar.vue +118 -78
  57. astrbot-4.10.0/dashboard/src/components/chat/MessageList.vue +1477 -0
  58. astrbot-4.10.0/dashboard/src/components/chat/ProviderConfigDialog.vue +375 -0
  59. astrbot-4.10.0/dashboard/src/components/chat/ProviderModelMenu.vue +217 -0
  60. astrbot-4.9.1/dashboard/src/views/ToolUsePage.vue → astrbot-4.10.0/dashboard/src/components/extension/McpServersSection.vue +38 -328
  61. astrbot-4.10.0/dashboard/src/components/extension/componentPanel/components/CommandFilters.vue +155 -0
  62. astrbot-4.10.0/dashboard/src/components/extension/componentPanel/components/CommandTable.vue +257 -0
  63. astrbot-4.10.0/dashboard/src/components/extension/componentPanel/components/DetailsDialog.vue +143 -0
  64. astrbot-4.10.0/dashboard/src/components/extension/componentPanel/components/RenameDialog.vue +53 -0
  65. astrbot-4.10.0/dashboard/src/components/extension/componentPanel/components/ToolTable.vue +144 -0
  66. astrbot-4.10.0/dashboard/src/components/extension/componentPanel/composables/useCommandActions.ts +177 -0
  67. astrbot-4.10.0/dashboard/src/components/extension/componentPanel/composables/useCommandFilters.ts +187 -0
  68. astrbot-4.10.0/dashboard/src/components/extension/componentPanel/composables/useComponentData.ts +83 -0
  69. astrbot-4.10.0/dashboard/src/components/extension/componentPanel/index.vue +307 -0
  70. astrbot-4.10.0/dashboard/src/components/extension/componentPanel/types.ts +102 -0
  71. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/platform/AddNewPlatform.vue +23 -7
  72. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/provider/AddNewProvider.vue +1 -5
  73. astrbot-4.10.0/dashboard/src/components/provider/ProviderModelsPanel.vue +211 -0
  74. astrbot-4.10.0/dashboard/src/components/provider/ProviderSourcesPanel.vue +157 -0
  75. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/AstrBotConfig.vue +3 -3
  76. astrbot-4.10.0/dashboard/src/components/shared/ChangelogDialog.vue +209 -0
  77. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/LanguageSwitcher.vue +17 -65
  78. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/ListConfigItem.vue +31 -3
  79. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/ProviderSelector.vue +90 -4
  80. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/ReadmeDialog.vue +12 -26
  81. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/SidebarCustomizer.vue +8 -30
  82. astrbot-4.10.0/dashboard/src/components/shared/StyledMenu.vue +79 -0
  83. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/composables/useMessages.ts +260 -158
  84. astrbot-4.10.0/dashboard/src/composables/useProviderSources.ts +659 -0
  85. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/composables/useSessions.ts +11 -1
  86. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/core/actions.json +2 -1
  87. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/core/common.json +1 -0
  88. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/core/navigation.json +10 -0
  89. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/core/shared.json +3 -1
  90. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/chat.json +10 -1
  91. astrbot-4.10.0/dashboard/src/i18n/locales/en-US/features/command.json +91 -0
  92. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/extension.json +10 -1
  93. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/provider.json +47 -2
  94. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/tool-use.json +4 -1
  95. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/core/actions.json +2 -1
  96. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/core/common.json +1 -0
  97. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/core/navigation.json +10 -0
  98. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/core/shared.json +3 -1
  99. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/chat.json +10 -1
  100. astrbot-4.10.0/dashboard/src/i18n/locales/zh-CN/features/command.json +91 -0
  101. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/extension.json +10 -1
  102. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/provider.json +46 -1
  103. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/tool-use.json +4 -1
  104. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/translations.ts +6 -2
  105. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/layouts/full/FullLayout.vue +51 -8
  106. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue +231 -52
  107. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue +16 -1
  108. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts +0 -10
  109. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/router/MainRoutes.ts +0 -5
  110. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/router/index.ts +11 -0
  111. astrbot-4.10.0/dashboard/src/scss/components/_VInput.scss +7 -0
  112. astrbot-4.10.0/dashboard/src/scss/components/_VTextField.scss +3 -0
  113. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/scss/layout/_container.scss +5 -1
  114. astrbot-4.10.0/dashboard/src/scss/pages/_dashboards.scss +53 -0
  115. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/stores/customizer.ts +6 -1
  116. astrbot-4.10.0/dashboard/src/stores/routerLoading.ts +60 -0
  117. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/utils/platformUtils.js +3 -1
  118. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/utils/providerUtils.js +3 -0
  119. astrbot-4.10.0/dashboard/src/utils/sidebarCustomization.js +137 -0
  120. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/AboutPage.vue +2 -2
  121. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/ConversationPage.vue +63 -16
  122. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/ExtensionPage.vue +93 -6
  123. astrbot-4.10.0/dashboard/src/views/ProviderPage.vue +678 -0
  124. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/alkaid/LongTermMemory.vue +1 -1
  125. {astrbot-4.9.1 → astrbot-4.10.0}/packages/astrbot/process_llm_request.py +27 -10
  126. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/commands/admin.py +1 -0
  127. astrbot-4.10.0/packages/builtin_commands/commands/help.py +88 -0
  128. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/main.py +3 -2
  129. {astrbot-4.9.1 → astrbot-4.10.0}/packages/python_interpreter/main.py +1 -1
  130. {astrbot-4.9.1 → astrbot-4.10.0}/packages/reminder/main.py +1 -1
  131. {astrbot-4.9.1 → astrbot-4.10.0}/packages/web_searcher/main.py +1 -0
  132. {astrbot-4.9.1 → astrbot-4.10.0}/pyproject.toml +2 -2
  133. {astrbot-4.9.1 → astrbot-4.10.0}/requirements.txt +1 -1
  134. {astrbot-4.9.1 → astrbot-4.10.0}/tests/test_dashboard.py +28 -0
  135. astrbot-4.10.0/tests/test_tool_loop_agent_runner.py +326 -0
  136. astrbot-4.9.1/astrbot/cli/__init__.py +0 -1
  137. astrbot-4.9.1/astrbot/core/agent/response.py +0 -14
  138. astrbot-4.9.1/astrbot/core/utils/migra_helper.py +0 -73
  139. astrbot-4.9.1/dashboard/src/components/chat/MessageList.vue +0 -1169
  140. astrbot-4.9.1/dashboard/src/components/chat/ProviderModelSelector.vue +0 -359
  141. astrbot-4.9.1/dashboard/src/scss/components/_VInput.scss +0 -17
  142. astrbot-4.9.1/dashboard/src/scss/components/_VTextField.scss +0 -70
  143. astrbot-4.9.1/dashboard/src/scss/pages/_dashboards.scss +0 -93
  144. astrbot-4.9.1/dashboard/src/utils/sidebarCustomization.js +0 -99
  145. astrbot-4.9.1/dashboard/src/views/ProviderPage.vue +0 -892
  146. astrbot-4.9.1/packages/builtin_commands/commands/help.py +0 -63
  147. {astrbot-4.9.1 → astrbot-4.10.0}/.dockerignore +0 -0
  148. {astrbot-4.9.1 → astrbot-4.10.0}/.github/FUNDING.yml +0 -0
  149. {astrbot-4.9.1 → astrbot-4.10.0}/.github/ISSUE_TEMPLATE/PLUGIN_PUBLISH.yml +0 -0
  150. {astrbot-4.9.1 → astrbot-4.10.0}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
  151. {astrbot-4.9.1 → astrbot-4.10.0}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
  152. {astrbot-4.9.1 → astrbot-4.10.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  153. {astrbot-4.9.1 → astrbot-4.10.0}/.github/auto_assign.yml +0 -0
  154. {astrbot-4.9.1 → astrbot-4.10.0}/.github/copilot-instructions.md +0 -0
  155. {astrbot-4.9.1 → astrbot-4.10.0}/.github/dependabot.yml +0 -0
  156. {astrbot-4.9.1 → astrbot-4.10.0}/.github/workflows/auto_release.yml +0 -0
  157. {astrbot-4.9.1 → astrbot-4.10.0}/.github/workflows/code-format.yml +0 -0
  158. {astrbot-4.9.1 → astrbot-4.10.0}/.github/workflows/codeql.yml +0 -0
  159. {astrbot-4.9.1 → astrbot-4.10.0}/.github/workflows/coverage_test.yml +0 -0
  160. {astrbot-4.9.1 → astrbot-4.10.0}/.github/workflows/docker-image.yml +0 -0
  161. {astrbot-4.9.1 → astrbot-4.10.0}/.github/workflows/smoke_test.yml +0 -0
  162. {astrbot-4.9.1 → astrbot-4.10.0}/.github/workflows/stale.yml +0 -0
  163. {astrbot-4.9.1 → astrbot-4.10.0}/.gitignore +0 -0
  164. {astrbot-4.9.1 → astrbot-4.10.0}/.pre-commit-config.yaml +0 -0
  165. {astrbot-4.9.1 → astrbot-4.10.0}/.python-version +0 -0
  166. {astrbot-4.9.1 → astrbot-4.10.0}/CODE_OF_CONDUCT.md +0 -0
  167. {astrbot-4.9.1 → astrbot-4.10.0}/Dockerfile +0 -0
  168. {astrbot-4.9.1 → astrbot-4.10.0}/LICENSE +0 -0
  169. {astrbot-4.9.1 → astrbot-4.10.0}/README.md +0 -0
  170. {astrbot-4.9.1 → astrbot-4.10.0}/README_en.md +0 -0
  171. {astrbot-4.9.1 → astrbot-4.10.0}/README_fr.md +0 -0
  172. {astrbot-4.9.1 → astrbot-4.10.0}/README_ja.md +0 -0
  173. {astrbot-4.9.1 → astrbot-4.10.0}/README_ru.md +0 -0
  174. {astrbot-4.9.1 → astrbot-4.10.0}/README_zh-TW.md +0 -0
  175. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/__init__.py +0 -0
  176. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/api/__init__.py +0 -0
  177. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/api/all.py +0 -0
  178. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/api/event/__init__.py +0 -0
  179. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/api/event/filter/__init__.py +0 -0
  180. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/api/message_components.py +0 -0
  181. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/api/platform/__init__.py +0 -0
  182. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/api/provider/__init__.py +0 -0
  183. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/api/star/__init__.py +0 -0
  184. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/api/util/__init__.py +0 -0
  185. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/cli/__main__.py +0 -0
  186. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/cli/commands/__init__.py +0 -0
  187. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/cli/commands/cmd_conf.py +0 -0
  188. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/cli/commands/cmd_init.py +0 -0
  189. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/cli/commands/cmd_plug.py +0 -0
  190. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/cli/commands/cmd_run.py +0 -0
  191. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/cli/utils/__init__.py +0 -0
  192. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/cli/utils/basic.py +0 -0
  193. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/cli/utils/plugin.py +0 -0
  194. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/cli/utils/version_comparator.py +0 -0
  195. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/__init__.py +0 -0
  196. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/agent.py +0 -0
  197. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/handoff.py +0 -0
  198. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/hooks.py +0 -0
  199. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/mcp_client.py +0 -0
  200. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/runners/__init__.py +0 -0
  201. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/runners/base.py +0 -0
  202. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/runners/coze/coze_agent_runner.py +0 -0
  203. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/runners/coze/coze_api_client.py +0 -0
  204. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/runners/dashscope/dashscope_agent_runner.py +0 -0
  205. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/runners/dify/dify_agent_runner.py +0 -0
  206. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/runners/dify/dify_api_client.py +0 -0
  207. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/tool.py +0 -0
  208. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/agent/tool_executor.py +0 -0
  209. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/astr_agent_hooks.py +0 -0
  210. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/astrbot_config_mgr.py +0 -0
  211. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/config/__init__.py +0 -0
  212. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/config/astrbot_config.py +0 -0
  213. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/config/i18n_utils.py +0 -0
  214. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/conversation_mgr.py +0 -0
  215. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/db/migration/helper.py +0 -0
  216. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/db/migration/migra_3_to_4.py +0 -0
  217. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/db/migration/migra_45_to_46.py +0 -0
  218. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/db/migration/migra_webchat_session.py +0 -0
  219. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/db/migration/shared_preferences_v3.py +0 -0
  220. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/db/migration/sqlite_v3.py +0 -0
  221. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/db/vec_db/base.py +0 -0
  222. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/db/vec_db/faiss_impl/__init__.py +0 -0
  223. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/db/vec_db/faiss_impl/document_storage.py +0 -0
  224. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/db/vec_db/faiss_impl/embedding_storage.py +0 -0
  225. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/db/vec_db/faiss_impl/sqlite_init.sql +0 -0
  226. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/db/vec_db/faiss_impl/vec_db.py +0 -0
  227. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/event_bus.py +0 -0
  228. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/exceptions.py +0 -0
  229. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/file_token_service.py +0 -0
  230. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/initial_loader.py +0 -0
  231. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/chunking/__init__.py +0 -0
  232. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/chunking/base.py +0 -0
  233. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/chunking/fixed_size.py +0 -0
  234. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/chunking/recursive.py +0 -0
  235. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/kb_db_sqlite.py +0 -0
  236. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/kb_helper.py +0 -0
  237. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/kb_mgr.py +0 -0
  238. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/models.py +0 -0
  239. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/parsers/__init__.py +0 -0
  240. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/parsers/base.py +0 -0
  241. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/parsers/markitdown_parser.py +0 -0
  242. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/parsers/pdf_parser.py +0 -0
  243. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/parsers/text_parser.py +0 -0
  244. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/parsers/url_parser.py +0 -0
  245. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/parsers/util.py +0 -0
  246. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/prompts.py +0 -0
  247. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/retrieval/__init__.py +0 -0
  248. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/retrieval/hit_stopwords.txt +0 -0
  249. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/retrieval/manager.py +0 -0
  250. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/retrieval/rank_fusion.py +0 -0
  251. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/knowledge_base/retrieval/sparse_retriever.py +0 -0
  252. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/log.py +0 -0
  253. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/message/message_event_result.py +0 -0
  254. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/persona_mgr.py +0 -0
  255. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/__init__.py +0 -0
  256. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/content_safety_check/stage.py +0 -0
  257. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/content_safety_check/strategies/__init__.py +0 -0
  258. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/content_safety_check/strategies/baidu_aip.py +0 -0
  259. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/content_safety_check/strategies/keywords.py +0 -0
  260. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/content_safety_check/strategies/strategy.py +0 -0
  261. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/context.py +0 -0
  262. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/context_utils.py +0 -0
  263. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/preprocess_stage/stage.py +0 -0
  264. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/process_stage/method/agent_request.py +0 -0
  265. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/process_stage/method/agent_sub_stages/third_party.py +0 -0
  266. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/process_stage/method/star_request.py +0 -0
  267. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/process_stage/stage.py +0 -0
  268. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/process_stage/utils.py +0 -0
  269. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/rate_limit_check/stage.py +0 -0
  270. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/result_decorate/stage.py +0 -0
  271. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/scheduler.py +0 -0
  272. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/session_status_check/stage.py +0 -0
  273. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/stage.py +0 -0
  274. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/waking_check/stage.py +0 -0
  275. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/pipeline/whitelist_check/stage.py +0 -0
  276. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/__init__.py +0 -0
  277. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/astr_message_event.py +0 -0
  278. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/astrbot_message.py +0 -0
  279. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/manager.py +0 -0
  280. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/message_session.py +0 -0
  281. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/message_type.py +0 -0
  282. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/platform.py +0 -0
  283. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/platform_metadata.py +0 -0
  284. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/register.py +0 -0
  285. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py +0 -0
  286. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py +0 -0
  287. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/dingtalk/dingtalk_adapter.py +0 -0
  288. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/dingtalk/dingtalk_event.py +0 -0
  289. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/discord/client.py +0 -0
  290. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/discord/components.py +0 -0
  291. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/discord/discord_platform_adapter.py +0 -0
  292. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/discord/discord_platform_event.py +0 -0
  293. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/lark/lark_adapter.py +0 -0
  294. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/lark/lark_event.py +0 -0
  295. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/lark/server.py +0 -0
  296. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/misskey/misskey_adapter.py +0 -0
  297. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/misskey/misskey_api.py +0 -0
  298. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/misskey/misskey_event.py +0 -0
  299. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/misskey/misskey_utils.py +0 -0
  300. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py +0 -0
  301. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py +0 -0
  302. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_adapter.py +0 -0
  303. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_event.py +0 -0
  304. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_server.py +0 -0
  305. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/satori/satori_adapter.py +0 -0
  306. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/satori/satori_event.py +0 -0
  307. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/slack/client.py +0 -0
  308. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/slack/slack_adapter.py +0 -0
  309. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/slack/slack_event.py +0 -0
  310. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/telegram/tg_adapter.py +0 -0
  311. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/webchat/webchat_adapter.py +0 -0
  312. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/webchat/webchat_queue_mgr.py +0 -0
  313. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_adapter.py +0 -0
  314. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_message_event.py +0 -0
  315. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wechatpadpro/xml_data_parser.py +0 -0
  316. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom/wecom_adapter.py +0 -0
  317. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom/wecom_event.py +0 -0
  318. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom/wecom_kf.py +0 -0
  319. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom/wecom_kf_message.py +0 -0
  320. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/WXBizJsonMsgCrypt.py +0 -0
  321. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/__init__.py +0 -0
  322. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/ierror.py +0 -0
  323. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_adapter.py +0 -0
  324. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_api.py +0 -0
  325. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_event.py +0 -0
  326. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_queue_mgr.py +0 -0
  327. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_server.py +0 -0
  328. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_utils.py +0 -0
  329. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_adapter.py +0 -0
  330. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_event.py +0 -0
  331. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/platform_message_history_mgr.py +0 -0
  332. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/__init__.py +0 -0
  333. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/entites.py +0 -0
  334. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/func_tool_manager.py +0 -0
  335. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/provider.py +0 -0
  336. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/register.py +0 -0
  337. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/azure_tts_source.py +0 -0
  338. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/bailian_rerank_source.py +0 -0
  339. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/dashscope_tts.py +0 -0
  340. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/edge_tts_source.py +0 -0
  341. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/fishaudio_tts_api_source.py +0 -0
  342. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/gemini_embedding_source.py +0 -0
  343. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/gemini_tts_source.py +0 -0
  344. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/groq_source.py +0 -0
  345. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/gsv_selfhosted_source.py +0 -0
  346. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/gsvi_tts_source.py +0 -0
  347. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/minimax_tts_api_source.py +0 -0
  348. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/openai_embedding_source.py +0 -0
  349. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/openai_tts_api_source.py +0 -0
  350. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/sensevoice_selfhosted_source.py +0 -0
  351. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/vllm_rerank_source.py +0 -0
  352. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/volcengine_tts.py +0 -0
  353. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/whisper_api_source.py +0 -0
  354. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/whisper_selfhosted_source.py +0 -0
  355. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/xinference_rerank_source.py +0 -0
  356. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/xinference_stt_provider.py +0 -0
  357. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/provider/sources/zhipu_source.py +0 -0
  358. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/README.md +0 -0
  359. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/config.py +0 -0
  360. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/filter/__init__.py +0 -0
  361. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/filter/custom_filter.py +0 -0
  362. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/filter/event_message_type.py +0 -0
  363. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/filter/permission.py +0 -0
  364. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/filter/platform_adapter_type.py +0 -0
  365. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/filter/regex.py +0 -0
  366. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/register/__init__.py +0 -0
  367. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/register/star.py +0 -0
  368. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/register/star_handler.py +0 -0
  369. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/session_llm_manager.py +0 -0
  370. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/session_plugin_manager.py +0 -0
  371. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/star.py +0 -0
  372. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/star_tools.py +0 -0
  373. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/star/updator.py +0 -0
  374. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/umop_config_router.py +0 -0
  375. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/updator.py +0 -0
  376. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/astrbot_path.py +0 -0
  377. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/command_parser.py +0 -0
  378. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/file_extract.py +0 -0
  379. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/io.py +0 -0
  380. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/log_pipe.py +0 -0
  381. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/metrics.py +0 -0
  382. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/path_util.py +0 -0
  383. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/pip_installer.py +0 -0
  384. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/session_lock.py +0 -0
  385. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/session_waiter.py +0 -0
  386. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/shared_preferences.py +0 -0
  387. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/t2i/__init__.py +0 -0
  388. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/t2i/local_strategy.py +0 -0
  389. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/t2i/network_strategy.py +0 -0
  390. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/t2i/renderer.py +0 -0
  391. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/t2i/template/astrbot_powershell.html +0 -0
  392. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/t2i/template/base.html +0 -0
  393. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/t2i/template_manager.py +0 -0
  394. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/tencent_record_helper.py +0 -0
  395. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/version_comparator.py +0 -0
  396. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/utils/webhook_utils.py +0 -0
  397. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/core/zip_updator.py +0 -0
  398. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/auth.py +0 -0
  399. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/conversation.py +0 -0
  400. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/file.py +0 -0
  401. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/knowledge_base.py +0 -0
  402. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/log.py +0 -0
  403. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/persona.py +0 -0
  404. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/platform.py +0 -0
  405. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/plugin.py +0 -0
  406. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/route.py +0 -0
  407. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/session_management.py +0 -0
  408. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/static_file.py +0 -0
  409. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/t2i.py +0 -0
  410. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/routes/update.py +0 -0
  411. {astrbot-4.9.1 → astrbot-4.10.0}/astrbot/dashboard/utils.py +0 -0
  412. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.0.md +0 -0
  413. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.1.md +0 -0
  414. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.10.md +0 -0
  415. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.11.md +0 -0
  416. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.12.md +0 -0
  417. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.13.md +0 -0
  418. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.14.md +0 -0
  419. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.15.md +0 -0
  420. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.16.md +0 -0
  421. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.17.md +0 -0
  422. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.18.md +0 -0
  423. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.19.md +0 -0
  424. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.20.md +0 -0
  425. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.21.md +0 -0
  426. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.22.md +0 -0
  427. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.23.md +0 -0
  428. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.24.md +0 -0
  429. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.25.md +0 -0
  430. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.26.md +0 -0
  431. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.27.md +0 -0
  432. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.28.md +0 -0
  433. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.29.md +0 -0
  434. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.3.md +0 -0
  435. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.30.md +0 -0
  436. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.31.md +0 -0
  437. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.32.md +0 -0
  438. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.33.md +0 -0
  439. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.35.md +0 -0
  440. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.36.md +0 -0
  441. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.37.md +0 -0
  442. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.38.md +0 -0
  443. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.39.md +0 -0
  444. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.4.md +0 -0
  445. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.5.md +0 -0
  446. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.6.md +0 -0
  447. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.7.md +0 -0
  448. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.8.md +0 -0
  449. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.4.9.md +0 -0
  450. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.0.md +0 -0
  451. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.1.md +0 -0
  452. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.10.md +0 -0
  453. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.11.md +0 -0
  454. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.12.md +0 -0
  455. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.13.md +0 -0
  456. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.14.md +0 -0
  457. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.15.md +0 -0
  458. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.16.md +0 -0
  459. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.17.md +0 -0
  460. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.18.md +0 -0
  461. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.19.md +0 -0
  462. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.2.md +0 -0
  463. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.20.md +0 -0
  464. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.21.md +0 -0
  465. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.22.md +0 -0
  466. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.23.md +0 -0
  467. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.24.md +0 -0
  468. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.25.md +0 -0
  469. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.26.md +0 -0
  470. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.27.md +0 -0
  471. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.3.1.md +0 -0
  472. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.3.2.md +0 -0
  473. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.3.md +0 -0
  474. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.4.md +0 -0
  475. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.5.md +0 -0
  476. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.6.md +0 -0
  477. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.7.md +0 -0
  478. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.8.md +0 -0
  479. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v3.5.9.md +0 -0
  480. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.0.0-beta.3.md +0 -0
  481. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.0.0-beta.4.md +0 -0
  482. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.0.0-beta.5.md +0 -0
  483. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.0.0.md +0 -0
  484. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.1.0.md +0 -0
  485. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.1.1.md +0 -0
  486. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.1.2.md +0 -0
  487. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.1.3.md +0 -0
  488. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.1.4.md +0 -0
  489. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.1.5.md +0 -0
  490. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.1.6.md +0 -0
  491. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.1.7.md +0 -0
  492. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.2.0.md +0 -0
  493. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.2.1.md +0 -0
  494. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.3.0.md +0 -0
  495. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.3.1.md +0 -0
  496. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.3.2.md +0 -0
  497. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.3.3.md +0 -0
  498. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.3.5.md +0 -0
  499. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.5.0.md +0 -0
  500. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.5.1.md +0 -0
  501. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.5.2.md +0 -0
  502. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.5.3.md +0 -0
  503. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.5.4.md +0 -0
  504. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.5.5.md +0 -0
  505. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.5.6.md +0 -0
  506. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.5.7.md +0 -0
  507. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.5.8.md +0 -0
  508. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.6.0.md +0 -0
  509. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.6.1.md +0 -0
  510. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.7.0.md +0 -0
  511. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.7.1.md +0 -0
  512. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.7.3.md +0 -0
  513. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.7.4.md +0 -0
  514. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.8.0.md +0 -0
  515. {astrbot-4.9.1 → astrbot-4.10.0}/changelogs/v4.9.0.md +0 -0
  516. {astrbot-4.9.1 → astrbot-4.10.0}/compose.yml +0 -0
  517. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/.gitignore +0 -0
  518. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/LICENSE +0 -0
  519. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/README.md +0 -0
  520. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/env.d.ts +0 -0
  521. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/public/_redirects +0 -0
  522. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/public/favicon.svg +0 -0
  523. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/App.vue +0 -0
  524. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/astrbot_banner.png +0 -0
  525. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/astrbot_logo_mini.webp +0 -0
  526. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/icon-no-shadow.svg +0 -0
  527. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/loading-seio.webp +0 -0
  528. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/dingtalk.svg +0 -0
  529. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/discord.svg +0 -0
  530. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/kook.png +0 -0
  531. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/lark.png +0 -0
  532. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/misskey.png +0 -0
  533. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/qq.png +0 -0
  534. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/satori.png +0 -0
  535. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/slack.svg +0 -0
  536. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/telegram.svg +0 -0
  537. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/vocechat.png +0 -0
  538. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/wechat.png +0 -0
  539. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/platform_logos/wecom.png +0 -0
  540. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/assets/images/plugin_icon.png +0 -0
  541. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/ConfirmDialog.vue +0 -0
  542. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/chat/StandaloneChat.vue +0 -0
  543. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/config/AstrBotCoreConfigWrapper.vue +0 -0
  544. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/AstrBotConfigV4.vue +0 -0
  545. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/ConsoleDisplayer.vue +0 -0
  546. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/ExtensionCard.vue +0 -0
  547. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/ItemCard.vue +0 -0
  548. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/ItemCardGrid.vue +0 -0
  549. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/KnowledgeBaseSelector.vue +0 -0
  550. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/Logo.vue +0 -0
  551. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/MigrationDialog.vue +0 -0
  552. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/ObjectEditor.vue +0 -0
  553. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/PersonaForm.vue +0 -0
  554. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/PersonaSelector.vue +0 -0
  555. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/PluginSetSelector.vue +0 -0
  556. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/ProxySelector.vue +0 -0
  557. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/T2ITemplateEditor.vue +0 -0
  558. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/UninstallConfirmDialog.vue +0 -0
  559. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/components/shared/WaitingForRestart.vue +0 -0
  560. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/composables/useConversations.ts +0 -0
  561. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/composables/useMediaHandling.ts +0 -0
  562. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/composables/useRecording.ts +0 -0
  563. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/config.ts +0 -0
  564. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/composables.ts +0 -0
  565. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/loader.ts +0 -0
  566. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/core/header.json +0 -0
  567. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/core/status.json +0 -0
  568. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/about.json +0 -0
  569. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/alkaid/index.json +0 -0
  570. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/alkaid/knowledge-base.json +0 -0
  571. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/alkaid/memory.json +0 -0
  572. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/auth.json +0 -0
  573. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/chart.json +0 -0
  574. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/config-metadata.json +0 -0
  575. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/config.json +0 -0
  576. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/console.json +0 -0
  577. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/conversation.json +0 -0
  578. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/dashboard.json +0 -0
  579. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/knowledge-base/detail.json +0 -0
  580. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/knowledge-base/document.json +0 -0
  581. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/knowledge-base/index.json +0 -0
  582. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/migration.json +0 -0
  583. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/persona.json +0 -0
  584. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/platform.json +0 -0
  585. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/session-management.json +0 -0
  586. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/features/settings.json +0 -0
  587. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/messages/errors.json +0 -0
  588. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/messages/success.json +0 -0
  589. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/en-US/messages/validation.json +0 -0
  590. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/core/header.json +0 -0
  591. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/core/status.json +0 -0
  592. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/about.json +0 -0
  593. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/alkaid/index.json +0 -0
  594. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/alkaid/knowledge-base.json +0 -0
  595. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/alkaid/memory.json +0 -0
  596. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/auth.json +0 -0
  597. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/chart.json +0 -0
  598. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json +0 -0
  599. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/config.json +0 -0
  600. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/console.json +0 -0
  601. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/conversation.json +0 -0
  602. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/dashboard.json +0 -0
  603. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/detail.json +0 -0
  604. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/document.json +0 -0
  605. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/index.json +0 -0
  606. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/migration.json +0 -0
  607. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/persona.json +0 -0
  608. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/platform.json +0 -0
  609. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/session-management.json +0 -0
  610. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/features/settings.json +0 -0
  611. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/messages/errors.json +0 -0
  612. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/messages/success.json +0 -0
  613. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/locales/zh-CN/messages/validation.json +0 -0
  614. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/tools/index.ts +0 -0
  615. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/types.ts +0 -0
  616. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/i18n/validator.ts +0 -0
  617. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/layouts/blank/BlankLayout.vue +0 -0
  618. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/layouts/full/vertical-sidebar/NavItem.vue +0 -0
  619. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/main.ts +0 -0
  620. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/plugins/confirmPlugin.ts +0 -0
  621. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/plugins/vuetify.ts +0 -0
  622. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/router/AuthRoutes.ts +0 -0
  623. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/router/ChatBoxRoutes.ts +0 -0
  624. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/scss/_override.scss +0 -0
  625. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/scss/_variables.scss +0 -0
  626. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/scss/components/_VButtons.scss +0 -0
  627. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/scss/components/_VCard.scss +0 -0
  628. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/scss/components/_VField.scss +0 -0
  629. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/scss/components/_VNavigationDrawer.scss +0 -0
  630. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/scss/components/_VScrollbar.scss +0 -0
  631. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/scss/components/_VShadow.scss +0 -0
  632. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/scss/components/_VTabs.scss +0 -0
  633. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/scss/layout/_sidebar.scss +0 -0
  634. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/scss/style.scss +0 -0
  635. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/stores/auth.ts +0 -0
  636. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/stores/common.js +0 -0
  637. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/stores/toast.js +0 -0
  638. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/theme/DarkTheme.ts +0 -0
  639. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/theme/LightTheme.ts +0 -0
  640. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/types/themeTypes/ThemeType.ts +0 -0
  641. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/types/vue3-print-nb.d.ts +0 -0
  642. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/types/vue_tabler_icon.d.ts +0 -0
  643. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/utils/toast.js +0 -0
  644. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/AlkaidPage.vue +0 -0
  645. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/ChatBoxPage.vue +0 -0
  646. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/ChatPage.vue +0 -0
  647. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/ConfigPage.vue +0 -0
  648. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/ConsolePage.vue +0 -0
  649. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/PersonaPage.vue +0 -0
  650. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/PlatformPage.vue +0 -0
  651. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/SessionManagementPage.vue +0 -0
  652. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/Settings.vue +0 -0
  653. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/alkaid/KnowledgeBase.vue +0 -0
  654. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/alkaid/Other.vue +0 -0
  655. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/authentication/auth/LoginPage.vue +0 -0
  656. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/authentication/authForms/AuthLogin.vue +0 -0
  657. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/DefaultDashboard.vue +0 -0
  658. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/components/MemoryUsage.vue +0 -0
  659. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/components/MessageStat.vue +0 -0
  660. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/components/OnlinePlatform.vue +0 -0
  661. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/components/OnlineTime.vue +0 -0
  662. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/components/PlatformStat.vue +0 -0
  663. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/components/RunningTime.vue +0 -0
  664. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/dashboards/default/components/TotalMessage.vue +0 -0
  665. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/DocumentDetail.vue +0 -0
  666. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/KBDetail.vue +0 -0
  667. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/KBList.vue +0 -0
  668. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/components/DocumentsTab.vue +0 -0
  669. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/components/RetrievalTab.vue +0 -0
  670. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/components/SettingsTab.vue +0 -0
  671. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/components/TavilyKeyDialog.vue +0 -0
  672. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/src/views/knowledge-base/index.vue +0 -0
  673. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/tsconfig.json +0 -0
  674. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/tsconfig.vite-config.json +0 -0
  675. {astrbot-4.9.1 → astrbot-4.10.0}/dashboard/vite.config.ts +0 -0
  676. {astrbot-4.9.1 → astrbot-4.10.0}/k8s/astrbot/00-namespace.yaml +0 -0
  677. {astrbot-4.9.1 → astrbot-4.10.0}/k8s/astrbot/01-pvc.yaml +0 -0
  678. {astrbot-4.9.1 → astrbot-4.10.0}/k8s/astrbot/02-deployment.yaml +0 -0
  679. {astrbot-4.9.1 → astrbot-4.10.0}/k8s/astrbot/03-service-nodeport.yaml +0 -0
  680. {astrbot-4.9.1 → astrbot-4.10.0}/k8s/astrbot/04-service-loadbalancer.yaml +0 -0
  681. {astrbot-4.9.1 → astrbot-4.10.0}/k8s/astrbot_with_napcat/00-namespace.yaml +0 -0
  682. {astrbot-4.9.1 → astrbot-4.10.0}/k8s/astrbot_with_napcat/01-pvc.yaml +0 -0
  683. {astrbot-4.9.1 → astrbot-4.10.0}/k8s/astrbot_with_napcat/02-deployment.yaml +0 -0
  684. {astrbot-4.9.1 → astrbot-4.10.0}/k8s/astrbot_with_napcat/03-service-nodeport.yaml +0 -0
  685. {astrbot-4.9.1 → astrbot-4.10.0}/k8s/astrbot_with_napcat/04-service-loadbalancer.yaml +0 -0
  686. {astrbot-4.9.1 → astrbot-4.10.0}/main.py +0 -0
  687. {astrbot-4.9.1 → astrbot-4.10.0}/packages/astrbot/long_term_memory.py +0 -0
  688. {astrbot-4.9.1 → astrbot-4.10.0}/packages/astrbot/main.py +0 -0
  689. {astrbot-4.9.1 → astrbot-4.10.0}/packages/astrbot/metadata.yaml +0 -0
  690. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/commands/__init__.py +0 -0
  691. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/commands/alter_cmd.py +0 -0
  692. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/commands/conversation.py +0 -0
  693. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/commands/llm.py +0 -0
  694. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/commands/persona.py +0 -0
  695. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/commands/plugin.py +0 -0
  696. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/commands/provider.py +0 -0
  697. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/commands/setunset.py +0 -0
  698. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/commands/sid.py +0 -0
  699. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/commands/t2i.py +0 -0
  700. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/commands/tool.py +0 -0
  701. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/commands/tts.py +0 -0
  702. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/commands/utils/rst_scene.py +0 -0
  703. {astrbot-4.9.1 → astrbot-4.10.0}/packages/builtin_commands/metadata.yaml +0 -0
  704. {astrbot-4.9.1 → astrbot-4.10.0}/packages/python_interpreter/metadata.yaml +0 -0
  705. {astrbot-4.9.1 → astrbot-4.10.0}/packages/python_interpreter/requirements.txt +0 -0
  706. {astrbot-4.9.1 → astrbot-4.10.0}/packages/python_interpreter/shared/api.py +0 -0
  707. {astrbot-4.9.1 → astrbot-4.10.0}/packages/reminder/metadata.yaml +0 -0
  708. {astrbot-4.9.1 → astrbot-4.10.0}/packages/session_controller/main.py +0 -0
  709. {astrbot-4.9.1 → astrbot-4.10.0}/packages/session_controller/metadata.yaml +0 -0
  710. {astrbot-4.9.1 → astrbot-4.10.0}/packages/web_searcher/engines/__init__.py +0 -0
  711. {astrbot-4.9.1 → astrbot-4.10.0}/packages/web_searcher/engines/bing.py +0 -0
  712. {astrbot-4.9.1 → astrbot-4.10.0}/packages/web_searcher/engines/sogo.py +0 -0
  713. {astrbot-4.9.1 → astrbot-4.10.0}/packages/web_searcher/metadata.yaml +0 -0
  714. {astrbot-4.9.1 → astrbot-4.10.0}/samples/stt_health_check.wav +0 -0
  715. {astrbot-4.9.1 → astrbot-4.10.0}/tests/test_kb_import.py +0 -0
  716. {astrbot-4.9.1 → astrbot-4.10.0}/tests/test_main.py +0 -0
  717. {astrbot-4.9.1 → astrbot-4.10.0}/tests/test_plugin_manager.py +0 -0
  718. {astrbot-4.9.1 → astrbot-4.10.0}/tests/test_security_fixes.py +0 -0
  719. {astrbot-4.9.1 → astrbot-4.10.0}/typings/faiss/__init__.pyi +0 -0
@@ -36,7 +36,7 @@ jobs:
36
36
  zip -r dist.zip dist
37
37
 
38
38
  - name: Archive production artifacts
39
- uses: actions/upload-artifact@v5
39
+ uses: actions/upload-artifact@v6
40
40
  with:
41
41
  name: dist-without-markdown
42
42
  path: |
@@ -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.9.1
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<1.51.0,>=1.14.0
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
- def model_dump(self, **kwargs: Any) -> dict[str, Any]:
125
+ @model_serializer(mode="wrap")
126
+ def serialize(self, handler):
127
+ data = handler(self)
126
128
  if self.extra_content is None:
127
- kwargs.setdefault("exclude", set()).add("extra_content")
128
- return super().model_dump(**kwargs)
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(config={"arbitrary_types_allowed": True})
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(**self.req.__dict__)
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(**self.req.__dict__)
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 = "tool_call_result"
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="tool_call_result",
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(config={"arbitrary_types_allowed": True})
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(resp.data["chain"])
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
- if show_tool_use:
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
- logger.error(f"调用本地 LLM 工具时出错: {e}", exc_info=True)
213
- except TypeError:
214
- logger.error("处理函数参数不匹配,请检查 handler 的定义。", exc_info=True)
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
- logger.error(f"调用本地 LLM 工具时出错: {e}\n{trace_}")
247
+ raise Exception(f"Tool execution error: {e}. Traceback: {trace_}") from e
218
248
 
219
249
  if not ready_to_call:
220
250
  return