ai.content.Media$stream

A media payload: a screenshot a runner attaches to a user turn, a file a tool returned, a generated image a model produced. The value is a real BAML media value, so `-> image` returns something callers can save or pass straight back into another prompt.

Reference version

Signature

class ai.content.Media$stream

A media payload: a screenshot a runner attaches to a user turn, a file a tool returned, a generated image a model produced. The value is a real BAML media value, so -> image returns something callers can save or pass straight back into another prompt.

provider_id and revised_prompt are provenance of GENERATED output and are null on input.

Source:<builtin>/ai/ns_content/content.bamlbytes 0–0

Fields

provider_id

string | null

revised_prompt

string | null