@threadplane/ag-uiInterfacev0.3.4

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, e.g. (id) => \/api/threads/${id}/events``.

url: (threadId: string) => string;