Skip to main content

Crate flow_adapter_ai

Crate flow_adapter_ai 

Source
Expand description

flow-adapter-ai - the AI provider adapter for Flow (Claude / OpenAI / Gemini cloud providers plus the on-device local OpenAI-compatible server).

Backs the unified ai node type. Cloud providers leave the user’s machine - by design, gated by allow_cloud_ai - while the local provider stays on-device. See docs/architecture/isolation-boundaries.md for the security implications and docs/adr/0006-unified-ai-node.md for the intentional carve-out from the otherwise-zero-egress posture.

Re-exports§

pub use error::CloudAiError;
pub use providers::claude::ClaudeProvider;
pub use providers::deepseek::DeepSeekProvider;
pub use providers::gemini::GeminiProvider;
pub use providers::local::local_chat_url;
pub use providers::local::local_models_url;
pub use providers::local::normalize_local_base;
pub use providers::local::LocalOpenAiProvider;
pub use providers::nvidia::NvidiaProvider;
pub use providers::openai::OpenAiProvider;
pub use registry::CloudAiProvider;
pub use registry::CloudAiRegistry;
pub use registry::ProviderCategory;
pub use request::CloudAiRequest;
pub use request::CloudAiResponse;
pub use request::EmbeddingResponse;
pub use request::ToolDispatcher;
pub use request::ToolSpec;
pub use stream::LlmStreamEvent;
pub use stream::LlmStreamSink;
pub use stream::NullStreamSink;

Modules§

error
providers
registry
request
stream
LLM token streaming.