Skip to main content

Crate skm_select

Crate skm_select 

Source
Expand description

§skm-select

Multi-strategy cascading skill selection engine.

This crate provides:

  • SelectionStrategy trait for pluggable selection algorithms
  • TriggerStrategy for fast regex/keyword matching (µs)
  • SemanticStrategy for embedding-based similarity (ms)
  • LlmStrategy for LLM classification fallback (s)
  • FewShotEnhanced wrapper for dynamic few-shot injection
  • CascadeSelector for composing strategies with early-exit

Structs§

CascadeConfig
Configuration for the cascade selector.
CascadeSelector
Cascading skill selector.
CascadeSelectorBuilder
Builder for ergonomic cascade construction.
FewShotEnhanced
Wraps any strategy with dynamic few-shot example injection.
FewShotExample
A few-shot example for training.
LlmStrategy
LLM-based intent classification for ambiguous queries.
LlmStrategyConfig
Configuration for LLM strategy.
SelectionContext
Context available during selection.
SelectionOutcome
Complete outcome of a selection, with full audit trail.
SelectionResult
Result of a selection operation.
SemanticConfig
Configuration for semantic selection.
SemanticStrategy
Embedding-based semantic similarity search.
TriggerStrategy
Fast-path matching using patterns defined in skill metadata.

Enums§

Confidence
Confidence level for a selection result.
LatencyClass
Latency class for a strategy.
LlmError
LLM-specific errors.
MergeStrategy
How to merge results from multiple strategies.
SelectError
Errors from selection operations.

Traits§

LlmClient
LLM client trait — users implement for their LLM provider.
SelectionStrategy
A skill selection strategy.