bothy-sdk
    Preparing search index...

    Interface CommandStore

    Durable record of the agent's own commands after the last reconciliation: command name to command ID. Replaceable, like the inbox and outbox stores.

    interface CommandStore {
        load(): Promise<Readonly<Record<string, string>>>;
        save(commands: Readonly<Record<string, string>>): Promise<void>;
    }

    Implemented by

    Index

    Methods

    Methods

    • Returns the recorded commands.

      Returns Promise<Readonly<Record<string, string>>>

      Name to command ID; empty before the first reconciliation.

    • Replaces the record.

      Parameters

      • commands: Readonly<Record<string, string>>

        Name to command ID of every own command now.

      Returns Promise<void>