pub enum TaskClass {
Fast,
Balanced,
Power,
Embedding,
}Expand description
Generic routing class for a unit of work.
This replaces clawdius’s coding-workflow-shaped TaskType. The intended
mapping (also enforced by TaskClass::for_phase_name and documented in
the crate root):
Think,Test,Summarize→TaskClass::FastPlan,Review,Chat→TaskClass::BalancedBuild→TaskClass::Power- embedding work →
TaskClass::Embedding
Variants§
Fast
Low-stakes work that should use the cheapest acceptable model (thinking, testing, summarization).
Balanced
Everyday work handled well by a mid-tier model (planning, review, general chat).
Power
High-stakes generation that needs the strongest available model (code generation, architecture).
Embedding
Embedding work; routed to an embedding model, never a chat model.
Implementations§
Source§impl TaskClass
impl TaskClass
Sourcepub fn for_phase_name(phase: &str) -> Self
pub fn for_phase_name(phase: &str) -> Self
Map a phase/step name to a task class.
Accepts the clawdius phase vocabulary (think, plan, build,
implement, code, test, verify, review, reflect,
summarize) plus embed/embedding(s) and chat; matching is
case-insensitive. Unknown names map to TaskClass::Balanced.