Skip to content

feat: add typed message tags - #24

Merged
bjarn merged 1 commit into
mainfrom
eng-577-typed-message-tags
Sep 10, 2026
Merged

feat: add typed message tags#24
bjarn merged 1 commit into
mainfrom
eng-577-typed-message-tags

Conversation

@bjarn

@bjarn bjarn commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add the exported MessageTag data class.
  • Accept MessageTag objects and the existing dictionary input in sync and async builders.
  • Normalize typed tags for batch requests.
  • Keep tag() for the legacy single tag.

Validation

  • Enforce the documented name and value formats.
  • Reject reserved __lettermint names without regard to case.
  • Reject duplicate case-sensitive names.
  • Allow 20 total tags, including the legacy single tag.

Documentation

  • Update the README, synchronous example, and asynchronous example.

Verification

  • uv run pytest -q
  • uv run ruff check .
  • uv run ruff format --check .
  • uv run mypy src

@bjarn bjarn changed the title feat: add typed message tags (ENG-577) feat: add typed message tags Sep 10, 2026
@bjarn
bjarn requested a review from Bjornftw September 10, 2026 17:55
@bjarn
bjarn merged commit 6976529 into main Sep 10, 2026
8 checks passed
@bjarn
bjarn deleted the eng-577-typed-message-tags branch September 10, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants