HttpReplayOptions
Options for httpReplay.
import type { HttpReplayOptions } from '@threadplane/ag-ui';Declaration
export interface HttpReplayOptions {
fetch?: typeof fetch;
headers?: Record<string, string>;
url: (threadId: string) => string;
}Members
fetch
Fetch implementation. Defaults to the global fetch.
fetch?: typeof fetch;headers
Extra request headers, e.g. auth tokens.
headers?: Record<string, string>;url
Builds the GET URL for a thread.
url: (threadId: string) => string;Examples
(id) => `/api/threads/${id}/events`