Skip to main content

deepseek/
lib.rs

1pub mod error;
2pub mod types;
3pub mod client;
4
5#[cfg(feature = "reqwest-client")]
6pub mod reqwest_client;
7
8#[cfg(feature = "wasm")]
9pub mod wasm;
10
11#[cfg(feature = "agent")]
12pub mod agent;
13
14#[cfg(feature = "cache")]
15pub mod cache;
16
17// Re-export key types
18pub use error::{DeepSeekError, Result};
19pub use types::*;
20pub use client::{HttpClient, DeepSeekClient, DEFAULT_BASE_URL, build_request};
21
22#[cfg(feature = "reqwest-client")]
23pub use reqwest_client::{ReqwestClient, client_from_env, reason, reason_with_retry};
24
25#[cfg(feature = "wasm")]
26pub use wasm::WasmClient;
27
28#[cfg(feature = "agent")]
29pub use agent::{
30    AgentBuilder, ContentBlock, DeepSeekAgent, PermissionDecision, PermissionMode, PreToolHook,
31    ResultSubtype, RunOptions, SdkMessage, SystemSubtype, Tool, ToolDefinition, run,
32};
33
34#[cfg(feature = "cache")]
35pub use cache::{Cache, InFlightDedup};