Type alias BrickOptions

BrickOptions: {
    database?: Database;
    id?: string;
    intelligence?: Intelligence;
    logJSON?: boolean;
    logLevel?: pino.Level;
    name?: string;
    pinoOptions?: pino.LoggerOptions;
    structure?: Structure;
}

Represents the options for creating a Brick instance.

Type declaration

  • Optional database?: Database

    The database of the Brick instance. This is used to manage the data storage and retrieval for the Brick.

  • Optional id?: string

    The unique identifier of the Brick instance. If not provided, a random UUID will be generated.

  • Optional intelligence?: Intelligence

    The Intelligence of the Brick instance. This is used to manage the AI capabilities of the Brick.

  • Optional logJSON?: boolean

    A boolean indicating whether the logs should be in JSON format.

  • Optional logLevel?: pino.Level

    The log level of the Brick instance. This determines the level of detail of the logs.

  • Optional name?: string

    The name of the Brick instance. If not provided, the id will be used as the name.

  • Optional pinoOptions?: pino.LoggerOptions

    The options for the pino logger used by the Brick instance.

  • Optional structure?: Structure

    The parent Structure of the Brick, if any.