You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: