ai

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAICmd

func NewAICmd() *cobra.Command

NewAICmd creates the AI command.

Types

type BudgetConfig

type BudgetConfig struct {
	MonthlyLimit float64 `json:"monthly_limit"` // Monthly spending limit in USD
	AlertAt      float64 `json:"alert_at"`      // Alert when spending reaches this percentage (0-100)
	Enabled      bool    `json:"enabled"`       // Whether budget enforcement is enabled
}

BudgetConfig represents AI budget configuration

type UsageStats

type UsageStats struct {
	Month              string  `json:"month"`
	TotalRequests      int     `json:"total_requests"`
	OllamaRequests     int     `json:"ollama_requests"`
	ClaudeRequests     int     `json:"claude_requests"`
	OpenAIRequests     int     `json:"openai_requests"`
	GroqRequests       int     `json:"groq_requests"`
	OpenRouterRequests int     `json:"openrouter_requests"`
	TotalTokens        int     `json:"total_tokens"`
	EstimatedCost      float64 `json:"estimated_cost"`
}

UsageStats represents AI usage statistics

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL