Skip to content

Conversation

@chr-hertel
Copy link
Member

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.

4 participants