UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

13 lines (12 loc) 505 B
import type { string_url } from '../types/string_url'; /** * 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>;