UNPKG

@promptbook/node

Version:

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

29 lines (28 loc) 1.02 kB
import type { AgentCliHistoryMessage, AgentCliRunOptions } from './AgentCliRunOptions'; /** * Result of one local agent CLI turn. */ export type AgentChatTurnResult = { readonly answer: string; readonly workspacePath: string; readonly messageFilePath: string; readonly agentPath: string; }; /** * Options for executing one local agent CLI turn. */ export type ExecuteAgentChatTurnOptions = AgentCliRunOptions & { readonly messages: ReadonlyArray<AgentCliHistoryMessage>; readonly workspacePath?: string; }; /** * Executes one user turn by asking the selected harness to append `MESSAGE @Agent` to a temporary thread book. */ export declare function executeAgentChatTurn(options: ExecuteAgentChatTurnOptions): Promise<AgentChatTurnResult>; /** * Creates an isolated workspace path under the project-local Promptbook temporary directory. */ export declare function createAgentChatWorkspacePath(options: { readonly currentWorkingDirectory: string; readonly agentPath: string; }): string;