AstrBot 4.6.0__tar.gz → 4.7.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.6.0 → astrbot-4.7.0}/.github/workflows/auto_release.yml +2 -2
- {astrbot-4.6.0 → astrbot-4.7.0}/.github/workflows/code-format.yml +1 -1
- {astrbot-4.6.0 → astrbot-4.7.0}/.github/workflows/codeql.yml +1 -1
- {astrbot-4.6.0 → astrbot-4.7.0}/.github/workflows/coverage_test.yml +1 -1
- {astrbot-4.6.0 → astrbot-4.7.0}/.github/workflows/dashboard_ci.yml +1 -1
- {astrbot-4.6.0 → astrbot-4.7.0}/.github/workflows/docker-image.yml +3 -3
- {astrbot-4.6.0 → astrbot-4.7.0}/PKG-INFO +2 -2
- {astrbot-4.6.0 → astrbot-4.7.0}/README.md +1 -1
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/agent/runners/base.py +7 -4
- astrbot-4.7.0/astrbot/core/agent/runners/coze/coze_agent_runner.py +367 -0
- astrbot-4.7.0/astrbot/core/agent/runners/dashscope/dashscope_agent_runner.py +403 -0
- astrbot-4.7.0/astrbot/core/agent/runners/dify/dify_agent_runner.py +336 -0
- {astrbot-4.6.0/astrbot/core/utils → astrbot-4.7.0/astrbot/core/agent/runners/dify}/dify_api_client.py +51 -13
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/agent/runners/tool_loop_agent_runner.py +0 -6
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/config/default.py +164 -26
- astrbot-4.7.0/astrbot/core/config/i18n_utils.py +110 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/core_lifecycle.py +11 -13
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/db/migration/migra_webchat_session.py +4 -4
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/db/po.py +1 -1
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/db/sqlite.py +2 -2
- astrbot-4.7.0/astrbot/core/pipeline/process_stage/method/agent_request.py +48 -0
- astrbot-4.6.0/astrbot/core/pipeline/process_stage/method/llm_request.py → astrbot-4.7.0/astrbot/core/pipeline/process_stage/method/agent_sub_stages/internal.py +13 -34
- astrbot-4.7.0/astrbot/core/pipeline/process_stage/method/agent_sub_stages/third_party.py +202 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/process_stage/method/star_request.py +1 -1
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/process_stage/stage.py +8 -5
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/result_decorate/stage.py +15 -5
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/manager.py +47 -41
- astrbot-4.7.0/astrbot/core/provider/sources/bailian_rerank_source.py +236 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/umop_config_router.py +19 -0
- astrbot-4.7.0/astrbot/core/utils/migra_helper.py +73 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/shared_preferences.py +1 -28
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/chat.py +13 -1
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/config.py +20 -16
- astrbot-4.7.0/astrbot/dashboard/routes/session_management.py +354 -0
- astrbot-4.7.0/changelogs/v4.6.1.md +29 -0
- astrbot-4.7.0/changelogs/v4.7.0.md +18 -0
- astrbot-4.7.0/dashboard/src/assets/images/plugin_icon.png +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/chat/Chat.vue +3 -1
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/chat/ChatInput.vue +32 -3
- astrbot-4.7.0/dashboard/src/components/chat/ConfigSelector.vue +313 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/chat/ConversationSidebar.vue +10 -3
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/chat/ProviderModelSelector.vue +1 -0
- astrbot-4.7.0/dashboard/src/components/chat/StandaloneChat.vue +319 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/config/AstrBotCoreConfigWrapper.vue +12 -2
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/provider/AddNewProvider.vue +7 -21
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/AstrBotConfigV4.vue +103 -57
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/KnowledgeBaseSelector.vue +12 -10
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/PluginSetSelector.vue +15 -13
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/ProviderSelector.vue +29 -9
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/composables/useSessions.ts +5 -1
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/loader.ts +2 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/core/common.json +1 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/core/navigation.json +1 -1
- astrbot-4.7.0/dashboard/src/i18n/locales/en-US/core/shared.json +45 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/chat.json +6 -1
- astrbot-4.7.0/dashboard/src/i18n/locales/en-US/features/config-metadata.json +452 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/config.json +28 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/provider.json +3 -1
- astrbot-4.7.0/dashboard/src/i18n/locales/en-US/features/session-management.json +99 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/core/navigation.json +1 -1
- astrbot-4.7.0/dashboard/src/i18n/locales/zh-CN/core/shared.json +45 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/chat.json +6 -1
- astrbot-4.7.0/dashboard/src/i18n/locales/zh-CN/features/config-metadata.json +452 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/config.json +27 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/provider.json +5 -3
- astrbot-4.7.0/dashboard/src/i18n/locales/zh-CN/features/session-management.json +99 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/translations.ts +10 -2
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/layouts/full/vertical-sidebar/sidebarItem.ts +1 -1
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/ConfigPage.vue +104 -19
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/ExtensionPage.vue +37 -5
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/ProviderPage.vue +162 -87
- astrbot-4.7.0/dashboard/src/views/SessionManagementPage.vue +881 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/commands/conversation.py +48 -120
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/commands/persona.py +18 -2
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/long_term_memory.py +3 -1
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/main.py +12 -26
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/process_llm_request.py +18 -8
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/session_controller/main.py +1 -1
- {astrbot-4.6.0 → astrbot-4.7.0}/pyproject.toml +1 -1
- {astrbot-4.6.0 → astrbot-4.7.0}/tests/test_dashboard.py +11 -1
- {astrbot-4.6.0 → astrbot-4.7.0}/tests/test_plugin_manager.py +2 -0
- astrbot-4.6.0/astrbot/core/provider/sources/coze_source.py +0 -650
- astrbot-4.6.0/astrbot/core/provider/sources/dashscope_source.py +0 -207
- astrbot-4.6.0/astrbot/core/provider/sources/dify_source.py +0 -285
- astrbot-4.6.0/astrbot/dashboard/routes/session_management.py +0 -688
- astrbot-4.6.0/dashboard/src/i18n/locales/en-US/features/session-management.json +0 -124
- astrbot-4.6.0/dashboard/src/i18n/locales/zh-CN/features/session-management.json +0 -124
- astrbot-4.6.0/dashboard/src/views/SessionManagementPage.vue +0 -1297
- {astrbot-4.6.0 → astrbot-4.7.0}/.dockerignore +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/.github/FUNDING.yml +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/.github/ISSUE_TEMPLATE/PLUGIN_PUBLISH.yml +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/.github/auto_assign.yml +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/.github/copilot-instructions.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/.github/dependabot.yml +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/.github/workflows/stale.yml +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/.gitignore +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/.pre-commit-config.yaml +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/.python-version +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/CODE_OF_CONDUCT.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/Dockerfile +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/LICENSE +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/README_en.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/README_ja.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/api/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/api/all.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/api/event/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/api/event/filter/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/api/message_components.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/api/platform/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/api/provider/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/api/star/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/api/util/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/cli/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/cli/__main__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/cli/commands/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/cli/commands/cmd_conf.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/cli/commands/cmd_init.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/cli/commands/cmd_plug.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/cli/commands/cmd_run.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/cli/utils/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/cli/utils/basic.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/cli/utils/plugin.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/cli/utils/version_comparator.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/agent/agent.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/agent/handoff.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/agent/hooks.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/agent/mcp_client.py +3 -3
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/agent/message.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/agent/response.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/agent/run_context.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/agent/runners/__init__.py +0 -0
- {astrbot-4.6.0/astrbot/core/provider/sources → astrbot-4.7.0/astrbot/core/agent/runners/coze}/coze_api_client.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/agent/tool.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/agent/tool_executor.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/astr_agent_context.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/astr_agent_hooks.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/astr_agent_run_util.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/astr_agent_tool_exec.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/astrbot_config_mgr.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/config/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/config/astrbot_config.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/conversation_mgr.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/db/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/db/migration/helper.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/db/migration/migra_3_to_4.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/db/migration/migra_45_to_46.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/db/migration/shared_preferences_v3.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/db/migration/sqlite_v3.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/db/vec_db/base.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/db/vec_db/faiss_impl/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/db/vec_db/faiss_impl/document_storage.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/db/vec_db/faiss_impl/embedding_storage.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/db/vec_db/faiss_impl/sqlite_init.sql +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/db/vec_db/faiss_impl/vec_db.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/event_bus.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/exceptions.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/file_token_service.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/initial_loader.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/chunking/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/chunking/base.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/chunking/fixed_size.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/chunking/recursive.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/kb_db_sqlite.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/kb_helper.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/kb_mgr.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/models.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/parsers/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/parsers/base.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/parsers/markitdown_parser.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/parsers/pdf_parser.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/parsers/text_parser.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/parsers/url_parser.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/parsers/util.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/prompts.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/retrieval/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/retrieval/hit_stopwords.txt +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/retrieval/manager.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/retrieval/rank_fusion.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/knowledge_base/retrieval/sparse_retriever.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/log.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/message/components.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/message/message_event_result.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/persona_mgr.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/content_safety_check/stage.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/content_safety_check/strategies/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/content_safety_check/strategies/baidu_aip.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/content_safety_check/strategies/keywords.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/content_safety_check/strategies/strategy.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/context.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/context_utils.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/preprocess_stage/stage.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/process_stage/utils.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/rate_limit_check/stage.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/respond/stage.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/scheduler.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/session_status_check/stage.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/stage.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/waking_check/stage.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/pipeline/whitelist_check/stage.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/astr_message_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/astrbot_message.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/manager.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/message_session.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/message_type.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/platform.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/platform_metadata.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/register.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_message_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/aiocqhttp/aiocqhttp_platform_adapter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/dingtalk/dingtalk_adapter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/dingtalk/dingtalk_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/discord/client.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/discord/components.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/discord/discord_platform_adapter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/discord/discord_platform_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/lark/lark_adapter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/lark/lark_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/misskey/misskey_adapter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/misskey/misskey_api.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/misskey/misskey_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/misskey/misskey_utils.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/qqofficial/qqofficial_message_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/qqofficial/qqofficial_platform_adapter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_adapter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/qqofficial_webhook/qo_webhook_server.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/satori/satori_adapter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/satori/satori_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/slack/client.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/slack/slack_adapter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/slack/slack_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/telegram/tg_adapter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/telegram/tg_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/webchat/webchat_adapter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/webchat/webchat_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/webchat/webchat_queue_mgr.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_adapter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wechatpadpro/wechatpadpro_message_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wechatpadpro/xml_data_parser.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wecom/wecom_adapter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wecom/wecom_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wecom/wecom_kf.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wecom/wecom_kf_message.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wecom_ai_bot/WXBizJsonMsgCrypt.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wecom_ai_bot/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wecom_ai_bot/ierror.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_adapter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_api.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_queue_mgr.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_server.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/wecom_ai_bot/wecomai_utils.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_adapter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform/sources/weixin_official_account/weixin_offacc_event.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/platform_message_history_mgr.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/entites.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/entities.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/func_tool_manager.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/provider.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/register.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/anthropic_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/azure_tts_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/dashscope_tts.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/edge_tts_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/fishaudio_tts_api_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/gemini_embedding_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/gemini_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/gemini_tts_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/groq_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/gsv_selfhosted_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/gsvi_tts_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/minimax_tts_api_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/openai_embedding_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/openai_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/openai_tts_api_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/sensevoice_selfhosted_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/vllm_rerank_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/volcengine_tts.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/whisper_api_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/whisper_selfhosted_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/xinference_rerank_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/xinference_stt_provider.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/provider/sources/zhipu_source.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/README.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/config.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/context.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/filter/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/filter/command.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/filter/command_group.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/filter/custom_filter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/filter/event_message_type.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/filter/permission.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/filter/platform_adapter_type.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/filter/regex.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/register/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/register/star.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/register/star_handler.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/session_llm_manager.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/session_plugin_manager.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/star.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/star_handler.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/star_manager.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/star_tools.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/star/updator.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/updator.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/astrbot_path.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/command_parser.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/io.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/log_pipe.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/metrics.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/path_util.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/pip_installer.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/session_lock.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/session_waiter.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/t2i/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/t2i/local_strategy.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/t2i/network_strategy.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/t2i/renderer.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/t2i/template/astrbot_powershell.html +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/t2i/template/base.html +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/t2i/template_manager.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/tencent_record_helper.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/utils/version_comparator.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/core/zip_updator.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/auth.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/conversation.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/file.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/knowledge_base.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/log.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/persona.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/plugin.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/route.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/stat.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/static_file.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/t2i.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/tools.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/routes/update.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/server.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/astrbot/dashboard/utils.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.0.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.1.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.10.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.11.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.12.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.13.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.14.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.15.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.16.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.17.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.18.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.19.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.20.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.21.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.22.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.23.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.24.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.25.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.26.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.27.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.28.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.29.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.3.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.30.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.31.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.32.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.33.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.35.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.36.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.37.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.38.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.39.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.4.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.5.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.6.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.7.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.8.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.4.9.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.0.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.1.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.10.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.11.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.12.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.13.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.14.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.15.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.16.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.17.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.18.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.19.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.2.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.20.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.21.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.22.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.23.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.24.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.25.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.26.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.27.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.3.1.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.3.2.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.3.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.4.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.5.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.6.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.7.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.8.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v3.5.9.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.0.0-beta.3.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.0.0-beta.4.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.0.0-beta.5.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.0.0.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.1.0.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.1.1.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.1.2.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.1.3.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.1.4.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.1.5.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.1.6.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.1.7.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.2.0.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.2.1.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.3.0.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.3.1.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.3.2.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.3.3.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.3.5.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.5.0.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.5.1.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.5.2.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.5.3.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.5.4.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.5.5.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.5.6.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.5.7.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.5.8.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/changelogs/v4.6.0.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/compose.yml +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/.gitignore +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/LICENSE +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/README.md +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/env.d.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/index.html +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/public/_redirects +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/public/favicon.svg +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/App.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/assets/images/astrbot_banner.png +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/assets/images/astrbot_logo_mini.webp +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/assets/images/icon-no-shadow.svg +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/assets/images/platform_logos/dingtalk.svg +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/assets/images/platform_logos/discord.svg +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/assets/images/platform_logos/kook.png +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/assets/images/platform_logos/lark.png +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/assets/images/platform_logos/misskey.png +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/assets/images/platform_logos/qq.png +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/assets/images/platform_logos/satori.png +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/assets/images/platform_logos/slack.svg +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/assets/images/platform_logos/telegram.svg +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/assets/images/platform_logos/vocechat.png +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/assets/images/platform_logos/wechat.png +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/assets/images/platform_logos/wecom.png +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/ConfirmDialog.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/chat/MessageList.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/platform/AddNewPlatform.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/AstrBotConfig.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/ConsoleDisplayer.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/ExtensionCard.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/ItemCard.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/ItemCardGrid.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/LanguageSwitcher.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/ListConfigItem.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/Logo.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/MigrationDialog.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/ObjectEditor.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/PersonaForm.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/PersonaSelector.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/ProxySelector.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/ReadmeDialog.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/SidebarCustomizer.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/T2ITemplateEditor.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/UninstallConfirmDialog.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/components/shared/WaitingForRestart.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/composables/useConversations.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/composables/useMediaHandling.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/composables/useMessages.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/composables/useRecording.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/config.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/composables.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/core/actions.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/core/header.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/core/status.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/about.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/alkaid/index.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/alkaid/knowledge-base.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/alkaid/memory.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/auth.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/chart.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/console.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/conversation.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/dashboard.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/extension.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/knowledge-base/detail.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/knowledge-base/document.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/knowledge-base/index.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/migration.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/persona.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/platform.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/settings.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/features/tool-use.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/messages/errors.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/messages/success.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/en-US/messages/validation.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/core/actions.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/core/common.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/core/header.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/core/status.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/about.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/alkaid/index.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/alkaid/knowledge-base.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/alkaid/memory.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/auth.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/chart.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/console.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/conversation.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/dashboard.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/extension.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/detail.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/document.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/knowledge-base/index.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/migration.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/persona.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/platform.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/settings.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/features/tool-use.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/messages/errors.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/messages/success.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/locales/zh-CN/messages/validation.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/tools/index.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/types.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/i18n/validator.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/layouts/blank/BlankLayout.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/layouts/full/FullLayout.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/layouts/full/vertical-sidebar/NavItem.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/layouts/full/vertical-sidebar/VerticalSidebar.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/main.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/plugins/confirmPlugin.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/plugins/vuetify.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/router/AuthRoutes.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/router/ChatBoxRoutes.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/router/MainRoutes.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/router/index.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/scss/_override.scss +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/scss/_variables.scss +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/scss/components/_VButtons.scss +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/scss/components/_VCard.scss +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/scss/components/_VField.scss +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/scss/components/_VInput.scss +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/scss/components/_VNavigationDrawer.scss +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/scss/components/_VScrollbar.scss +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/scss/components/_VShadow.scss +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/scss/components/_VTabs.scss +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/scss/components/_VTextField.scss +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/scss/layout/_container.scss +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/scss/layout/_sidebar.scss +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/scss/pages/_dashboards.scss +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/scss/style.scss +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/stores/auth.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/stores/common.js +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/stores/customizer.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/stores/toast.js +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/theme/DarkTheme.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/theme/LightTheme.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/types/themeTypes/ThemeType.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/types/vue3-print-nb.d.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/types/vue_tabler_icon.d.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/utils/platformUtils.js +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/utils/providerUtils.js +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/utils/sidebarCustomization.js +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/utils/toast.js +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/AboutPage.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/AlkaidPage.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/ChatBoxPage.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/ChatPage.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/ConsolePage.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/ConversationPage.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/PersonaPage.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/PlatformPage.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/Settings.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/ToolUsePage.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/alkaid/KnowledgeBase.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/alkaid/LongTermMemory.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/alkaid/Other.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/authentication/auth/LoginPage.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/authentication/authForms/AuthLogin.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/dashboards/default/DefaultDashboard.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/dashboards/default/components/MemoryUsage.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/dashboards/default/components/MessageStat.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/dashboards/default/components/OnlinePlatform.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/dashboards/default/components/OnlineTime.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/dashboards/default/components/PlatformStat.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/dashboards/default/components/RunningTime.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/dashboards/default/components/TotalMessage.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/knowledge-base/DocumentDetail.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/knowledge-base/KBDetail.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/knowledge-base/KBList.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/knowledge-base/components/DocumentsTab.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/knowledge-base/components/RetrievalTab.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/knowledge-base/components/SettingsTab.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/knowledge-base/components/TavilyKeyDialog.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/src/views/knowledge-base/index.vue +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/tsconfig.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/tsconfig.vite-config.json +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/dashboard/vite.config.ts +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/main.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/commands/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/commands/admin.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/commands/alter_cmd.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/commands/help.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/commands/llm.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/commands/plugin.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/commands/provider.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/commands/setunset.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/commands/sid.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/commands/t2i.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/commands/tool.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/commands/tts.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/commands/utils/rst_scene.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/astrbot/metadata.yaml +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/python_interpreter/main.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/python_interpreter/metadata.yaml +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/python_interpreter/requirements.txt +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/python_interpreter/shared/api.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/reminder/main.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/reminder/metadata.yaml +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/session_controller/metadata.yaml +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/web_searcher/engines/__init__.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/web_searcher/engines/bing.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/web_searcher/engines/sogo.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/web_searcher/main.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/packages/web_searcher/metadata.yaml +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/requirements.txt +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/samples/stt_health_check.wav +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/tests/test_main.py +0 -0
- {astrbot-4.6.0 → astrbot-4.7.0}/tests/test_security_fixes.py +0 -0
|
@@ -13,7 +13,7 @@ jobs:
|
|
|
13
13
|
contents: write
|
|
14
14
|
steps:
|
|
15
15
|
- name: Checkout repository
|
|
16
|
-
uses: actions/checkout@
|
|
16
|
+
uses: actions/checkout@v6
|
|
17
17
|
|
|
18
18
|
- name: Dashboard Build
|
|
19
19
|
run: |
|
|
@@ -70,7 +70,7 @@ jobs:
|
|
|
70
70
|
needs: build-and-publish-to-github-release
|
|
71
71
|
steps:
|
|
72
72
|
- name: Checkout repository
|
|
73
|
-
uses: actions/checkout@
|
|
73
|
+
uses: actions/checkout@v6
|
|
74
74
|
|
|
75
75
|
- name: Set up Python
|
|
76
76
|
uses: actions/setup-python@v6
|
|
@@ -56,7 +56,7 @@ jobs:
|
|
|
56
56
|
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
|
|
57
57
|
steps:
|
|
58
58
|
- name: Checkout repository
|
|
59
|
-
uses: actions/checkout@
|
|
59
|
+
uses: actions/checkout@v6
|
|
60
60
|
|
|
61
61
|
# Initializes the CodeQL tools for scanning.
|
|
62
62
|
- name: Initialize CodeQL
|
|
@@ -20,7 +20,7 @@ jobs:
|
|
|
20
20
|
|
|
21
21
|
steps:
|
|
22
22
|
- name: Checkout
|
|
23
|
-
uses: actions/checkout@
|
|
23
|
+
uses: actions/checkout@v6
|
|
24
24
|
with:
|
|
25
25
|
fetch-depth: 1
|
|
26
26
|
fetch-tag: true
|
|
@@ -113,12 +113,12 @@ jobs:
|
|
|
113
113
|
runs-on: ubuntu-latest
|
|
114
114
|
env:
|
|
115
115
|
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
|
|
116
|
-
GHCR_OWNER:
|
|
116
|
+
GHCR_OWNER: soulter
|
|
117
117
|
HAS_GHCR_TOKEN: ${{ secrets.GHCR_GITHUB_TOKEN != '' }}
|
|
118
118
|
|
|
119
119
|
steps:
|
|
120
120
|
- name: Checkout
|
|
121
|
-
uses: actions/checkout@
|
|
121
|
+
uses: actions/checkout@v6
|
|
122
122
|
with:
|
|
123
123
|
fetch-depth: 1
|
|
124
124
|
fetch-tag: true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: AstrBot
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.7.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
|
|
@@ -93,7 +93,7 @@ Description-Content-Type: text/markdown
|
|
|
93
93
|
<a href="https://github.com/AstrBotDevs/AstrBot/issues">问题提交</a>
|
|
94
94
|
</div>
|
|
95
95
|
|
|
96
|
-
AstrBot 是一个开源的一站式 Agent
|
|
96
|
+
AstrBot 是一个开源的一站式 Agent 聊天机器人平台,可无缝接入主流即时通讯软件,为个人、开发者和团队打造可靠、可扩展的对话式智能基础设施。无论是个人 AI 伙伴、智能客服、自动化助手,还是企业知识库,AstrBot 都能在你的即时通讯软件平台的工作流中快速构建生产可用的 AI 应用。
|
|
97
97
|
|
|
98
98
|
## 主要功能
|
|
99
99
|
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<a href="https://github.com/AstrBotDevs/AstrBot/issues">问题提交</a>
|
|
33
33
|
</div>
|
|
34
34
|
|
|
35
|
-
AstrBot 是一个开源的一站式 Agent
|
|
35
|
+
AstrBot 是一个开源的一站式 Agent 聊天机器人平台,可无缝接入主流即时通讯软件,为个人、开发者和团队打造可靠、可扩展的对话式智能基础设施。无论是个人 AI 伙伴、智能客服、自动化助手,还是企业知识库,AstrBot 都能在你的即时通讯软件平台的工作流中快速构建生产可用的 AI 应用。
|
|
36
36
|
|
|
37
37
|
## 主要功能
|
|
38
38
|
|
|
@@ -2,13 +2,12 @@ import abc
|
|
|
2
2
|
import typing as T
|
|
3
3
|
from enum import Enum, auto
|
|
4
4
|
|
|
5
|
-
from astrbot
|
|
5
|
+
from astrbot import logger
|
|
6
6
|
from astrbot.core.provider.entities import LLMResponse
|
|
7
7
|
|
|
8
8
|
from ..hooks import BaseAgentRunHooks
|
|
9
9
|
from ..response import AgentResponse
|
|
10
10
|
from ..run_context import ContextWrapper, TContext
|
|
11
|
-
from ..tool_executor import BaseFunctionToolExecutor
|
|
12
11
|
|
|
13
12
|
|
|
14
13
|
class AgentState(Enum):
|
|
@@ -24,9 +23,7 @@ class BaseAgentRunner(T.Generic[TContext]):
|
|
|
24
23
|
@abc.abstractmethod
|
|
25
24
|
async def reset(
|
|
26
25
|
self,
|
|
27
|
-
provider: Provider,
|
|
28
26
|
run_context: ContextWrapper[TContext],
|
|
29
|
-
tool_executor: BaseFunctionToolExecutor[TContext],
|
|
30
27
|
agent_hooks: BaseAgentRunHooks[TContext],
|
|
31
28
|
**kwargs: T.Any,
|
|
32
29
|
) -> None:
|
|
@@ -60,3 +57,9 @@ class BaseAgentRunner(T.Generic[TContext]):
|
|
|
60
57
|
This method should be called after the agent is done.
|
|
61
58
|
"""
|
|
62
59
|
...
|
|
60
|
+
|
|
61
|
+
def _transition_state(self, new_state: AgentState) -> None:
|
|
62
|
+
"""Transition the agent state."""
|
|
63
|
+
if self._state != new_state:
|
|
64
|
+
logger.debug(f"Agent state transition: {self._state} -> {new_state}")
|
|
65
|
+
self._state = new_state
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import base64
|
|
2
|
+
import json
|
|
3
|
+
import sys
|
|
4
|
+
import typing as T
|
|
5
|
+
|
|
6
|
+
import astrbot.core.message.components as Comp
|
|
7
|
+
from astrbot import logger
|
|
8
|
+
from astrbot.core import sp
|
|
9
|
+
from astrbot.core.message.message_event_result import MessageChain
|
|
10
|
+
from astrbot.core.provider.entities import (
|
|
11
|
+
LLMResponse,
|
|
12
|
+
ProviderRequest,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
from ...hooks import BaseAgentRunHooks
|
|
16
|
+
from ...response import AgentResponseData
|
|
17
|
+
from ...run_context import ContextWrapper, TContext
|
|
18
|
+
from ..base import AgentResponse, AgentState, BaseAgentRunner
|
|
19
|
+
from .coze_api_client import CozeAPIClient
|
|
20
|
+
|
|
21
|
+
if sys.version_info >= (3, 12):
|
|
22
|
+
from typing import override
|
|
23
|
+
else:
|
|
24
|
+
from typing_extensions import override
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class CozeAgentRunner(BaseAgentRunner[TContext]):
|
|
28
|
+
"""Coze Agent Runner"""
|
|
29
|
+
|
|
30
|
+
@override
|
|
31
|
+
async def reset(
|
|
32
|
+
self,
|
|
33
|
+
request: ProviderRequest,
|
|
34
|
+
run_context: ContextWrapper[TContext],
|
|
35
|
+
agent_hooks: BaseAgentRunHooks[TContext],
|
|
36
|
+
provider_config: dict,
|
|
37
|
+
**kwargs: T.Any,
|
|
38
|
+
) -> None:
|
|
39
|
+
self.req = request
|
|
40
|
+
self.streaming = kwargs.get("streaming", False)
|
|
41
|
+
self.final_llm_resp = None
|
|
42
|
+
self._state = AgentState.IDLE
|
|
43
|
+
self.agent_hooks = agent_hooks
|
|
44
|
+
self.run_context = run_context
|
|
45
|
+
|
|
46
|
+
self.api_key = provider_config.get("coze_api_key", "")
|
|
47
|
+
if not self.api_key:
|
|
48
|
+
raise Exception("Coze API Key 不能为空。")
|
|
49
|
+
self.bot_id = provider_config.get("bot_id", "")
|
|
50
|
+
if not self.bot_id:
|
|
51
|
+
raise Exception("Coze Bot ID 不能为空。")
|
|
52
|
+
self.api_base: str = provider_config.get("coze_api_base", "https://api.coze.cn")
|
|
53
|
+
|
|
54
|
+
if not isinstance(self.api_base, str) or not self.api_base.startswith(
|
|
55
|
+
("http://", "https://"),
|
|
56
|
+
):
|
|
57
|
+
raise Exception(
|
|
58
|
+
"Coze API Base URL 格式不正确,必须以 http:// 或 https:// 开头。",
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
self.timeout = provider_config.get("timeout", 120)
|
|
62
|
+
if isinstance(self.timeout, str):
|
|
63
|
+
self.timeout = int(self.timeout)
|
|
64
|
+
self.auto_save_history = provider_config.get("auto_save_history", True)
|
|
65
|
+
|
|
66
|
+
# 创建 API 客户端
|
|
67
|
+
self.api_client = CozeAPIClient(api_key=self.api_key, api_base=self.api_base)
|
|
68
|
+
|
|
69
|
+
# 会话相关缓存
|
|
70
|
+
self.file_id_cache: dict[str, dict[str, str]] = {}
|
|
71
|
+
|
|
72
|
+
@override
|
|
73
|
+
async def step(self):
|
|
74
|
+
"""
|
|
75
|
+
执行 Coze Agent 的一个步骤
|
|
76
|
+
"""
|
|
77
|
+
if not self.req:
|
|
78
|
+
raise ValueError("Request is not set. Please call reset() first.")
|
|
79
|
+
|
|
80
|
+
if self._state == AgentState.IDLE:
|
|
81
|
+
try:
|
|
82
|
+
await self.agent_hooks.on_agent_begin(self.run_context)
|
|
83
|
+
except Exception as e:
|
|
84
|
+
logger.error(f"Error in on_agent_begin hook: {e}", exc_info=True)
|
|
85
|
+
|
|
86
|
+
# 开始处理,转换到运行状态
|
|
87
|
+
self._transition_state(AgentState.RUNNING)
|
|
88
|
+
|
|
89
|
+
try:
|
|
90
|
+
# 执行 Coze 请求并处理结果
|
|
91
|
+
async for response in self._execute_coze_request():
|
|
92
|
+
yield response
|
|
93
|
+
except Exception as e:
|
|
94
|
+
logger.error(f"Coze 请求失败:{str(e)}")
|
|
95
|
+
self._transition_state(AgentState.ERROR)
|
|
96
|
+
self.final_llm_resp = LLMResponse(
|
|
97
|
+
role="err", completion_text=f"Coze 请求失败:{str(e)}"
|
|
98
|
+
)
|
|
99
|
+
yield AgentResponse(
|
|
100
|
+
type="err",
|
|
101
|
+
data=AgentResponseData(
|
|
102
|
+
chain=MessageChain().message(f"Coze 请求失败:{str(e)}")
|
|
103
|
+
),
|
|
104
|
+
)
|
|
105
|
+
finally:
|
|
106
|
+
await self.api_client.close()
|
|
107
|
+
|
|
108
|
+
@override
|
|
109
|
+
async def step_until_done(
|
|
110
|
+
self, max_step: int = 30
|
|
111
|
+
) -> T.AsyncGenerator[AgentResponse, None]:
|
|
112
|
+
while not self.done():
|
|
113
|
+
async for resp in self.step():
|
|
114
|
+
yield resp
|
|
115
|
+
|
|
116
|
+
async def _execute_coze_request(self):
|
|
117
|
+
"""执行 Coze 请求的核心逻辑"""
|
|
118
|
+
prompt = self.req.prompt or ""
|
|
119
|
+
session_id = self.req.session_id or "unknown"
|
|
120
|
+
image_urls = self.req.image_urls or []
|
|
121
|
+
contexts = self.req.contexts or []
|
|
122
|
+
system_prompt = self.req.system_prompt
|
|
123
|
+
|
|
124
|
+
# 用户ID参数
|
|
125
|
+
user_id = session_id
|
|
126
|
+
|
|
127
|
+
# 获取或创建会话ID
|
|
128
|
+
conversation_id = await sp.get_async(
|
|
129
|
+
scope="umo",
|
|
130
|
+
scope_id=user_id,
|
|
131
|
+
key="coze_conversation_id",
|
|
132
|
+
default="",
|
|
133
|
+
)
|
|
134
|
+
|
|
135
|
+
# 构建消息
|
|
136
|
+
additional_messages = []
|
|
137
|
+
|
|
138
|
+
if system_prompt:
|
|
139
|
+
if not self.auto_save_history or not conversation_id:
|
|
140
|
+
additional_messages.append(
|
|
141
|
+
{
|
|
142
|
+
"role": "system",
|
|
143
|
+
"content": system_prompt,
|
|
144
|
+
"content_type": "text",
|
|
145
|
+
},
|
|
146
|
+
)
|
|
147
|
+
|
|
148
|
+
# 处理历史上下文
|
|
149
|
+
if not self.auto_save_history and contexts:
|
|
150
|
+
for ctx in contexts:
|
|
151
|
+
if isinstance(ctx, dict) and "role" in ctx and "content" in ctx:
|
|
152
|
+
# 处理上下文中的图片
|
|
153
|
+
content = ctx["content"]
|
|
154
|
+
if isinstance(content, list):
|
|
155
|
+
# 多模态内容,需要处理图片
|
|
156
|
+
processed_content = []
|
|
157
|
+
for item in content:
|
|
158
|
+
if isinstance(item, dict):
|
|
159
|
+
if item.get("type") == "text":
|
|
160
|
+
processed_content.append(item)
|
|
161
|
+
elif item.get("type") == "image_url":
|
|
162
|
+
# 处理图片上传
|
|
163
|
+
try:
|
|
164
|
+
image_data = item.get("image_url", {})
|
|
165
|
+
url = image_data.get("url", "")
|
|
166
|
+
if url:
|
|
167
|
+
file_id = (
|
|
168
|
+
await self._download_and_upload_image(
|
|
169
|
+
url, session_id
|
|
170
|
+
)
|
|
171
|
+
)
|
|
172
|
+
processed_content.append(
|
|
173
|
+
{
|
|
174
|
+
"type": "file",
|
|
175
|
+
"file_id": file_id,
|
|
176
|
+
"file_url": url,
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
except Exception as e:
|
|
180
|
+
logger.warning(f"处理上下文图片失败: {e}")
|
|
181
|
+
continue
|
|
182
|
+
|
|
183
|
+
if processed_content:
|
|
184
|
+
additional_messages.append(
|
|
185
|
+
{
|
|
186
|
+
"role": ctx["role"],
|
|
187
|
+
"content": processed_content,
|
|
188
|
+
"content_type": "object_string",
|
|
189
|
+
}
|
|
190
|
+
)
|
|
191
|
+
else:
|
|
192
|
+
# 纯文本内容
|
|
193
|
+
additional_messages.append(
|
|
194
|
+
{
|
|
195
|
+
"role": ctx["role"],
|
|
196
|
+
"content": content,
|
|
197
|
+
"content_type": "text",
|
|
198
|
+
}
|
|
199
|
+
)
|
|
200
|
+
|
|
201
|
+
# 构建当前消息
|
|
202
|
+
if prompt or image_urls:
|
|
203
|
+
if image_urls:
|
|
204
|
+
# 多模态
|
|
205
|
+
object_string_content = []
|
|
206
|
+
if prompt:
|
|
207
|
+
object_string_content.append({"type": "text", "text": prompt})
|
|
208
|
+
|
|
209
|
+
for url in image_urls:
|
|
210
|
+
# the url is a base64 string
|
|
211
|
+
try:
|
|
212
|
+
image_data = base64.b64decode(url)
|
|
213
|
+
file_id = await self.api_client.upload_file(image_data)
|
|
214
|
+
object_string_content.append(
|
|
215
|
+
{
|
|
216
|
+
"type": "image",
|
|
217
|
+
"file_id": file_id,
|
|
218
|
+
}
|
|
219
|
+
)
|
|
220
|
+
except Exception as e:
|
|
221
|
+
logger.warning(f"处理图片失败 {url}: {e}")
|
|
222
|
+
continue
|
|
223
|
+
|
|
224
|
+
if object_string_content:
|
|
225
|
+
content = json.dumps(object_string_content, ensure_ascii=False)
|
|
226
|
+
additional_messages.append(
|
|
227
|
+
{
|
|
228
|
+
"role": "user",
|
|
229
|
+
"content": content,
|
|
230
|
+
"content_type": "object_string",
|
|
231
|
+
}
|
|
232
|
+
)
|
|
233
|
+
elif prompt:
|
|
234
|
+
# 纯文本
|
|
235
|
+
additional_messages.append(
|
|
236
|
+
{
|
|
237
|
+
"role": "user",
|
|
238
|
+
"content": prompt,
|
|
239
|
+
"content_type": "text",
|
|
240
|
+
},
|
|
241
|
+
)
|
|
242
|
+
|
|
243
|
+
# 执行 Coze API 请求
|
|
244
|
+
accumulated_content = ""
|
|
245
|
+
message_started = False
|
|
246
|
+
|
|
247
|
+
async for chunk in self.api_client.chat_messages(
|
|
248
|
+
bot_id=self.bot_id,
|
|
249
|
+
user_id=user_id,
|
|
250
|
+
additional_messages=additional_messages,
|
|
251
|
+
conversation_id=conversation_id,
|
|
252
|
+
auto_save_history=self.auto_save_history,
|
|
253
|
+
stream=True,
|
|
254
|
+
timeout=self.timeout,
|
|
255
|
+
):
|
|
256
|
+
event_type = chunk.get("event")
|
|
257
|
+
data = chunk.get("data", {})
|
|
258
|
+
|
|
259
|
+
if event_type == "conversation.chat.created":
|
|
260
|
+
if isinstance(data, dict) and "conversation_id" in data:
|
|
261
|
+
await sp.put_async(
|
|
262
|
+
scope="umo",
|
|
263
|
+
scope_id=user_id,
|
|
264
|
+
key="coze_conversation_id",
|
|
265
|
+
value=data["conversation_id"],
|
|
266
|
+
)
|
|
267
|
+
|
|
268
|
+
if event_type == "conversation.message.delta":
|
|
269
|
+
# 增量消息
|
|
270
|
+
content = data.get("content", "")
|
|
271
|
+
if not content and "delta" in data:
|
|
272
|
+
content = data["delta"].get("content", "")
|
|
273
|
+
if not content and "text" in data:
|
|
274
|
+
content = data.get("text", "")
|
|
275
|
+
|
|
276
|
+
if content:
|
|
277
|
+
accumulated_content += content
|
|
278
|
+
message_started = True
|
|
279
|
+
|
|
280
|
+
# 如果是流式响应,发送增量数据
|
|
281
|
+
if self.streaming:
|
|
282
|
+
yield AgentResponse(
|
|
283
|
+
type="streaming_delta",
|
|
284
|
+
data=AgentResponseData(
|
|
285
|
+
chain=MessageChain().message(content)
|
|
286
|
+
),
|
|
287
|
+
)
|
|
288
|
+
|
|
289
|
+
elif event_type == "conversation.message.completed":
|
|
290
|
+
# 消息完成
|
|
291
|
+
logger.debug("Coze message completed")
|
|
292
|
+
message_started = True
|
|
293
|
+
|
|
294
|
+
elif event_type == "conversation.chat.completed":
|
|
295
|
+
# 对话完成
|
|
296
|
+
logger.debug("Coze chat completed")
|
|
297
|
+
break
|
|
298
|
+
|
|
299
|
+
elif event_type == "error":
|
|
300
|
+
# 错误处理
|
|
301
|
+
error_msg = data.get("msg", "未知错误")
|
|
302
|
+
error_code = data.get("code", "UNKNOWN")
|
|
303
|
+
logger.error(f"Coze 出现错误: {error_code} - {error_msg}")
|
|
304
|
+
raise Exception(f"Coze 出现错误: {error_code} - {error_msg}")
|
|
305
|
+
|
|
306
|
+
if not message_started and not accumulated_content:
|
|
307
|
+
logger.warning("Coze 未返回任何内容")
|
|
308
|
+
accumulated_content = ""
|
|
309
|
+
|
|
310
|
+
# 创建最终响应
|
|
311
|
+
chain = MessageChain(chain=[Comp.Plain(accumulated_content)])
|
|
312
|
+
self.final_llm_resp = LLMResponse(role="assistant", result_chain=chain)
|
|
313
|
+
self._transition_state(AgentState.DONE)
|
|
314
|
+
|
|
315
|
+
try:
|
|
316
|
+
await self.agent_hooks.on_agent_done(self.run_context, self.final_llm_resp)
|
|
317
|
+
except Exception as e:
|
|
318
|
+
logger.error(f"Error in on_agent_done hook: {e}", exc_info=True)
|
|
319
|
+
|
|
320
|
+
# 返回最终结果
|
|
321
|
+
yield AgentResponse(
|
|
322
|
+
type="llm_result",
|
|
323
|
+
data=AgentResponseData(chain=chain),
|
|
324
|
+
)
|
|
325
|
+
|
|
326
|
+
async def _download_and_upload_image(
|
|
327
|
+
self,
|
|
328
|
+
image_url: str,
|
|
329
|
+
session_id: str | None = None,
|
|
330
|
+
) -> str:
|
|
331
|
+
"""下载图片并上传到 Coze,返回 file_id"""
|
|
332
|
+
import hashlib
|
|
333
|
+
|
|
334
|
+
# 计算哈希实现缓存
|
|
335
|
+
cache_key = hashlib.md5(image_url.encode("utf-8")).hexdigest()
|
|
336
|
+
|
|
337
|
+
if session_id:
|
|
338
|
+
if session_id not in self.file_id_cache:
|
|
339
|
+
self.file_id_cache[session_id] = {}
|
|
340
|
+
|
|
341
|
+
if cache_key in self.file_id_cache[session_id]:
|
|
342
|
+
file_id = self.file_id_cache[session_id][cache_key]
|
|
343
|
+
logger.debug(f"[Coze] 使用缓存的 file_id: {file_id}")
|
|
344
|
+
return file_id
|
|
345
|
+
|
|
346
|
+
try:
|
|
347
|
+
image_data = await self.api_client.download_image(image_url)
|
|
348
|
+
file_id = await self.api_client.upload_file(image_data)
|
|
349
|
+
|
|
350
|
+
if session_id:
|
|
351
|
+
self.file_id_cache[session_id][cache_key] = file_id
|
|
352
|
+
logger.debug(f"[Coze] 图片上传成功并缓存,file_id: {file_id}")
|
|
353
|
+
|
|
354
|
+
return file_id
|
|
355
|
+
|
|
356
|
+
except Exception as e:
|
|
357
|
+
logger.error(f"处理图片失败 {image_url}: {e!s}")
|
|
358
|
+
raise Exception(f"处理图片失败: {e!s}")
|
|
359
|
+
|
|
360
|
+
@override
|
|
361
|
+
def done(self) -> bool:
|
|
362
|
+
"""检查 Agent 是否已完成工作"""
|
|
363
|
+
return self._state in (AgentState.DONE, AgentState.ERROR)
|
|
364
|
+
|
|
365
|
+
@override
|
|
366
|
+
def get_final_llm_resp(self) -> LLMResponse | None:
|
|
367
|
+
return self.final_llm_resp
|