ResponseMetadata

@SerialName(value = "response-metadata")
class ResponseMetadata(val id: String? = null, val timestampMillis: Long? = null, val modelId: String? = null, val headers: Map<String, String> = emptyMap(), val body: JsonElement? = null) : StreamEvent(source)

Provider response metadata that becomes available after the stream request starts. Mirrors v6's response-metadata stream part so StreamTextResult.response can expose IDs, timestamps, model IDs, headers, and retained response bodies.

Since

0.3.0-beta01

Constructors

Link copied to clipboard
constructor(id: String? = null, timestampMillis: Long? = null, modelId: String? = null, headers: Map<String, String> = emptyMap(), body: JsonElement? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val id: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard