File size: 753 Bytes
4e23b01 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | import type { AgentId, TaskId } from './ids';
import type { StepUsage } from './turn';
export type TaskKind = 'shell' | 'subagent' | 'tool' | 'other';
export type TaskState =
| 'running'
| 'completed'
| 'failed'
| 'timed_out'
| 'killed'
| 'lost';
export interface TranscriptTask {
readonly taskId: TaskId;
readonly kind: TaskKind;
readonly state: TaskState;
readonly detached: boolean;
readonly description?: string;
readonly agentId?: AgentId;
readonly outputTail: string;
readonly startedAt?: string;
readonly endedAt?: string;
readonly resultSummary?: string;
readonly error?: string;
readonly stateReason?: string;
readonly usage?: StepUsage;
readonly model?: string;
readonly thinkingEffort?: string;
}
|