#[non_exhaustive]pub struct RunSummary {
pub run_id: Option<RunId>,
pub end: RunEnd,
pub requested: bool,
}Expand description
One run a stream carried, and how it ended.
The runs of a stream fall in three places. Those before the requested run are replayed: history the producer restates. They are read into the conversation and reported here, and change nothing the thread owes. The requested run answers the request: it alone confirms a resume submission. A run after it is one AG-UI 1.0 does not provide for — the requested run is the last of its exchange — but a producer that keeps the stream open sends one, and the agent then stands where that run left it. So what the thread owes next, its pending interrupts and the tool calls a success outcome names, is what the last run from the requested one on reported.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.run_id: Option<RunId>The id its RUN_STARTED carried. None for a failure that opened
the stream: a RUN_ERROR with no run before it.
end: RunEndHow it ended, or how reading it stopped.
requested: boolWhether this is the run the request asked for: the one whose
RUN_STARTED carried the request’s run id, or a failure that opened
the stream and that no run followed, which is that run failing before
it began. At most one run of a stream is the requested one: a failure
that opened the stream and that a run followed is history, like a
replayed run.