The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { OpenResponsesStreamEventResponseOutputTextAnnotationAdded } from "@openrouter/sdk/models";
let value: OpenResponsesStreamEventResponseOutputTextAnnotationAdded = {
type: "response.output_text.annotation.added",
outputIndex: 0,
itemId: "item-1",
contentIndex: 0,
sequenceNumber: 5,
annotationIndex: 0,
annotation: {
type: "url_citation",
url: "https://example.com",
title: "Example",
startIndex: 0,
endIndex: 7,
},
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
type | ”response.output_text.annotation.added” | :heavy_check_mark: | N/A |
outputIndex | number | :heavy_check_mark: | N/A |
itemId | string | :heavy_check_mark: | N/A |
contentIndex | number | :heavy_check_mark: | N/A |
sequenceNumber | number | :heavy_check_mark: | N/A |
annotationIndex | number | :heavy_check_mark: | N/A |
annotation | models.OpenAIResponsesAnnotation | :heavy_check_mark: | N/A |