file

suspend fun file(mediaType: String, url: String)(source)

Attach a file the call produced — a screenshot of what it did, a generated image — as a file part right after the call (AI SDK file part; the steps view shows it with this call). url is a data: or http(s) URL.