Overview
When you have many skills loaded, auto-selection uses embedding similarity to pick only the most relevant ones for each task. This keeps the agent’s system prompt lean and focused.Usage
How It Works
- Skill descriptions and the task description are converted to embedding vectors
- Cosine similarity is computed between each skill’s description and the task
- The top
max_skillsskills are included in the system prompt
If auto-select fails (e.g. embedding provider error), it falls back to returning the first
max_skills skills in load order.Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
auto_select | bool | False | Enable embedding-based skill selection |
max_skills | int | 5 | Maximum skills to include in system prompt |
embedding_provider | object | None | Provider with embed_texts() method |

