Package-level declarations
AI plumbing lives here: request safety, resilience, and provider orchestration. Think of this package as the reliability layer behind smart NPC features.
Types
Link copied to clipboard
class AiRateLimiter(val name: String, maxRequests: Int = DEFAULT_MAX_REQUESTS, windowMs: Long = DEFAULT_WINDOW_MS, clock: () -> Long = System::currentTimeMillis)
Thread-safe sliding-window rate limiter for AI API calls.
Link copied to clipboard
Link copied to clipboard
object OpenAIService
General-purpose service for interacting with the OpenAI API.