Metis — Record Routing Preference
record_routing_preferenceRecord the user's routing preference for requests: set a persistent rule or acknowledge a one-time route to a specific agent.
Instructions
Active-learning routing. After Metis asks the user 'should I always route requests like this to , or just this once?', call this with their answer.
scope='always' writes a permanent, high-priority rule (beats the built-in seeds)
into the routing DB — part of institutional memory, persists across Metis updates.
scope='once' is acknowledged but not stored.
Args:
phrase: the trigger word/phrase the user wants routed (e.g. "spatial scan").
agent_slug: which agent to route it to (e.g. "epidemiologist").
scope: 'always' (persist) or 'once' (don't store).
priority: lower = more specific / checked first (default 5 beats all seeds).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | always | |
| phrase | Yes | ||
| priority | No | ||
| agent_slug | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |