chore: 提交所有工作进度 — SaaS 后端增强、Admin UI、桌面端集成
包含大量 SaaS 平台改进、Admin 管理后台更新、桌面端集成完善、 文档同步、测试文件重构等内容。为 QA 测试准备干净工作树。
This commit is contained in:
@@ -4,22 +4,14 @@
|
||||
//! enabling automatic memory retrieval before conversations and memory extraction
|
||||
//! after conversations.
|
||||
//!
|
||||
//! # Usage
|
||||
//! **Note (2026-03-27 audit)**: In the Tauri desktop deployment, this module is
|
||||
//! NOT wired into the Kernel. The intelligence_hooks module in desktop/src-tauri
|
||||
//! provides the same functionality (memory retrieval, heartbeat, reflection) via
|
||||
//! direct VikingStorage calls. GrowthIntegration remains available for future
|
||||
//! use (e.g., headless/server deployments where intelligence_hooks is not available).
|
||||
//!
|
||||
//! ```rust,ignore
|
||||
//! use zclaw_runtime::growth::GrowthIntegration;
|
||||
//! use zclaw_growth::{VikingAdapter, MemoryExtractor, MemoryRetriever, PromptInjector};
|
||||
//!
|
||||
//! // Create growth integration
|
||||
//! let viking = Arc::new(VikingAdapter::in_memory());
|
||||
//! let growth = GrowthIntegration::new(viking);
|
||||
//!
|
||||
//! // Before conversation: enhance system prompt
|
||||
//! let enhanced_prompt = growth.enhance_prompt(&agent_id, &base_prompt, &user_input).await?;
|
||||
//!
|
||||
//! // After conversation: extract and store memories
|
||||
//! growth.process_conversation(&agent_id, &messages, session_id).await?;
|
||||
//! ```
|
||||
//! The `AgentLoop.growth` field defaults to `None` and the code gracefully falls
|
||||
//! through to normal behavior when not set.
|
||||
|
||||
use std::sync::Arc;
|
||||
use zclaw_growth::{
|
||||
|
||||
Reference in New Issue
Block a user