The prompts about to be sent for this attempt. The user
message includes any retry-suffix appended on attempt 2+
after a prior schema-validation failure — identical to
the same attempt's stage:llm-call.prompts.user.
1, 2, ... — the attempt index this id belongs to.
Emitted by llmStage as soon as a response id is known.
On a streaming call that makes a single request (either
streaming mode, with no function tools) the id arrives with
the first SSE event, while the call is still running. Only a
background-stream response keeps generating after the caller
disconnects, so only there is this the point to persist the
id for recovery. Otherwise (synchronous, poll-only, or a
function-tool loop) the id is known at completion, and this
event fires immediately before stage:llm-call on the same
attempt, with the same id that event carries.
The OpenAI response id for this attempt.
1, 2, ... — the attempt this chunk belongs to. A retried attempt streams its text again from the beginning.
One chunk of assistant output text, as the provider emitted it. Never accumulated.
1, 2, ... — one event per LLM-call attempt.
Raw LLM JSON as returned. May not conform to the
stage's outputSchema if validationError is set.
The actual prompts sent for this attempt (the user message includes any retry-suffix appended on attempt 2+ after a prior schema-validation failure).
OptionalrawResponseId?: stringThe OpenAI response id for this attempt, when the provider surfaces one. Absent for providers that do not expose a response id (e.g. the chat-completions provider) and for attempts where the id could not be captured before completion.
OptionalvalidationError?: stringSet iff outputSchema rejected this output. When the
schema accepted the output the field is undefined.
1, 2, ... — one event per LLM-call attempt, emitted before the provider call resolves. Symmetric with the post-call
stage:llm-call.attempt.