TypeScript interfaces for monitoring agent and pipeline executions, token usage, and status. Reuse for observability dashboards.
// Source: https://github.com/langbot-app/LangBot | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
export type ExecutionSource = 'agent' | 'pipeline' | 'event';
export type ExecutionSourceFilter = 'all' | ExecutionSource;
export type ExecutionModeFilter = 'all' | 'real' | 'debug';
export interface ExecutionUsage {
input_tokens?: number | null;
output_tokens?: number | null;
total_tokens?: number | null;
}
export interface ExecutionRow {
source: ExecutionSource;
id: string;
event_id: string | null;
status: string;
status_group:
| 'completed'
| 'failed'
| 'running'
| 'queued'
| 'cancelled'
| 'ignored'
| string;
title: string;
input_pr
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key