UNPKG

@promptbook/remote-client

Version:

Promptbook: Turn your company's scattered knowledge into AI ready books

13 lines (12 loc) 506 B
import type { string_url } from '../types/typeAliases'; /** * Fetch function used in Promptbook engine * * In most cases it is just native `fetch` function with a lightweight error handling wrapper * But it can be replaced with any other fetch function, polyfill, custom implementation, security layer, etc. * * It is used in these places: * - Fetching knowledge sources * - Callbacks from remote server */ export type PromptbookFetch = (url: string_url, init?: RequestInit) => Promise<Response>;