Pi.Session.Event (pi_bridge v0.6.22)

Copy Markdown View Source

Structured event emitted by a server-owned Pi session process.

Summary

Types

t()

@type t() :: %Pi.Session.Event{at: DateTime.t(), data: term(), type: type()}

type()

@type type() ::
  :started
  | :llm
  | :message
  | :done
  | :failed
  | :cancelled
  | :agent_job_started
  | :agent_job_finished

Functions

new(type, data \\ nil)