Skip to content

@graphty/graphty-element / ai / AiStatus

Interface: AiStatus ​

Defined in: graphty-element/src/ai/AiStatus.ts:31

Complete status object for AI command execution. Provides all state needed for UI frameworks.

Properties ​

canCancel ​

canCancel: boolean

Defined in: graphty-element/src/ai/AiStatus.ts:61

Whether the current operation can be cancelled


canRetry? ​

optional canRetry?: boolean

Defined in: graphty-element/src/ai/AiStatus.ts:57

Whether the command can be retried


elapsed? ​

optional elapsed?: number

Defined in: graphty-element/src/ai/AiStatus.ts:39

Milliseconds since startTime


error? ​

optional error?: Error

Defined in: graphty-element/src/ai/AiStatus.ts:55

Error that occurred during execution


stage? ​

optional stage?: AiStage

Defined in: graphty-element/src/ai/AiStatus.ts:43

Current processing stage


stageMessage? ​

optional stageMessage?: string

Defined in: graphty-element/src/ai/AiStatus.ts:45

Human-readable message about current stage


startTime? ​

optional startTime?: number

Defined in: graphty-element/src/ai/AiStatus.ts:37

Timestamp when command was submitted


state ​

state: AiState

Defined in: graphty-element/src/ai/AiStatus.ts:33

Current state of AI command execution


streamedText? ​

optional streamedText?: string

Defined in: graphty-element/src/ai/AiStatus.ts:49

Accumulated streamed text from LLM


toolCalls? ​

optional toolCalls?: ToolCallStatus[]

Defined in: graphty-element/src/ai/AiStatus.ts:51

Status of tool calls being executed