pub struct PipelineReport {
pub truncation: TruncationReport,
pub sampling: SamplingDecision,
pub effort_suppressed: Option<SuppressedEffort>,
}Expand description
What the pipeline did, for the caller that has to report or verify it.
Both halves were previously unavailable in different ways: truncation was
returned bare, and sampling was not returned at all — it went into a
debug! and nowhere else. Bundling them keeps one return value as stages
gain things worth saying.
Fields§
§truncation: TruncationReportStage 3. Zeroed when budget_chars was None — the request was
shaped but never measured.
sampling: SamplingDecisionStages 4–5. See SamplingDecision.
effort_suppressed: Option<SuppressedEffort>Stage 5b. Some when a resolved reasoning_effort was thrown away
because the model’s observed template does not read it.
It lives here rather than on SamplingDecision because that type is
what resolve_sampling decided, and this is what a later stage did
to it — the same relationship truncation has to
stage 3. The decision is not left lying, though: stage 5b rewrites its
resolved and sources in place, so a consumer holding only the
SamplingDecision (the dashboard, the audit) still sees the value gone
and its provenance reading
SuppressedByTemplate.
What only this field adds is the level that was dropped and the rung
that asked for it.
Trait Implementations§
Source§impl Clone for PipelineReport
impl Clone for PipelineReport
Source§fn clone(&self) -> PipelineReport
fn clone(&self) -> PipelineReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PipelineReport
impl Debug for PipelineReport
Source§impl PartialEq for PipelineReport
impl PartialEq for PipelineReport
Source§fn eq(&self, other: &PipelineReport) -> bool
fn eq(&self, other: &PipelineReport) -> bool
self and other values to be equal, and is used by ==.