The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { OpenResponsesStreamEventResponseOutputItemAdded } from "@openrouter/sdk/models";
let value: OpenResponsesStreamEventResponseOutputItemAdded = {
type: "response.output_item.added",
outputIndex: 0,
item: {
id: "item-1",
role: "assistant",
type: "message",
content: [],
},
sequenceNumber: 2,
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
type | ”response.output_item.added” | :heavy_check_mark: | N/A | |
outputIndex | number | :heavy_check_mark: | N/A | |
item | models.ResponsesOutputItem | :heavy_check_mark: | An output item from the response | {"id": "msg-abc123","role": "assistant","type": "message","status": "completed","content": [{"type": "output_text","text": "Hello! How can I help you today?"}] } |
sequenceNumber | number | :heavy_check_mark: | N/A |