Vibe.Files.ReadResult (vibe v0.2.1)

Copy Markdown View Source

Typed result returned by file reads.

Summary

Types

content_type()

@type content_type() :: :text | :image

t()

@type t() :: %Vibe.Files.ReadResult{
  __content_parts__: [ReqLLM.Message.ContentPart.t()],
  content: String.t() | nil,
  content_type: content_type(),
  height: pos_integer() | nil,
  image: Vibe.Image.t() | Vibe.Files.ImageRef.t() | nil,
  language: String.t() | nil,
  lines: non_neg_integer() | nil,
  mime_type: String.t() | nil,
  omitted_bytes: non_neg_integer() | nil,
  omitted_lines: non_neg_integer() | nil,
  parts: [Vibe.Model.Content.t()],
  path: String.t(),
  size_bytes: non_neg_integer() | nil,
  width: pos_integer() | nil
}