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
43
44
// SPDX-FileCopyrightText: 2026 Andrei G <bug-ops>
// SPDX-License-Identifier: MIT OR Apache-2.0
//! Cross-crate sink trait for LLM request/response debug-dump instrumentation.
//!
//! `zeph-core` owns the concrete debug-dump writer (`DebugDumper`) and the top-level
//! agent loop's `--debug-dump` wiring, but `zeph-subagent` cannot depend on `zeph-core`
//! (the dependency runs the other way). [`DebugDumpSink`] is the minimal contract that
//! lets `zeph-core` hand a dump-writer handle down into `zeph-subagent`'s agent loop —
//! via `SpawnContext`/`AgentLoopArgs` — so sub-agent LLM calls are captured through the
//! same pipeline as top-level calls (#6391).
use crate;
/// Receives LLM request/response pairs for debug-dump instrumentation.
///
/// Implemented by `zeph-core`'s `DebugDumper`. Callers pair each [`dump_request`] with a
/// [`dump_response`] using the returned id.
///
/// [`dump_request`]: DebugDumpSink::dump_request
/// [`dump_response`]: DebugDumpSink::dump_response