deepseek/agent/mod.rs
1//! Claude-Code-shaped agent loop for DeepSeek.
2//!
3//! See <https://code.claude.com/docs/en/agent-sdk/agent-loop>. The crate-level
4//! re-exports give you:
5//!
6//! - [`run`] — the core function that returns a stream of [`SdkMessage`].
7//! - [`AgentBuilder`] / [`DeepSeekAgent`] — back-compat builder API.
8//! - [`Tool`] / [`ToolDefinition`] — extend with custom tools.
9//! - [`RunOptions`], [`PermissionMode`], [`PreToolHook`] — control the loop.
10//!
11//! With the `builtin-tools` feature enabled, [`builtin_tools::default_tools`]
12//! returns Read / Write / Edit / Glob / Grep / Bash ready to plug in.
13
14pub mod builder;
15pub mod loop_runner;
16pub mod messages;
17pub mod options;
18pub mod permissions;
19pub mod pricing;
20pub mod tool;
21
22#[cfg(feature = "builtin-tools")]
23pub mod builtin_tools;
24
25#[cfg(feature = "scheduler")]
26pub mod scheduler;
27
28pub use builder::{AgentBuilder, DeepSeekAgent};
29pub use loop_runner::run;
30pub use messages::{ContentBlock, ResultSubtype, SdkMessage, SystemSubtype};
31pub use options::{CompactionConfig, RunOptions};
32pub use permissions::{PermissionDecision, PermissionMode, PreToolHook};
33pub use tool::{Tool, ToolDefinition};