The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { URLCitation } from "@openrouter/sdk/models";
let value: URLCitation = {
type: "url_citation",
url: "https://openrouter.ai/docs",
title: "OpenRouter Documentation",
startIndex: 0,
endIndex: 42,
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
type | ”url_citation” | :heavy_check_mark: | N/A |
url | string | :heavy_check_mark: | N/A |
title | string | :heavy_check_mark: | N/A |
startIndex | number | :heavy_check_mark: | N/A |
endIndex | number | :heavy_check_mark: | N/A |