@promptbook/node
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
20 lines (19 loc) • 683 B
TypeScript
import type { PromptRunOptions } from '../types/PromptRunOptions';
import type { PromptRunResult } from '../types/PromptRunResult';
import type { PromptRunner } from '../types/PromptRunner';
import type { OpencodeRunnerOptions } from './OpencodeRunnerOptions';
/**
* Runs prompts via the Opencode CLI.
*/
export declare class OpencodeRunner implements PromptRunner {
private readonly options;
readonly name = "opencode";
/**
* Creates a new Opencode runner.
*/
constructor(options: OpencodeRunnerOptions);
/**
* Runs the prompt using Opencode and parses usage output.
*/
runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
}