Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
15 lines
827 B
Plaintext
15 lines
827 B
Plaintext
import type { Span } from '../../types-hoist/span';
|
|
import type { AnthropicAiStreamingEvent } from './types';
|
|
/**
|
|
* Instruments an async iterable stream of Anthropic events, updates the span with
|
|
* streaming attributes and (optionally) the aggregated output text, and yields
|
|
* each event from the input stream unchanged.
|
|
*/
|
|
export declare function instrumentAsyncIterableStream(stream: AsyncIterable<AnthropicAiStreamingEvent>, span: Span, recordOutputs: boolean): AsyncGenerator<AnthropicAiStreamingEvent, void, unknown>;
|
|
/**
|
|
* Instruments a MessageStream by registering event handlers and preserving the original stream API.
|
|
*/
|
|
export declare function instrumentMessageStream<R extends {
|
|
on: (...args: unknown[]) => void;
|
|
}>(stream: R, span: Span, recordOutputs: boolean): R;
|
|
//# sourceMappingURL=streaming.d.ts.map |