Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

625 B
Raw Blame
export interface OpenAiModelFixture {
  readonly baseUrl: string;
  readonly requests: readonly { readonly path: string }[];
  readonly probes: readonly {
    readonly path: string | undefined;
    readonly status: 404;
  }[];
  readonly failure: string | undefined;
  close(): Promise<void>;
}

export function createOpenAiModelFixture(options: {
  readonly directory: string;
  readonly prefix: string;
  readonly onRequest: () =>
    | {
        readonly role: "assistant";
        readonly content: string;
      }
    | Promise<{ readonly role: "assistant"; readonly content: string }>;
}): Promise<OpenAiModelFixture>;