Skip to main content
Version: Next

AiCommand

AiCommand

Represents a command that can be executed by the AI.

Signature
type AiCommand<T extends Record<string, unknown>> = (
ctx: AiContext<T>,
) => Promise<unknown> | unknown