This package can create objects (DTOs) from responses to AI prompts.
It provides a hydrator class and provider classes to access artificial intelligence API services to send prompt texts with requests using natural language.
The artificial intelligence provider classes can adapt the accesses to different artificial intelligence services like OpenAI.
The hydrator class can use the PHP reflection API to return a data transfer object that applications can use to process the artificial intelligence service response in some useful way for the application.
The returned data transfer object has getter functions to return values of types supported by PHP (int, float, bool, string, DateTime). |