Skip to content

Conversation

@khvn26
Copy link
Member

@khvn26 khvn26 commented Oct 16, 2025

In this PR, we restore the OfflineHandler interface from v3.x, with a number of improvements:

  • Both BaseOfflineHandler abstract base class and OfflineHandler protocol are available to ensure compatibility in runtime and typecheck time.
  • All the fields and sub-models not required for the SDK are stripped.
  • EnvironmentModel is now a TypedDict rather than a Pydantic model; it still can be instantiated in a compatible manner, and used for validation, e.g., against an Pydantic type adapter. LocalFileHandler performs validation by running an evaluation context mapper.

Review difficulty: 2/5

@khvn26 khvn26 requested a review from a team as a code owner October 16, 2025 01:21
@khvn26 khvn26 requested review from gagantrivedi and removed request for a team October 16, 2025 01:21
@khvn26 khvn26 changed the title feat!: Restore priorOfflineHandler interface feat!: Restore v3 OfflineHandler interface Oct 16, 2025
@khvn26 khvn26 merged commit 374e292 into main Oct 16, 2025
7 checks passed
@khvn26 khvn26 deleted the feat/old-school-offline-handlers branch October 16, 2025 09:04
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