feat(opportunities): award fields and the awarded / awardee_uei filters - #74
Merged
Merged
Conversation
Tango API 5.5.0 adds award information to opportunities and notices. `list_opportunities()` gains `awarded` and `awardee_uei` filters, and the opportunity shape schema accepts `awarded`, `award_date`, `award_amount`, `awardee`, `awardee_uei`, `award_count`, `solicitation_opportunity_id` and the `awards(...)` expand. The notice shape schema accepts the four award leaves. The vendored API contract is refreshed to 5.5.0 and the shape overlay regenerated from it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vdavez
marked this pull request as ready for review
September 30, 2026 01:49
… list_opportunities Inserting `awarded` / `awardee_uei` alphabetically shifted every later positional argument, so an existing positional call would have sent its date as `awarded`. They now come after the existing parameters, behind `*`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Supports the opportunity and notice award fields added in Tango API 5.5.0.
list_opportunities()gains two filters:awarded(bool) andawardee_uei(case-insensitive; OR several with|). Both search every opportunity rather than only active ones, so combine withactive=Trueto narrow to open opportunities.awarded,award_date,award_amount,awardee,awardee_uei,award_count,solicitation_opportunity_idand anawards(...)expand (opportunity_id,notice_id,award_number,award_date,award_amount,awardee,awardee_uei). The same fields are accepted underlist_vehicles(shape="opportunity(...)").award_date,award_amount,awardeeandawardee_uei.OpportunityandNoticeschema dataclasses gain the matching fields, anddocs/API_REFERENCE.mdgets a short section with an example.tango/shapes/generated_overlay.pyis regenerated from it. Types for the new paths are recorded incontracts/observed_shape_types.jsonso the generator resolvesawardedas bool,award_amountas str, andawardsas a list.Caveats worth knowing
award_amountis the text SAM.gov published, not a number.awards(...)lists up to ten of the most recent linked awards;award_countis the full count.OPPORTUNITIES_MINIMAL/NOTICES_MINIMALare unchanged), so callers name them inshape.Testing
uv run ruff format --check tango/,uv run ruff check tango/,uv run mypy tango/: clean.uv run python scripts/check_filter_shape_conformance.py: no errors.uv run python scripts/check_shape_coverage.py: no new drift.uv run pytest: 581 passed, 31 skipped. Newtests/test_opportunity_awards.pycovers shape validation for the new fields, response parsing onget_opportunity/list_notices, and that the two filters reach the request.🤖 Generated with Claude Code