Skip to content
providerkit
GitHub

ProgramCall

type ProgramCall = object &
| {
previousAttemptId?: string;
status: "pending";
}
| {
status: "running";
}
| {
result: ToolResult;
status: "completed";
};

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

Private inner-call journal. IDs increase across program restarts; old calls never replay.

arguments: Record<string, unknown>;
optional asks?: AskRecord[];
attemptId: string;
optional bytes?: number;

Current attempt’s JSON output size, or failure text size. Result content is at most 1 KiB.

id: string;
interrupted: InterruptedAttempt[];
name: string;
programAttemptId: string;

The outer program attempt which admitted this call.

retries: RetriedToolAttempt[];
started: boolean;

False means dispatch never started, even if this receipt is now completed.