Wardrik.Reply (wardrik_protocol v0.1.0-rc.1)

Copy Markdown

An agent's answer: its text, the message it answers, and the run that wrote it.

Summary

Functions

Returns the assistant's text from messages, as a wardrik.run.completed event's data holds them.

Types

t()

@type t() :: %Wardrik.Reply{message: String.t(), run: String.t(), text: String.t()}

Functions

text(messages)

@spec text([map()]) :: String.t()

Returns the assistant's text from messages, as a wardrik.run.completed event's data holds them.