Releases: cognesy/instructor-php
Releases · cognesy/instructor-php
0.0.7
Bug fix
0.0.6
- Events allow better observability, will help with streaming support (still work in progress)
- Hook points on Instructor class: onEvent(), wiretap()
- onError() if defined allows to make final attempt to recover from error
- More transparent component wiring via Configuration class
- New examples (see: examples/Wiretap/run.php on how to observe execution steps)
0.0.5
- Improved processing - processed classes and properties are cached.
- Changes in the model processing engine to allow more flexible inputs.
- Fixes in examples.
- Bug fixes.
- Code cleanup.
0.0.4
- Easy way to get scalar value responses.
- Better JSONSchema support - can render references (turned off by default).
- New, more flexible processing architecture:
- Custom validators for data models implementing CanSelfValidate contract.
- Return custom JSONSchema by implementing CanProvideSchema contract.
- Take full control over deserialization by implementing CanDeserializeJson contract.
- Return custom values by implementing CanTransformResponse contract.
Documentation, examples and ValidationMixin
- Documentation (mkdocs)
- Example code (see /examples) - can by run from CLI
- ValidationMixin - makes it easy to add custom validation to data models
0.0.2
- Fixes in README
- Renamed Instructor::extract() to respond()
0.0.1
- LLM response deserialization to predefined data model as PHP object (via OpenAI function calling)
- Validation of responses using Symfony Validator
- Optional automatic retries in case of validation errors