Open
Description
I have an arbitrary PHP data class. I'd like to use Valinor to generate its representation as JSON Schema. It can be used as an input field for LLM (e.g. OpenAI or Anthropic) endpoint. LLM API responds with JSON following this JSON Schema. Then I can use Valinor deserializer to hydrate PHP object with the values from JSON, validate, etc.
See following example for code illustrating practical use case for such capability in Valinor:
https://docs.instructorphp.com/cookbook/examples/basics/complex_extraction
Metadata
Assignees
Labels
No labels