Repository navigation
Upcoming Forge 0.11.0: breaking Python API changes #174
antoinezambelli
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I’ve mentioned this refactor in a few PR threads, and it’s been “in progress” for longer than I intended. Sorry for the wait—and thank you to everyone who contributed fixes and helpful stopgaps along the way. I was cooking on a few other things, and life got in the way too. Those contributions were genuinely appreciated.
The refactor is now implemented and through review and local validation. Before releasing it, I want to give people using Forge as a Python library a heads-up and a chance to try their integrations.
Proxy users: no setup changes required. If you use
forge-proxyorpython -m forge.proxythrough its HTTP endpoints, your existing configuration, profiles, and supported client integrations remain valid.Python library users: this is a breaking update. Tool registration, message/response types, callbacks, and low-level client interfaces have changed. The old types are removed rather than retained behind compatibility aliases.
The underlying goal is consistent conversation handling: preserving text, reasoning, tool calls, and results through backend conversion and retries, instead of switching between different representations and losing information along the way.
The migration guide has the old/new API mappings and before/after examples. The implementation is in PR #173.
If you embed Forge directly, I’d appreciate feedback on anything the guide misses—or any integration that’s harder to migrate than expected. You can try the branch in a test environment:
pip install "git+https://github.com/antoinezambelli/forge.git@az/canonical-primitives"If you’re not ready to migrate, constrain your dependency to
forge-guardrails>=0.10.2,<0.11for now.I’ll post again when 0.11.0 is released.
All reactions