The TypeScript SDK and docs are currently in beta.
Report issues on GitHub.
Example Usage
import { AnthropicPlainTextSource } from "@openrouter/sdk/models";
let value: AnthropicPlainTextSource = {
data: "Hello, world!",
mediaType: "text/plain",
type: "text",
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
data | string | :heavy_check_mark: | N/A |
mediaType | models.AnthropicPlainTextSourceMediaType | :heavy_check_mark: | N/A |
type | ”text” | :heavy_check_mark: | N/A |