Skip to content

@graphty/graphty-element / ai / CommandResult

Interface: CommandResult ​

Defined in: graphty-element/src/ai/commands/types.ts:15

Result of executing a command.

Extended by ​

Properties ​

affectedEdges? ​

optional affectedEdges?: string[]

Defined in: graphty-element/src/ai/commands/types.ts:25

IDs of edges affected by the command


affectedNodes? ​

optional affectedNodes?: string[]

Defined in: graphty-element/src/ai/commands/types.ts:23

IDs of nodes affected by the command


data? ​

optional data?: unknown

Defined in: graphty-element/src/ai/commands/types.ts:21

Optional data returned by the command


message ​

message: string

Defined in: graphty-element/src/ai/commands/types.ts:19

Human-readable message about the result


success ​

success: boolean

Defined in: graphty-element/src/ai/commands/types.ts:17

Whether the command executed successfully