@anthropic-ai/sdk
Version:
The official TypeScript library for the Anthropic API
8 lines • 491 B
text/typescript
import type { Span } from '@opentelemetry/api';
import type { RecordedMessage, RecordedUsage } from "./types.mjs";
/**
* Sets the attributes that come from a Message. The stop reason and the output usage are final
* only from the `message_delta` of a streamed Message on, and are set only when `complete` is true.
*/
export declare function setResponseAttributes(span: Span, message: RecordedMessage, usage: RecordedUsage, complete: boolean): void;
//# sourceMappingURL=response.d.mts.map