agentskit.js

PdfLoaderOptions

Auto-generated API reference for PdfLoaderOptions.

Interface: PdfLoaderOptions

Defined in: packages/rag/src/loaders/documents.ts:221

#Extends

#Properties

#fetch?

optional fetch?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defined in: packages/rag/src/loaders/shared.ts:5

#Call Signature

(input, init?): Promise<Response>

MDN Reference

Parameters
input

RequestInfo | URL

init?

RequestInit

Returns

Promise<Response>

#Call Signature

(input, init?): Promise<Response>

MDN Reference

Parameters
input

string | Request | URL

init?

RequestInit

Returns

Promise<Response>

#Inherited from

LoaderOptions.fetch


#parsePdf

parsePdf: (bytes) => Promise<{ pages?: number; text: string; }> | { pages?: number; text: string; }

Defined in: packages/rag/src/loaders/documents.ts:222

#Parameters

bytes

Uint8Array

#Returns

Promise<{ pages?: number; text: string; }> | { pages?: number; text: string; }


#signal?

optional signal?: AbortSignal

Defined in: packages/rag/src/loaders/shared.ts:7

Optional abort signal forwarded to underlying HTTP calls when supported.

#Inherited from

LoaderOptions.signal

Explore nearby

✎ Edit this page on GitHubΒ·Found a problem? Open an issue β†’Β·How to contribute β†’

On this page

Ask the docs
Ask anything about AgentsKit. Answers come from the docs corpus and cite their sources.