package capability

import (
    "ai_scheduler/internal/domain/llm"
)

func Validate(ability Ability, opts llm.Options) error {
    if ability == Vision {
        has := false
        for _, m := range opts.Modalities {
            if m == "image" {
                has = true
                break
            }
        }
        if !has {
            return llm.ErrModalityMismatch
        }
    }
    return nil
}

