ai.events.UserMessage$stream
A user turn: text and media, in order. The runner records the opening turn; a runner that observes its environment appends more mid-run (a screenshot after a tool ran, a document the host attaches), and every client lowers the turn at its position in the journal.
Reference version
Signature
class ai.events.UserMessage$streamA user turn: text and media, in order. The runner records the opening turn; a runner that observes its environment appends more mid-run (a screenshot after a tool ran, a document the host attaches), and every client lowers the turn at its position in the journal.
Source:<builtin>/ai/ns_events/events.bamlbytes 0–0
Fields
content
metadata
map<string, baml.json.json$stream>Per-message provider directives, carried verbatim like
root.PromptMessage.metadata (Anthropic cache_control, for example).