intellibrix v1.0.0
    Preparing search index...

    Class Structure

    Represents a Structure that can contain multiple Bricks.

    Index
    events: EventEmitter
    id: string
    log: Logger
    name: string

    Accumulates token usage/cost across every Brick added to this Structure.

    • Adds a brick to the structure.

      Parameters

      • brick: Brick

        The brick to add.

      Returns void

    • Removes all bricks from the structure.

      Returns void

    • Gets a brick from the structure by its ID.

      Parameters

      • id: string

        The ID of the brick.

      Returns Brick | undefined

    • Removes a brick from the structure.

      Parameters

      • brick: Brick

        The brick to remove.

      Returns void