Files
qiming/qiming-rcoder/crates/agent_runner/src/lib.rs
2026-06-01 13:54:52 +08:00

38 lines
941 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//! agent_runner 库
//!
//! 提供 AI 代理运行时和 ACP 协议集成
pub mod agent_runtime;
pub mod api_key_manager;
mod config;
pub mod grpc;
mod handler;
mod model;
pub mod otel_tracing; // 🔥 设为 public供其他模块使用
mod proxy_agent;
pub mod router;
pub mod service; // 🔥 设为 public供测试使用
mod utils;
// 条件性编译HTTP 服务器模块
#[cfg(feature = "http-server")]
pub mod http_server;
// 测试辅助模块 (仅在 testing feature 启用时编译)
#[cfg(feature = "testing")]
pub mod testing;
// 重新导出主要的类型和函数
pub use agent_runtime::*;
pub use config::*;
pub use model::*;
pub use otel_tracing::*;
pub use proxy_agent::*;
pub use service::*; // 重新导出 service 模块
pub use utils::*;
#[cfg(feature = "http-server")]
pub use http_server::start::HttpServerHandle;
#[cfg(feature = "http-server")]
pub use http_server::{HttpServerConfig, start_http_server};