Skip to main content

Module agent

Module agent 

Source
Expand description

Agent module (refactored)

This module splits the previous single-file agent implementation into two focused submodules:

  • agent_core — the core agent struct, public response/event types and tool registration logic.
  • stream — the asynchronous AgentStream state machine that drives API calls and tool execution.

We re-export the primary public types here so the crate-level API remains stable: callers can continue to use ds_api::DeepseekAgent, ds_api::AgentResponse, and ds_api::ToolCallEvent.

Re-exports§

pub use agent_core::AgentResponse;
pub use agent_core::DeepseekAgent;
pub use agent_core::ToolCallEvent;
pub use stream::AgentStream;

Modules§

agent_core
stream