Skip to main content

Interface: UrlLoaderOptions

Defined in: packages/agentos/src/cognition/memory/io/ingestion/UrlLoader.ts:41

How a UrlLoader reads.

Properties​

fetchDocument()?​

optional fetchDocument: (url) => Promise<{ body: Buffer; contentType: string; url: string; }>

Defined in: packages/agentos/src/cognition/memory/io/ingestion/UrlLoader.ts:47

Reads an address and answers the last address after redirects, the media type and the body; a server passes guardedFetch here. When absent, the loader reads through the global fetch as before.

Parameters​

url​

string

Returns​

Promise<{ body: Buffer; contentType: string; url: string; }>