Vibe.Eval.Result (vibe v0.2.3)

Copy Markdown View Source

Structured eval display result.

format tells renderers how to display output without guessing from source code or inspected text. Future rich outputs can add formats such as images while keeping the eval/tool boundary typed.

Summary

Types

format()

@type format() :: :inspect | :text | :markdown

part()

@type part() :: %{output: String.t(), format: format()} | Vibe.Model.Content.t()

t()

@type t() :: %Vibe.Eval.Result{
  format: format(),
  io: String.t(),
  output: String.t(),
  parts: [part()],
  truncation: :head | :tail | nil,
  value_type: atom() | module()
}

Functions

to_tool_output(result)

@spec to_tool_output(t()) :: map()