openai.internal.OaStreamState

What the decoder must remember ACROSS batches: which text items already streamed deltas (so a trailing `output_text.done` does not duplicate them), the assembled function-call arguments, and the model name the API resolved.

Reference version

Signature

class openai.internal.OaStreamState

What the decoder must remember ACROSS batches: which text items already streamed deltas (so a trailing output_text.done does not duplicate them), the assembled function-call arguments, and the model name the API resolved.

Source:<builtin>/openai/ns_internal/responses.bamlbytes 3881639162

Fields

model

string | null

text_started

map<string, bool>

call_arguments

map<string, string>

Static methods

function

new

() -> openai.internal.OaStreamState