@promptbook/utils
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
16 lines (15 loc) • 702 B
TypeScript
import type { CoderTeamScope } from '../../../../../scripts/run-codex-prompts/team/CoderTeamRuntime';
import { type PlanningMessage, type PlanningReply } from './planningProtocol';
/**
* Runs the same read-only protocol throughout the delegation tree. Only the primary caller can receive proposals.
* @private internal utility of `coder plan`
*/
export declare function discussPlanningTurn(options: {
readonly projectPath: string;
readonly history: PlanningMessage[];
readonly signal: AbortSignal;
readonly infer: () => Promise<string>;
readonly team?: CoderTeamScope;
readonly isAdviser?: boolean;
readonly write?: (message: string) => void;
}): Promise<PlanningReply>;