OpenAIResponsesAnnotation - TypeScript SDK

OpenAIResponsesAnnotation type definition

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

Supported Types

models.FileCitation

1const value: models.FileCitation = {
2 fileId: "file-abc123",
3 filename: "research_paper.pdf",
4 index: 0,
5 type: "file_citation",
6};

models.URLCitation

1const value: models.URLCitation = {
2 endIndex: 582752,
3 startIndex: 114325,
4 title: "<value>",
5 type: "url_citation",
6 url: "https://dim-jet.biz/",
7};

models.FilePath

1const value: models.FilePath = {
2 fileId: "file-abc123",
3 index: 0,
4 type: "file_path",
5};