Skip to content

API Reference parrot.clients.amazon.budget_qualifications

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.clients.amazon.budget_qualifications

View source

Strict-qualification registry for Bedrock/Mantle question budgets (FEAT-550, spec §2.5).

Ships EMPTY on purpose: on the inspected environment (botocore 1.35.36, openai 3.3.1) no model/route/SDK combination is qualified for strict admission. Records are only added after an opt-in live probe (see examples/clients/smoke/smoke_token_budget_qualification.py).

Class QualificationKey

Exact tuple that must match for strict admission — no wildcards (spec §2.5).

Parameter Type Default Description
model str
endpoint str
route str
tools bool
schema bool
cache bool
thinking bool
stream bool
sdk_versions tuple[tuple[str, str], ...]
count_method str
output_cap_semantics str

Fields:

Field Type Default Description
model str
endpoint str
route str
tools bool
schema bool
cache bool
thinking bool
stream bool
sdk_versions tuple[tuple[str, str], ...]
count_method str
output_cap_semantics str

Class QualificationRecord

A passing probe record; evidence_ref points at the committed artifacts/logs entry.

Parameter Type Default Description
key QualificationKey
qualification_id str
evidence_ref str

Fields:

Field Type Default Description
key QualificationKey
qualification_id str
evidence_ref str

Attribute STRICT_QUALIFICATIONS

Type: tuple[QualificationRecord, ...]

Function installed_sdk_versions

Return sorted (name, version) pairs for installed distributions; missing → "absent".

installed_sdk_versions(*names: str) -> tuple[tuple[str, str], ...]

Parameter Type Default Description
*names str ()

Returns: tuple[tuple[str, str], ...]

Function match_qualification

Exact-match lookup; returns None when unqualified.

match_qualification(key: QualificationKey, *, registry: tuple[QualificationRecord, ...] = STRICT_QUALIFICATIONS) -> Optional[QualificationRecord]

Parameter Type Default Description
key QualificationKey
registry tuple[QualificationRecord, ...] STRICT_QUALIFICATIONS

Returns: Optional[QualificationRecord]

Function probe_count_tokens_support

True only if the INSTALLED botocore service model exposes Runtime CountTokens (no network, no credentials).

probe_count_tokens_support() -> bool

Returns: bool

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally