Jidoka.Debug.RequestSummary (Jidoka v0.9.0)

Copy Markdown View Source

Request-level debug summary assembled from Jidoka runtime data.

This is a data-only view. It does not call providers, tools, or runtime capabilities.

Summary

Functions

Builds a request debug summary from normalized attributes.

Builds a request debug summary or raises when the attributes are invalid.

Returns the Zoi schema for request debug summaries.

Types

t()

@type t() :: %Jidoka.Debug.RequestSummary{
  agent_id: nil | nil | binary(),
  content: nil | nil | binary(),
  context_keys: [binary()],
  diagnostics: [any()],
  error: nil | nil | any(),
  input: nil | nil | binary(),
  journal: map(),
  memory: nil | nil | map(),
  metadata: map(),
  model: nil | nil | binary(),
  operation_names: [binary()],
  operation_results: [map()],
  pending_reviews: [map()],
  prompt: map(),
  replay_diagnostics: nil | nil | term(),
  request_id: nil | nil | binary(),
  session_id: nil | nil | binary(),
  status: nil | nil | atom(),
  timeline: [map()],
  usage: map(),
  value: nil | nil | any()
}

Functions

new(attrs)

@spec new(keyword() | map()) :: {:ok, t()} | {:error, term()}

Builds a request debug summary from normalized attributes.

new!(attrs)

@spec new!(keyword() | map()) :: t()

Builds a request debug summary or raises when the attributes are invalid.

schema()

@spec schema() :: Zoi.schema()

Returns the Zoi schema for request debug summaries.