Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var PortableBudgets = map[Reasoning]int{ ReasoningOff: 0, ReasoningLow: 2048, ReasoningMedium: 8192, ReasoningHigh: 32768, }
PortableBudgets are fallback named reasoning token budgets.
Functions ¶
func BudgetForNamed ¶ added in v0.12.2
BudgetForNamed returns the PortableBudgets token budget for a named reasoning tier. Returns 0 for tiers without a portable budget (off, minimal, xhigh, max).
Types ¶
type Reasoning ¶
type Reasoning string
Reasoning is the canonical scalar for model-side reasoning controls.
func NearestTierForTokens ¶ added in v0.12.2
NearestTierForTokens snaps a token count to the nearest PortableBudgets tier using log2-scale distance; ties round up to the higher tier. Boundaries (geometric midpoints): <4096 → low, [4096,16384) → medium, ≥16384 → high.
func ReasoningTokens ¶
ReasoningTokens returns a numeric reasoning-token request.
func (*Reasoning) UnmarshalJSON ¶
type ResolutionSource ¶ added in v0.12.2
type ResolutionSource string
const ( ResolutionSourceCaller ResolutionSource = "caller" ResolutionSourceSnapped ResolutionSource = "snapped" ResolutionSourceDefault ResolutionSource = "default" )
type SupportedResolution ¶ added in v0.12.2
type SupportedResolution struct {
Policy Policy
Source ResolutionSource
Warning string
Reason string
Supported []Reasoning
}
func ResolveAgainstSupportedLevels ¶ added in v0.12.2
func ResolveAgainstSupportedLevels(policy Policy, supportedLevels []string) (SupportedResolution, error)
ResolveAgainstSupportedLevels validates a caller policy against discovered harness reasoning levels. Empty or unparsable support lists deliberately keep the existing behavior: the caller policy is returned unchanged.