Skip to main content

ds_api/agent/
mod.rs

1/*!
2Agent module (refactored)
3
4This module splits the previous single-file `agent` implementation into two focused
5submodules:
6
7- `agent_core` — the core agent struct, public response/event types and tool
8  registration logic.
9- `stream` — the asynchronous `AgentStream` state machine that drives API calls
10  and tool execution.
11
12We re-export the primary public types here so the crate-level API remains stable:
13callers can continue to use `ds_api::DeepseekAgent`, `ds_api::AgentResponse`,
14and `ds_api::ToolCallEvent`.
15*/
16
17pub mod agent_core;
18pub mod stream;
19
20pub use agent_core::{AgentResponse, DeepseekAgent, ToolCallEvent};
21pub use stream::AgentStream;