-
Notifications
You must be signed in to change notification settings - Fork 9
refactor: 全局世界状态驱动与任务调度重构 #157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MiaowFISH
wants to merge
155
commits into
v3
Choose a base branch
from
dev
base: v3
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 在 ContextBuilder 中引入基于刺激的世界状态构建机制 - 更新 EventListenerManager 以处理多种刺激类型 - 改进智能体刺激及其有效负载的类型定义 - 调整内存管理类以适配新配置与模型处理机制
Docstrings generation was requested by @MiaowFISH. * #157 (comment) The following files were modified: * `packages/core/src/agent/heartbeat-processor.ts` * `packages/core/src/config/migrations.ts` * `packages/core/src/services/extension/decorators.ts`
Merged
📝 Add docstrings to `dev`
- Updated the fetchWebPage and webSearch methods in SearchExtension to use WithSession for argument types. - Modified Tool decorator to accept WithSession type for tool execution. - Refactored BaseModel and ChatModel constructors to remove logger initialization. - Enhanced ChatModel to support abort signals during chat requests. - Updated model configuration to include new ModelType enum and refactored related schemas. - Improved error handling and logging in various memory management classes. - Added README files for new packages: rr3, sticker-manager, tts, and vision-tools. - Ensured all tools and services utilize WithSession for consistent session handling.
…ces and utilities - Updated catch blocks in EventListenerManager, InteractionManager, SemanticMemoryManager, ArchivalMemoryManager, ErrorReporter, and various services to specify error type as 'any'. - Removed esbuild configuration files from daily-planner, favor, mcp, sticker-manager, and tts packages. - Updated package.json scripts in daily-planner, favor, sticker-manager, and tts to use 'tsc -b && dumble' for builds. - Adjusted tsconfig.json files across multiple packages to improve type checking and configuration consistency. - Enhanced error handling in various methods to provide clearer logging and error messages.
…e operations - Added PGliteDriver class for managing database connections and queries. - Implemented support for vector data types in the database schema. - Created methods for table management, including create, drop, and update operations. - Added transaction support for batch operations. - Added tests for connecting to the database and verifying vector support.
- Developed VectorStoreService for managing vector data in Koishi. - Integrated PGliteDriver for database interactions. - Implemented methods for creating, retrieving, and removing vector data.
…ions for vector store
…Sentry integration
…management - Added ModelSwitcher class to handle model selection based on health and strategy. - Introduced ChatModelSwitcher for chat-specific model handling with vision capabilities. - Implemented model health tracking and circuit breaker logic. - Enhanced error handling with ModelError classification. - Updated service and provider instances to integrate new model switching logic. - Created utility functions for external control and batch health checks. - Refactored existing model service code to accommodate new architecture.
Update recommended model to `gemini-3-pro` in plugin usage instructions
…ore and CoreUtilPlugin
Fix baseURL handling and improve model endpoint resolution logic
重构了 `HeartbeatProcessor` 以简化其内部架构,并将模型执行与响应解析逻辑直接整合到心跳主循环中。 - 迁移至 `@yesimbot/shared-model` 以支持更灵活的流式处理 - 删除了 `executeModelChat` 和 `parseAndValidateResponse` 方法以减少抽象层级 - 实现了首字超时(first-token timeout)检测机制,提升了流式响应的稳定性 - 将提示词渲染逻辑移动至重试循环内,确保重试时上下文的实时性 - 强化了流式事件的处理流程,增加了更详细的任务进度日志和 Token 消耗统计
- 重构 PluginService,实现 getTools 方法以统一将插件函数转换为标准工具格式 - 在 HeartbeatProcessor 中集成 generateText,支持非流式响应模式 - 优化工具调用逻辑,支持 toolChoice 配置并完善执行机制
- 将 xsai 相关包提升至 0.4.0-beta.12 版本 - 移除 core 与插件中不再使用的 pack 命令 - 在 shared-model 中分离同步任务并新增打包构建选项
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[Unreleased]
Added
Changed
Removed
Fixed
Summary by CodeRabbit
新功能
缺陷修复
重构
杂项