Skip to main content

DocumentChooser

@retinue/monorepo


@retinue/monorepo / backend/src / DocumentChooser

Interface: DocumentChooser

Defined in: backend/src/knowledge/navigate.ts:62

Whatever decides which documents to read. A model, in practice.

A port rather than a model call, for the reason every model call in this package is a port: the platform must not acquire a provider, and a test must be able to pin the choice.

Properties​

id​

readonly id: string

Defined in: backend/src/knowledge/navigate.ts:63

Methods​

choose()​

choose(input): Promise<readonly string[]>

Defined in: backend/src/knowledge/navigate.ts:64

Parameters​

input​
catalogue​

readonly SourceOutline[]

limit​

number

query​

string

Returns​

Promise<readonly string[]>