Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
- 新增 SaaS industry 模块 (types/service/handlers/mod/builtin) - 4 行业内置配置: healthcare/education/garment/ecommerce - 数据库迁移: industries + account_industries 表 - 8 个 API 端点 (CRUD + 用户行业关联) - ButlerRouter 改造: 支持 IndustryKeywordConfig 动态注入 - 12 个测试全通过 (含动态行业分类测试)
38 lines
1.4 KiB
Rust
38 lines
1.4 KiB
Rust
//! ZCLAW Runtime
|
|
//!
|
|
//! LLM drivers, tool system, and agent loop implementation.
|
|
|
|
/// Default User-Agent header sent with all outgoing HTTP requests.
|
|
/// Coding Plan providers (Kimi, Bailian/DashScope, Zhipu) validate the User-Agent against a
|
|
/// whitelist of known Coding Agents (e.g. claude-code, kimi-cli, roo-code, kilo-code).
|
|
/// Must use the exact lowercase format to pass validation.
|
|
pub const USER_AGENT: &str = "claude-code/0.1.0";
|
|
|
|
pub mod driver;
|
|
pub mod tool;
|
|
pub mod loop_runner;
|
|
pub mod loop_guard;
|
|
pub mod stream;
|
|
pub mod growth;
|
|
pub mod compaction;
|
|
pub mod middleware;
|
|
pub mod prompt;
|
|
pub mod nl_schedule;
|
|
|
|
// Re-export main types
|
|
pub use driver::{
|
|
LlmDriver, CompletionRequest, CompletionResponse, ContentBlock, StopReason,
|
|
ToolDefinition, DriverConfig, AnthropicDriver, OpenAiDriver, GeminiDriver, LocalDriver,
|
|
};
|
|
pub use tool::{Tool, ToolRegistry, ToolContext};
|
|
pub use loop_runner::{AgentLoop, AgentLoopResult, LoopEvent};
|
|
pub use loop_guard::{LoopGuard, LoopGuardConfig, LoopGuardResult};
|
|
pub use stream::{StreamEvent, StreamSender};
|
|
pub use growth::GrowthIntegration;
|
|
pub use zclaw_growth::VikingAdapter;
|
|
pub use zclaw_growth::EmbeddingClient;
|
|
pub use zclaw_growth::LlmDriverForExtraction;
|
|
pub use compaction::{CompactionConfig, CompactionOutcome};
|
|
pub use prompt::{PromptBuilder, PromptContext, PromptSection};
|
|
pub use middleware::butler_router::{ButlerRouterMiddleware, IndustryKeywordConfig};
|