Sake.Sampling.Result (Sake v0.4.3)

Copy Markdown View Source

The client's answer to Sake.Sampling.create_message/4: the role of the message ("assistant"), its content as Sake.Content blocks, text (every text block joined), the model that produced it, the stop_reason, and the raw result map, which also holds content Sake has no struct for (such as tool use).

Summary

Types

t()

@type t() :: %Sake.Sampling.Result{
  content: [Sake.Content.t()],
  model: String.t() | nil,
  raw: map(),
  role: String.t() | nil,
  stop_reason: String.t() | nil,
  text: String.t()
}