Pi.Session.State (pi_bridge v0.6.22)

Copy Markdown View Source

Semantic state owned by a Pi session process.

Summary

Types

status()

@type status() :: :idle | :running | :done | :failed | :cancelled

t()

@type t() :: %Pi.Session.State{
  error: term(),
  events: [Pi.Session.Event.t()],
  id: String.t(),
  messages: [Pi.Protocol.LLM.Message.t()],
  metadata: map(),
  name: atom() | String.t() | nil,
  parent_id: String.t() | nil,
  result: term(),
  started_at: DateTime.t() | nil,
  status: status(),
  system: String.t() | nil,
  updated_at: DateTime.t() | nil
}

Functions

child(parent, opts \\ [])

new(opts \\ [])