Skip to content

feat: allow JsonSerializable objects in contract #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 6, 2025

Conversation

chr-hertel
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
Docs? no
Issues
License MIT

Cherry picking php-llm/llm-chain#377

As brought up in #371 it could be a possible extension point to the
contract to reintroduce the support for `JsonSerializable` objects when
there are no normalizers for an object.

So it would be a possible alternative for custom `MessageBagInterface`,
`MessageInterface`, `ContentInterface`, etc. by allowing them to
implement the `JsonSerializable` interface.
@chr-hertel chr-hertel requested a review from Nyholm as a code owner July 6, 2025 20:53
@chr-hertel chr-hertel changed the title feat: allow JsonSerializable objects in contract (#377) feat: allow JsonSerializable objects in contract Jul 6, 2025
@chr-hertel chr-hertel added the Platform Issues & PRs about the AI Platform component label Jul 6, 2025
@chr-hertel chr-hertel merged commit 7e8b3b4 into main Jul 6, 2025
24 checks passed
@chr-hertel chr-hertel deleted the allow-json-serializable-objects-in-contract branch July 6, 2025 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform Issues & PRs about the AI Platform component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants