Skip to content
providerkit
GitHub

Decision

type Decision =
| {
arguments?: Record<string, unknown>;
data?: unknown;
receipt?: string;
type: "approve";
}
| {
data?: unknown;
message?: string;
receipt?: string;
type: "deny";
}
| {
answer: Answer;
receipt?: string;
type: "answer";
}
| {
receipt?: string;
type: "result";
value: unknown;
}
| {
receipt?: string;
type: "cancel";
}
| {
receipt?: string;
type: "stop";
};

Defined in: agents/src/types.ts:623