AnthropicPlainTextSource - TypeScript SDK

AnthropicPlainTextSource type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

1import { AnthropicPlainTextSource } from "@openrouter/sdk/models";
2
3let value: AnthropicPlainTextSource = {
4 data: "Hello, world!",
5 mediaType: "text/plain",
6 type: "text",
7};

Fields

FieldTypeRequiredDescription
datastring✔️N/A
mediaTypemodels.AnthropicPlainTextSourceMediaType✔️N/A
type”text”✔️N/A