1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! LLM client and planner module.
//!
//! Provides typed interfaces for calling LLMs, parsing structured output,
//! estimating costs, and planning engineering goals.
//!
//! ## Public API
//!
//! - [`LlmClient`] — trait for LLM completion.
//! - [`MockLlmClient`] — in-memory test implementation.
//! - [`WireLlmClient`] — production implementation over the Wire protocol.
//! - [`Planner`] — trait for goal classification, decomposition, and estimation.
//! - [`LlmPlanner`] — LLM-backed planner implementation.
//! - [`MockPlanner`] — configurable test planner.
//! - [`CostEstimator`] — token counting and USD estimation.
//! - [`TokenBudget`] — tracks token consumption against a cap.
//! - [`RetryPolicy`] — exponential-backoff configuration.
//! - [`LlmError`] — structured error enum.
//!
//! ## Module boundaries
//!
//! This module **does not** depend on `runtime::goal`, `cli::goal`, task graphs,
//! proof semantics, or worktree logic. It is a pure LLM-call abstraction.
pub use ;
pub use CostEstimator;
pub use LlmError;
pub use ;
pub use RetryPolicy;
pub use ;