Expand description
AI integration module.
Provides AI-assisted issue triage using multiple AI providers (Gemini, OpenRouter, Groq, Cerebras).
Re-exports§
pub use circuit_breaker::CircuitBreaker;pub use client::AiClient;pub use models::AiModel;pub use models::ModelProvider;pub use provider::AiProvider;pub use registry::ProviderConfig;pub use registry::all_providers;pub use registry::get_provider;pub use types::CreateIssueResponse;pub use types::CreditsStatus;pub use types::TriageResponse;
Modules§
- circuit_
breaker - Circuit breaker pattern for AI provider resilience.
- client
- Generic AI client for all registered providers.
- context
- Best practices context for AI system prompts.
- models
- AI model and provider types.
- provider
- AI provider trait and shared implementations.
- registry
- Centralized provider configuration registry.
- types
- AI request/response types for API communication.
Structs§
- AiResponse
- Response from AI analysis containing both triage data and usage stats.
Functions§
- create_
issue - Creates a formatted GitHub issue using AI assistance.
- is_
free_ model - Checks if a model is in the free tier (no cost).
Free models on
OpenRouteralways have the:freesuffix.