Add explicit LLM stream lifecycle events (#26722)

This commit is contained in:
Kit Langton 2026-05-10 12:19:13 -04:00 committed by GitHub
parent 3b8790e034
commit ce061bf661
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 201 additions and 126 deletions

View file

@ -184,7 +184,7 @@ const FakeProtocol = Protocol.make<FakeBody, string, string, void>({
stream: {
event: Schema.String,
initial: () => undefined,
step: (_, frame) => Effect.succeed([undefined, [{ type: "text-delta", text: frame }]] as const),
step: (_, frame) => Effect.succeed([undefined, [{ type: "text-delta", id: "text-0", text: frame }]] as const),
onHalt: () => [{ type: "request-finish", reason: "stop" }],
},
})