<?phprequire'examples/boot.php';useCognesy\Instructor\StructuredOutput;useCognesy\Polyglot\Inference\Enums\OutputMode;useIlluminate\Http\Client\Factory;classUser{publicint$age;publicstring$name;}$yourLaravelClientInstance=newFactory();$user=(newStructuredOutput())->using('openai')//->withDebugPreset('on')//->wiretap(fn($e) => $e->print())->withLLMConfigOverrides(['apiUrl'=>'https://api.openai.com/v1'])->withClientInstance(driverName:'laravel',clientInstance:$yourLaravelClientInstance)->withMessages("Our user Jason is 25 years old.")->withResponseClass(User::class)->withOutputMode(OutputMode::Tools)//->withStreaming()->get();dump($user);assert(isset($user->name));assert(isset($user->age));?>