Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion interface/src/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,25 @@ export interface TimelineWorkerRun {
completed_at: string | null;
}

export type TimelineItem = TimelineMessage | TimelineBranchRun | TimelineWorkerRun;
export interface TimelineChannelToolCall {
id: string;
name: string;
args: string;
result: string | null;
status: string;
}

export interface TimelineChannelRun {
type: "channel_run";
id: string;
tool_calls: TimelineChannelToolCall[];
tool_calls_count: number;
status: string;
started_at: string;
completed_at: string | null;
}

export type TimelineItem = TimelineMessage | TimelineBranchRun | TimelineWorkerRun | TimelineChannelRun;

export interface MessagesResponse {
items: TimelineItem[];
Expand Down
Loading