Skip to content

agent-plugin-limits / Exports

agent-plugin-limits

Table of contents

Classes

Interfaces

Type Aliases

Type Aliases

TLimitsStrategy

Ƭ TLimitsStrategy: "token-bucket" | "sliding-window" | "fixed-window" | "none"

Rate limiting strategies

Defined in

agent-plugin-limits/src/types.ts:6


TPluginLimitsStatusData

Ƭ TPluginLimitsStatusData: Record<string, string | number | boolean | (string | number | boolean)[] | Record<string, string | number | boolean> | null>

Plugin limits status data type - supports nested objects and null values for comprehensive status reporting

REASON: Status data needs to include nested objects for bucket/window details and null values for missing data ALTERNATIVES_CONSIDERED:

  1. Strict primitive types (loses nested status information)
  2. Union types without null (breaks null handling)
  3. Interface definitions (too rigid for dynamic status)
  4. Generic constraints (too complex for status data)
  5. Type assertions (decreases type safety) TODO: Consider specific status interfaces if patterns emerge

Defined in

agent-plugin-limits/src/types.ts:44

Released under the MIT License.