Expand description
What the turn reports: the NDJSON events the client reads, and the events the parsers pass between themselves on the way there.
StructsΒ§
EnumsΒ§
- Chatbot
Chat Stream Event - Stream
Item π - One item the turn reports to the client.
- Turn
Event π - What the two body parsers β the tool-call round and the text answer β yield once a response is
classified. One type shared between them rather than split further: both stream
Item, whileRefusal/ItemAnnounced/Messages/Suspendedcome only from the tool-call round andDelta/Doneonly from the text answer.
FunctionsΒ§
- error_
event_ πfrom_ error - The framed error event for a failed
ChatbotError, detailing the Azure error when the failure came with one. - error_
event_ πfrom_ text - The framed error event for a message this code raised itself, with no underlying
ChatbotError. - finished_
tool_ πcall - Tells the client a call it has already seen is done. Carries no tool name or arguments: the frontend reads neither, and it already has both from the event that announced the call.
- ndjson_
line π - Frames one event as the NDJSON line the client reads: the wire formatβs single boundary.
- single_
event_ πstream - A stream that carries one event and ends, for a response with no turn behind it.
- stream_
event_ πfor - The wire event a
StreamItembecomes, orNonefor an item that has no shape on the wire (aMessageitem, which is reported through the text-delta path instead).