PtcRunner.Kernel.InspectionArtifact.Conversation (PtcRunner v0.15.0)

Copy Markdown View Source

Digest-based turn reconstruction that never retains evidence payloads.

Prefix matching hashes the comparable form of the current request's messages against stored complete-message digests from earlier completed exchanges. In-flight request messages are staged only until the matching output arrives.

Summary

Types

node_row()

@type node_row() :: %{
  complete_hash: binary(),
  complete_count: non_neg_integer(),
  stream_id: binary(),
  turn: pos_integer()
}

Functions

assemble_turn(turn_meta, input, output, generated)

@spec assemble_turn(map(), map(), map(), [map()]) :: map()

finish(state, trace_facts)

@spec finish(map(), map()) :: map()

new()

@spec new() :: map()

observe_input(state, record)

@spec observe_input(map(), map()) :: map()

observe_output(state, record)

@spec observe_output(map(), map()) :: map()

observe_source(state, record)

@spec observe_source(map(), map()) :: map()