Documentation
¶
Overview ¶
Package capability provides model capability analysis for the intelligence system. It infers model capabilities from model names and metadata to enable intelligent routing decisions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct{}
Analyzer infers model capabilities from model names and metadata.
func NewAnalyzer ¶
func NewAnalyzer() *Analyzer
NewAnalyzer creates a new CapabilityAnalyzer instance.
Returns:
- *Analyzer: A new capability analyzer instance
func (*Analyzer) Analyze ¶
func (a *Analyzer) Analyze(model *DiscoveredModel) *ModelCapability
Analyze infers capabilities for a single discovered model. It uses name-based pattern matching and metadata analysis to determine what the model is capable of.
Parameters:
- model: The discovered model to analyze
Returns:
- *ModelCapability: The inferred capabilities
func (*Analyzer) AnalyzeBatch ¶
func (a *Analyzer) AnalyzeBatch(models []*DiscoveredModel) []*ModelCapability
AnalyzeBatch infers capabilities for multiple models in batch.
Parameters:
- models: List of discovered models to analyze
Returns:
- []*ModelCapability: List of inferred capabilities
type DiscoveredModel ¶
DiscoveredModel represents a minimal model structure for analysis. This avoids import cycles with the discovery package.
type ModelCapability ¶
type ModelCapability struct {
SupportsCoding bool `json:"supports_coding"`
SupportsReasoning bool `json:"supports_reasoning"`
SupportsVision bool `json:"supports_vision"`
ContextWindow int `json:"context_window"`
EstimatedLatency string `json:"estimated_latency"`
CostTier string `json:"cost_tier"`
IsLocal bool `json:"is_local"`
}
ModelCapability represents inferred capabilities for a model.