FilePath - TypeScript SDK

FilePath type definition

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

Example Usage

1import { FilePath } from "@openrouter/sdk/models";
2
3let value: FilePath = {
4 fileId: "file-abc123",
5 index: 0,
6 type: "file_path",
7};

Fields

FieldTypeRequiredDescription
fileIdstring✔️N/A
indexnumber✔️N/A
type”file_path”✔️N/A