Expand description
What can go wrong before the stream starts, and what the client sees.
Everything here happens before RUN_STARTED. Once the SSE body is open
the status line is already sent, so failures from then on are RUN_ERROR
events inside a 200 stream — that is crate::server’s job, not this
module’s. What is left is the handful of ways a request can be refused:
a body that is not AG-UI JSON, and an Accept header this build cannot
satisfy.
A refusal answers with a JSON object rather than a bare status line, because the caller is a program:
{"code": "INVALID_INPUT", "message": "missing field `messages` at line 1 column 34"}Enums§
- Error
- A request this endpoint refused, before any events were produced.
Type Aliases§
- Result
- Result alias for this crate.