Vibe.Tool.Event (vibe v0.2.1)

Copy Markdown View Source

Structured session event payload for tool lifecycle updates.

Summary

Types

status()

@type status() :: :running | :ok | :error | atom() | String.t()

t()

@type t() :: %Vibe.Tool.Event{
  args: term(),
  id: String.t() | nil,
  name: atom() | String.t() | nil,
  output: term(),
  output_format: atom() | nil,
  output_parts: [map()] | nil,
  output_truncation: :head | :tail | nil,
  phase: atom() | nil,
  status: status() | nil
}

Functions

finished(fields)

@spec finished(keyword()) :: t()

normalize_result(result)

@spec normalize_result(term()) :: term()

preparing(fields)

@spec preparing(keyword()) :: t()

started(fields)

@spec started(keyword()) :: t()