pub struct ToolResponseInput<'a> {
pub tool_call_id: &'a str,
pub tool_name: &'a str,
pub file_path: Option<&'a str>,
pub content: &'a str,
pub is_sidechain: bool,
pub ts_ms: i64,
pub enricher_prefetched: bool,
pub enricher_predicted_cost_tokens: u32,
}Expand description
Input to LayeredPipeline::process.
Fields§
§tool_call_id: &'a strRaw tool_use_id from the MCP server (we hash it internally before
storing in cache or emitting in hints).
tool_name: &'a strTool name — used for endpoint classification and ToolKind lookup.
file_path: Option<&'a str>Primary file path argument for file-operating tools (Read, Edit, …).
Hashed internally for cache invalidation.
content: &'a strRaw response bytes.
is_sidechain: boolTrue for subagent (sidechain) responses.
ts_ms: i64Unix milliseconds when the response was produced.
enricher_prefetched: boolPaper 3 — true when this response landed via the speculative
pre-fetch dispatcher (host called the tool ahead of the LLM
asking). Sets PipelineEvent.enricher_prefetched so the
offline post-pass can attribute citations.
Default false — the LLM emitted the call directly.
enricher_predicted_cost_tokens: u32Paper 3 — cost_model.typical_kb-derived prediction (in
tokens) that the planner committed to when admitting this
call. 0 when not a prefetch (LLM-emitted) — the cost-overrun
rate denominator skips events with enricher_predicted_cost_tokens = 0.
Trait Implementations§
Source§impl<'a> Clone for ToolResponseInput<'a>
impl<'a> Clone for ToolResponseInput<'a>
Source§fn clone(&self) -> ToolResponseInput<'a>
fn clone(&self) -> ToolResponseInput<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more