Skip to content

Add explicit BaseLM forward contract - #5

Open
MaximeRivest wants to merge 3 commits into
baselm-typed-call-pr1from
baselm-forward-contract-pr2
Open

MaximeRivest wants to merge 3 commits into
baselm-typed-call-pr1from
baselm-forward-contract-pr2

Conversation

@MaximeRivest

Copy link
Copy Markdown
Owner

Adds an explicit forward_contract marker to BaseLM as the migration hook for the typed LM API.\n\nThis PR keeps the default contract as "legacy" and introduces "typed_lm" as the opt-in contract for future LMs that implement forward(request: LMRequest) -> LMResponse.\n\nIt also adds small validation helpers for typed LM responses and warnings for legacy-declared LMs that already return LMResponse. No public LM call behavior changes in this PR.

@MaximeRivest
MaximeRivest force-pushed the baselm-forward-contract-pr2 branch 2 times, most recently from 7bc864c to 83d98ff Compare May 27, 2026 14:35
@MaximeRivest
MaximeRivest force-pushed the baselm-forward-contract-pr2 branch from 83d98ff to ec05c80 Compare May 27, 2026 14:40
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