import type { SessionEvent } from '@deepseek-ai/dsh-session'; import type { PartnerState } from '../domain.js'; export type TaskReview = { taskInputId: string; kind: 'completed' | 'progress' | 'repair' | 'blocked' | 'discussion' | 'cancelled' | 'unrelated'; reason: string; callId?: string; remaining?: string; }; export type TaskReviewReceipt = TaskReview & { inputId: string; request: string; goalTools?: string[]; }; export declare const TASK_REVIEW_SCHEMA: { type: string; description: string; additionalProperties: boolean; required: string[]; properties: { taskInputId: { type: string; description: string; }; kind: { type: string; enum: string[]; description: string; }; reason: { type: string; maxLength: number; description: string; }; remaining: { type: string; maxLength: number; description: string; }; callId: { type: string; description: string; }; }; }; export declare const TASK_FOLLOWUP_GUIDANCE = "\u8FD9\u662F\u540C\u4E00\u5BF9\u8C61\u7684\u8FD1\u671F\u4EFB\u52A1\u8D44\u6599\uFF0C\u4E0D\u662F\u65B0\u7684\u6267\u884C\u6388\u6743\u3002\u6309\u5F53\u524D\u6D88\u606F\u5224\u65AD\uFF1A\u6307\u51FA\u9057\u6F0F\u3001\u4E0D\u7B26\u5408\u8981\u6C42\u6216\u5BF9\u8BE5\u7ED3\u679C\u5931\u671B\u65F6\uFF0C\u5728\u539F\u6388\u6743\u5185\u7EE7\u7EED\u8865\u6551\uFF0C\u4E0D\u80FD\u628A\u539F\u76EE\u6807\u7F29\u6210\u67E5\u660E\u539F\u56E0\u540E\u9053\u6B49\uFF1B\u67E5\u5230\u95EE\u9898\u4E0D\u7B49\u4E8E\u4FEE\u6B63\u6210\u679C\u3002\u5148\u6309\u4EBA\u7269\u7B80\u77ED\u63A5\u8BDD\uFF0C\u9700\u7EE7\u7EED\u5219 continueTurn:true\u3001taskReview.kind=repair/progress\u3001remaining \u5199\u5177\u4F53\u7F3A\u53E3\uFF0C\u5B9E\u9645\u5B8C\u6210\u540E\u518D\u6536\u5C3E\u3002\u7F3A\u53C2\u8003/\u6587\u4EF6\u5148\u67E5\u8BE2\u5DF2\u6709\u8BB0\u5F55\u548C\u53EF\u7528\u6765\u6E90\uFF0C\u4E0D\u7528\u865A\u6784\u66FF\u4EE3\u54C1\u5192\u5145\uFF1B\u786E\u5B9E\u627E\u4E0D\u5230\u5C31\u8BF4\u660E\u5177\u4F53\u7F3A\u9879\u3002\u53EA\u8BE2\u95EE\u539F\u56E0\u4E14\u4E0D\u9700\u6539\u3001\u660E\u786E\u505C\u6B62\u3001\u6362\u8BDD\u9898\u6216\u666E\u901A\u5E94\u548C\uFF0C\u53EF\u5206\u522B discussion/cancelled/unrelated \u7ED3\u675F\uFF0C\u4E0D\u5F3A\u8FEB\u6267\u884C\u65E7\u5DE5\u4F5C\u3002\u6700\u7EC8\u6536\u5C3E\u586B\u5199 taskReview\uFF0C\u5185\u90E8\u51B3\u5B9A\u4E0D\u590D\u8FF0\u5230\u804A\u5929\uFF1B\u8865\u6551\u4E0D\u4EA4\u7ED9 interest/nextActivity\uFF0C\u4E0D\u53D7\u5174\u8DA3\u6B21\u6570\u9650\u5236\u3002\u5DF2\u786E\u8BA4\u6210\u529F\u7684\u5916\u90E8\u53D1\u5E03\u3001\u53D1\u9001\u3001\u4ED8\u6B3E\u7B49\u4E0D\u76F2\u76EE\u91CD\u505A\uFF1B\u9700\u65B0\u589E\u6388\u6743\u6216\u6765\u6E90\u4E0D\u8DB3\u5C31 blocked\u3002\u8BED\u6C14\u53CA\u957F\u77ED\u4ECD\u53EA\u9075\u5FAA\u5F53\u524D\u4EBA\u7269\u548C\u804A\u5929\u8BBE\u7F6E\u3002"; declare function results(events: readonly SessionEvent[]): { callId: string; name: string; ok: boolean; }[]; export interface TaskFollowup { goalTools?: string[]; pending?: string; taskInputId: string; inputId: string; request: string; priorReplies: string[]; results: ReturnType; currentResults: ReturnType; } /** Bounded projection of real log events, never another classifier or a new execution queue. * Same audience only. Rolling affects uploaded messages, not this source log. */ export declare function taskFollowup(state: PartnerState, owner: string, sessionId: string, all: readonly SessionEvent[]): TaskFollowup | undefined; export declare function renderTaskFollowup(task: TaskFollowup | undefined): string; export declare function checkTaskReview(task: TaskFollowup | undefined, raw: unknown, options?: { continuing: boolean; }): TaskReviewReceipt | undefined; /** Only the immediate, same-audience task candidate changes presentation. */ export declare function withTaskReviewSchema(tool: T, task: TaskFollowup | boolean | undefined): T; export {}; //# sourceMappingURL=task-followup.d.ts.map