Pixir.Provider.OutputTruncationSummary (pixir v0.1.12)

Copy Markdown View Source

Pure bounded projections of canonical Provider-output truncation evidence.

This module is shared by diagnostics and replay inspection so historical and malformed evidence receives the same tri-state interpretation. It never rewrites History and keeps only the most recent 64 positive references.

Summary

Functions

Validate positive assistant metadata used only as presentation fallback.

Return the bounded model-context warning suffix for a terminal child summary.

Normalize a Presenter correlation object without accepting malformed keys.

Normalize bounded child-output warning aggregates at a Presenter boundary.

Project one canonical usage Event with validated correlation fields.

Summarize successful provider_usage calls in the supplied History scope.

Build one bounded machine warning from valid positive canonical evidence.

Functions

assistant_fallback(arg1)

@spec assistant_fallback(map()) :: {:ok, map(), map()} | :error

Validate positive assistant metadata used only as presentation fallback.

child_context_suffix(data)

@spec child_context_suffix(map()) :: String.t()

Return the bounded model-context warning suffix for a terminal child summary.

correlated_projection(nested)

@spec correlated_projection(map()) :: {:ok, map()} | :error

Normalize a Presenter correlation object without accepting malformed keys.

normalize_child_output(data)

@spec normalize_child_output(map()) :: map()

Normalize bounded child-output warning aggregates at a Presenter boundary.

project(arg1)

@spec project(map()) :: map()

Project one canonical usage Event with validated correlation fields.

summarize(history)

@spec summarize([map()]) :: map()

Summarize successful provider_usage calls in the supplied History scope.

warning(event)

@spec warning(map()) :: map() | nil

Build one bounded machine warning from valid positive canonical evidence.