Files
DevFlow/crates/df-ai/src/provider.rs
T

16 lines
889 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.
//! LLM Provider trait + 数据结构 re-export
//!
//! trait 与数据结构定义已下沉到 df-ai-core crate(零 HTTP 依赖,轻消费方
//! 如 df-ideas 可直接依赖 trait 不引入 reqwest/eventsource-stream)。
//! 本文件保留为 df-ai 的 re-export 入口,使 `df_ai::provider::*` 路径不变
//! —— df-ai 内部模块(openai_compat / anthropic_compat / context / ai_tools)
//! 与外部消费方(df-nodes / src-tauri)的 `use df_ai::provider::LlmProvider`
//! 等引用全部透明继续可用(编译期验证)。
//!
//! 留在 df-ai 的部分:
//! - `OpenAICompatProvider` / `AnthropicCompatProvider`(HTTP impl,见 openai_compat.rs / anthropic_compat.rs)
//! - `build_provider()` 工厂(见 lib.rs,按协议选 impl)
//! - `ContextManager` / `AiToolRegistry` / `StreamCollector`(业务逻辑)
pub use df_ai_core::provider::*;