/**
* Generated by orval v7.17.0 🍺
* Do not edit manually.
* superglue AI API
* API for running superglue AI tools
* OpenAPI spec version: 1.0.0
*/
import type { RunTool } from "./runTool";
import type { RunStatus } from "./runStatus";
import type { RunToolPayload } from "./runToolPayload";
import type { RunData } from "./runData";
import type { RunStepResultsItem } from "./runStepResultsItem";
import type { RunOptions } from "./runOptions";
import type { RunMetadata } from "./runMetadata";
export interface Run {
/** Unique identifier for this run (maps to 'id' in GraphQL schema) */
runId: string;
/** ID of the tool that was executed */
toolId: string;
/** Tool metadata (not full configuration, maps to 'toolConfig' in GraphQL) */
tool?: RunTool;
/** Execution status:
- running: Execution in progress
- success: Completed successfully
- failed: Failed due to error
- aborted: Cancelled by user or system
*/
status: RunStatus;
/** The inputs and options provided when running the tool (maps to 'toolPayload' in GraphQL) */
toolPayload?: RunToolPayload;
/** Tool execution results (only present when status is success, maps to 'toolResult' in GraphQL) */
data?: RunData;
/** Error message (only present when status is failed or aborted) */
error?: string;
/** Results from each execution step (only for multi-step tools) */
stepResults?: RunStepResultsItem[];
/** Execution options that were used for this run */
options?: RunOptions;
/** Source identifier for where the run was initiated */
requestSource?: string;
/** Trace ID for this run (for debugging and log correlation) */
traceId?: string;
metadata: RunMetadata;
}