agentskit.js

S3LoaderOptions

Auto-generated API reference for S3LoaderOptions.

Interface: S3LoaderOptions

Defined in: loaders.ts:171

Document loaders: small async functions that return InputDocument[] ready to pipe into RAG.ingest. Every loader is framework-agnostic and accepts a custom fetch for tests.

#Extends

#Properties

#bucket

bucket: string

Defined in: loaders.ts:177


#client

client: S3LikeClient

Defined in: loaders.ts:176

AWS SDK v3 S3Client-shaped client. Bring your own to keep the bundle lean. Works with R2 / MinIO / etc. by configuring the client's endpoint.


#commands?

optional commands?: object

Defined in: loaders.ts:183

AWS SDK v3 commands. Pass them in to skip the dynamic import: \{ ListObjectsV2Command, GetObjectCommand \} from @aws-sdk/client-s3. Optional β€” when omitted the loader resolves them lazily.

#GetObjectCommand

GetObjectCommand: (input) => object

Parameters
input

Record<string, unknown>

Returns

object

input

input: Record<string, unknown>

#ListObjectsV2Command

ListObjectsV2Command: (input) => object

Parameters
input

Record<string, unknown>

Returns

object

input

input: Record<string, unknown>


#fetch?

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

Defined in: loaders.ts:10

#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


#filter?

optional filter?: (key) => boolean

Defined in: loaders.ts:190

Include only keys matching this predicate after listing.

#Parameters

key

string

#Returns

boolean


#maxFiles?

optional maxFiles?: number

Defined in: loaders.ts:192

Cap on number of objects to load. Default 100.


#prefix?

optional prefix?: string

Defined in: loaders.ts:188

Limit to keys under this prefix.

Explore nearby

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

On this page