Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/agent / preferred-model / pickTopTierAcrossTools
Function: pickTopTierAcrossTools()
ts
function pickTopTierAcrossTools(hints):
| {
hint: ModelHint;
spec?: ModelSpec;
}
| undefined;Defined in: packages/agent/src/preferred-model/index.ts:82
Pick the highest-cost tier across the supplied per-tool hints. Explicit ModelSpec entries are treated as the highest tier ('smart') for tie-breaking — the conservative-correctness rule documented in DEC-169 / suggested ADR-057.
Returns the picked hint together with the original ModelSpec (when an explicit spec won the tie-break).
Parameters
| Parameter | Type |
|---|---|
hints | readonly ( | ModelHint | ModelSpec | undefined)[] |
Returns
| { hint: ModelHint; spec?: ModelSpec; } | undefined