UNPKG

@promptbook/node

Version:

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

21 lines (20 loc) 753 B
import type { PromptRunOptions } from '../types/PromptRunOptions'; import type { PromptRunResult } from '../types/PromptRunResult'; import type { PromptRunner } from '../types/PromptRunner'; import type { OpenAiCodexRunnerOptions } from './OpenAiCodexRunnerOptions'; /** * Runs prompts via the OpenAI Codex CLI. */ export declare class OpenAiCodexRunner implements PromptRunner { private readonly options; readonly name = "codex"; private readonly rateLimitBackoff; /** * Creates a new Codex runner. */ constructor(options: OpenAiCodexRunnerOptions); /** * Runs the Codex prompt in a temporary script and waits for completion output. */ runPrompt(options: PromptRunOptions): Promise<PromptRunResult>; }