Skip to content

Add Tier 2 Pydantic models: sessions and batches - #27

Merged
mehmetkr merged 1 commit into
mainfrom
tier2-models-sessions-batches
Dec 1, 2026
Merged

mehmetkr merged 1 commit into
mainfrom
tier2-models-sessions-batches

Conversation

@mehmetkr

@mehmetkr mehmetkr commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add sessions.py with 8 models: SessionTriggerConfig, SessionObject, CreateSessionRequestBody, CreatedSessionResponseBody (allOf inheritance), UpdateSessionRequestBody, CloseSessionRequestBody, SessionsPagination, ListSessionsResult
  • Add batches.py with 5 models + 1 Literal: BatchStatus, BatchErrorItem, BatchObject, BatchResultUsage, BatchResultItem, BatchResultsResponse
  • Export all 14 new types from types/__init__.py
  • 14 tests covering roundtrip, alias resolution, inheritance, optionality

Part 1/3 of Tier 2 model generation (run orchestration domain). Stack: this PR -> #28 -> #29.

Test plan

  • ./scripts/ci-local.sh passes (ruff, pyright strict, mypy strict, 262 tests)
  • All models validated against OpenAPI spec field-by-field

@mehmetkr
mehmetkr merged commit 3a095c1 into main Dec 1, 2026
7 checks passed
@mehmetkr
mehmetkr deleted the tier2-models-sessions-batches branch December 1, 2026 23:43
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.

1 participant