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
//! Agent loop — the core execution engine for phi-core agents.
//!
//! This module is split into focused sub-modules:
//! - [`config`] — Hook type aliases and `AgentLoopConfig`
//! - [`core`] — Entry points: `agent_loop`, `agent_loop_continue`
//! - [`run`] — Core turn engine (`run_loop`)
//! - [`streaming`] — LLM response streaming
//! - [`tools`] — Tool execution pipeline
//! - [`parallel`] — Evaluational parallelism (`agent_loop_parallel`)
//! - [`evaluation`] — Pluggable evaluation strategies for parallel branch selection
//! - [`helpers`] — Utilities (input filters, config derivation, etc.)
// ── Public re-exports ────────────────────────────────────────────────────────
// Hook types + config struct
pub use *;
// Primary entry points
pub use ;
// Parallel evaluation
pub use agent_loop_parallel;
// Evaluation strategies
pub use ;
// Internal utility — used by parallel.rs via super::, kept pub(crate) for future BasicAgent use
pub use derive_config_segment;