mirror of
https://github.com/andy-stack/vaultkeeper-ai.git
synced 2026-07-22 06:42:03 +00:00
Clarify execution vs orchestration responsibilities, eliminate conditional step patterns in planning, add explicit plan completion signal, and strengthen guidance on atomic unconditional actions with outcome-based routing.
31 lines
No EOL
874 B
TypeScript
31 lines
No EOL
874 B
TypeScript
type OrchestrationResultInit = {
|
|
continue?: boolean;
|
|
continueContext?: string;
|
|
abort?: boolean;
|
|
abortContext?: string;
|
|
replan?: boolean;
|
|
replanContext?: string;
|
|
complete?: boolean;
|
|
};
|
|
|
|
export class OrchestrationResult {
|
|
|
|
public continue: boolean;
|
|
public continueContext: string;
|
|
public abort: boolean;
|
|
public abortContext: string;
|
|
public replan: boolean;
|
|
public replanContext: string;
|
|
public complete: boolean;
|
|
|
|
constructor(init: OrchestrationResultInit) {
|
|
this.continue = init.continue ?? false;
|
|
this.continueContext = init.continueContext ?? "";
|
|
this.abort = init.abort ?? false;
|
|
this.abortContext = init.abortContext ?? "";
|
|
this.replan = init.replan ?? false;
|
|
this.replanContext = init.replanContext ?? "";
|
|
this.complete = init.complete ?? false;
|
|
}
|
|
|
|
} |