eve
Version:
Filesystem-first framework for durable backend AI agents that run anywhere.
18 lines (17 loc) • 665 B
TypeScript
import type { WorkflowToolRunOutcomeMessage } from "#execution/tools/workflow/messages.js";
import { type TaskCommand, type TaskView } from "#tasks/types.js";
export type TaskTransitionResult = {
readonly action: "accepted";
readonly view: TaskView;
} | {
readonly action: "noop";
readonly view: TaskView;
} | {
readonly action: "rejected";
readonly view: TaskView;
readonly reason: string;
};
/** Pure transition function for the background invocation view. */
export declare function applyTaskTransition(view: TaskView, command: TaskCommand | ({
readonly kind: "outcome";
} & WorkflowToolRunOutcomeMessage)): TaskTransitionResult;