Skip to content

CommandAnnotationsBuilder

Fluent builder for CommandAnnotations. Use as an escape hatch via WithAnnotations(Action<CommandAnnotationsBuilder>) when multiple flags need to be set in a single expression.

public sealed class CommandAnnotationsBuilder

Hides the command from programmatic/automation surfaces only.

public CommandAnnotationsBuilder AutomationHidden(bool value = true)

CommandAnnotationsBuilder

Marks the command as destructive (deletes, modifies state).

public CommandAnnotationsBuilder Destructive(bool value = true)

CommandAnnotationsBuilder

Marks the command as safely retriable.

public CommandAnnotationsBuilder Idempotent(bool value = true)

CommandAnnotationsBuilder

Marks the command as long-running (enables task-based execution).

public CommandAnnotationsBuilder LongRunning(bool value = true)

CommandAnnotationsBuilder

Marks the command as interacting with external systems.

public CommandAnnotationsBuilder OpenWorld(bool value = true)

CommandAnnotationsBuilder

Marks the command as read-only (no side effects).

public CommandAnnotationsBuilder ReadOnly(bool value = true)

CommandAnnotationsBuilder