Skip to content

Type Alias: CompletionCallback()

@providerprotocol/ai


@providerprotocol/ai / middleware/pubsub / CompletionCallback

CompletionCallback = () => void

Defined in: src/middleware/pubsub/types.ts:35

Completion callback when stream ends.

Adapters should invoke this when PubSubAdapter.remove is called so subscriber streams can terminate before the stream is deleted.

void