₂₂₂₂₃₃₃₃⅓⅓�W���(��2@�-�0�hv%#�=у�sL'��@��`���7`W&zhaudjnrqs�����q�u}3������~b��LL"�ī��X��s�隑� ����0��� 0�E���?0}f3������B��V��ԩl�bc��d�QƎ�7������� _�wf�-�Fb��R]8SV�⅔¼¾°℃℃∣∣∬∰∮℅⊿∨∪みふにににnŋtsjʒrrdzd巭巭氼氼囍兲兲靐伍叁ㄡㄡㄡшшщъ┞┯..;~& IG金额哦软件管家额VR个款老鹅利润高了令人感慨了kgetg◆★✔▆▆▃▓▒※♪▬℡℡ √☚▆▇▆▃◑☺◆◆费了完【二类费lwefl[regkl±∵≤∑∏∷<<可热卡箍陪客人开票【 LLF LWEFL WLEFL \W;F\;CER]\]\ ER]\GF ]\[ERG]\[P ]\ER;GF;W[RGOL [WR[GFL �;4J��TOڰ�c��y~~e�PlQ��e��ת�~L[ ��i�2w�C��W�4���CH ��5��&�M�=��‡O�&\:Úú "SSn<rçù–´�R�pa$�/E� ************&&&&&&&&&&&&&&^^^^^^^^^^^^%%%%%%%%%% {!��N���! O��`F..>>>>>>>>>>> 0˜S�4 &m�[��� @9��~i8� ����d!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! @@@@@@@@&&&&&&&&&& kgfpok ergjf ?????????????? ???????????? DTO/FunctionResponse.php000064400000007313152505275010011215 0ustar00 */ class FunctionResponse extends AbstractDataTransferObject { public const KEY_ID = 'id'; public const KEY_NAME = 'name'; public const KEY_RESPONSE = 'response'; /** * @var string|null The ID of the function call this is responding to. */ private ?string $id; /** * @var string|null The name of the function that was called. */ private ?string $name; /** * @var mixed The response data from the function. */ private $response; /** * Constructor. * * @since 0.1.0 * * @param string|null $id The ID of the function call this is responding to. * @param string|null $name The name of the function that was called. * @param mixed $response The response data from the function. * @throws InvalidArgumentException If neither id nor name is provided. */ public function __construct(?string $id, ?string $name, $response) { if ($id === null && $name === null) { throw new InvalidArgumentException('At least one of id or name must be provided.'); } $this->id = $id; $this->name = $name; $this->response = $response; } /** * Gets the function call ID. * * @since 0.1.0 * * @return string|null The function call ID. */ public function getId(): ?string { return $this->id; } /** * Gets the function name. * * @since 0.1.0 * * @return string|null The function name. */ public function getName(): ?string { return $this->name; } /** * Gets the function response. * * @since 0.1.0 * * @return mixed The response data. */ public function getResponse() { return $this->response; } /** * {@inheritDoc} * * @since 0.1.0 */ public static function getJsonSchema(): array { return ['type' => 'object', 'properties' => [self::KEY_ID => ['type' => 'string', 'description' => 'The ID of the function call this is responding to.'], self::KEY_NAME => ['type' => 'string', 'description' => 'The name of the function that was called.'], self::KEY_RESPONSE => ['type' => ['string', 'number', 'boolean', 'object', 'array', 'null'], 'description' => 'The response data from the function.']], 'anyOf' => [['required' => [self::KEY_RESPONSE, self::KEY_ID]], ['required' => [self::KEY_RESPONSE, self::KEY_NAME]]]]; } /** * {@inheritDoc} * * @since 0.1.0 * * @return FunctionResponseArrayShape */ public function toArray(): array { $data = []; if ($this->id !== null) { $data[self::KEY_ID] = $this->id; } if ($this->name !== null) { $data[self::KEY_NAME] = $this->name; } $data[self::KEY_RESPONSE] = $this->response; return $data; } /** * {@inheritDoc} * * @since 0.1.0 */ public static function fromArray(array $array): self { static::validateFromArrayData($array, [self::KEY_RESPONSE]); return new self($array[self::KEY_ID] ?? null, $array[self::KEY_NAME] ?? null, $array[self::KEY_RESPONSE]); } } DTO/error_log000064400000045620152505275010007120 0ustar00[15-Jul-2026 16:16:38 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php on line 20 [15-Jul-2026 16:16:38 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php:19 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php on line 19 [15-Jul-2026 16:16:38 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php:23 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php on line 23 [15-Jul-2026 16:16:38 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php on line 20 [24-Jul-2026 12:15:18 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php on line 20 [24-Jul-2026 12:15:19 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php:19 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php on line 19 [24-Jul-2026 12:15:19 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php on line 20 [24-Jul-2026 12:15:19 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php:23 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php on line 23 [25-Jul-2026 05:33:42 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php:23 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php on line 23 [25-Jul-2026 05:33:42 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php:19 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php on line 19 [25-Jul-2026 05:33:43 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php on line 20 [25-Jul-2026 05:33:43 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php on line 20 [04-Aug-2026 23:27:57 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php:23 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php on line 23 [04-Aug-2026 23:27:57 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php:19 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php on line 19 [04-Aug-2026 23:27:58 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php on line 20 [04-Aug-2026 23:27:58 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php on line 20 [13-Aug-2026 01:33:07 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php:19 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php on line 19 [13-Aug-2026 01:33:08 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php:23 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php on line 23 [13-Aug-2026 01:33:08 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php on line 20 [13-Aug-2026 01:33:08 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php on line 20 [13-Aug-2026 13:00:16 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php on line 20 [13-Aug-2026 13:00:16 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php:19 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php on line 19 [13-Aug-2026 13:00:17 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php:23 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php on line 23 [13-Aug-2026 13:00:17 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php on line 20 [19-Aug-2026 21:32:07 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php:23 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php on line 23 [19-Aug-2026 21:32:07 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php on line 20 [19-Aug-2026 21:32:07 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php:19 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php on line 19 [19-Aug-2026 21:32:07 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php on line 20 [19-Aug-2026 22:05:36 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php on line 20 [19-Aug-2026 22:05:37 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php on line 20 [19-Aug-2026 22:05:37 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php:23 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php on line 23 [19-Aug-2026 22:05:37 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php:19 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php on line 19 [19-Aug-2026 23:24:46 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php on line 20 [19-Aug-2026 23:24:46 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php:19 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php on line 19 [19-Aug-2026 23:24:46 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php:23 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php on line 23 [19-Aug-2026 23:24:46 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php on line 20 [03-Sep-2026 06:47:01 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php:19 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php on line 19 [03-Sep-2026 06:47:46 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php on line 20 [03-Sep-2026 06:47:59 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php:23 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php on line 23 [03-Sep-2026 06:49:03 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php on line 20 [03-Sep-2026 23:30:28 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php:23 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php on line 23 [03-Sep-2026 23:30:28 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php on line 20 [03-Sep-2026 23:30:30 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php on line 20 [03-Sep-2026 23:30:43 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php:19 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php on line 19 [05-Sep-2026 07:01:31 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php:23 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php on line 23 [05-Sep-2026 07:01:32 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php on line 20 [05-Sep-2026 07:01:33 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php on line 20 [05-Sep-2026 07:02:01 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php:19 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php on line 19 [08-Sep-2026 18:12:49 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php:23 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionDeclaration.php on line 23 [08-Sep-2026 18:12:50 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionCall.php on line 20 [08-Sep-2026 18:12:50 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php:20 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/FunctionResponse.php on line 20 [08-Sep-2026 18:56:20 UTC] PHP Fatal error: Uncaught Error: Class "WordPress\AiClient\Common\AbstractDataTransferObject" not found in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php:19 Stack trace: #0 {main} thrown in /home/veronikagstoette/public_html/wp-includes/php-ai-client/src/Tools/DTO/WebSearch.php on line 19 DTO/FunctionCall.php000064400000007133152505275010010272 0ustar00 */ class FunctionCall extends AbstractDataTransferObject { public const KEY_ID = 'id'; public const KEY_NAME = 'name'; public const KEY_ARGS = 'args'; /** * @var string|null Unique identifier for this function call. */ private ?string $id; /** * @var string|null The name of the function to call. */ private ?string $name; /** * @var mixed The arguments to pass to the function. */ private $args; /** * Constructor. * * @since 0.1.0 * * @param string|null $id Unique identifier for this function call. * @param string|null $name The name of the function to call. * @param mixed $args The arguments to pass to the function. * @throws InvalidArgumentException If neither id nor name is provided. */ public function __construct(?string $id = null, ?string $name = null, $args = null) { if ($id === null && $name === null) { throw new InvalidArgumentException('At least one of id or name must be provided.'); } $this->id = $id; $this->name = $name; $this->args = $args; } /** * Gets the function call ID. * * @since 0.1.0 * * @return string|null The function call ID. */ public function getId(): ?string { return $this->id; } /** * Gets the function name. * * @since 0.1.0 * * @return string|null The function name. */ public function getName(): ?string { return $this->name; } /** * Gets the function arguments. * * @since 0.1.0 * * @return mixed The function arguments. */ public function getArgs() { return $this->args; } /** * {@inheritDoc} * * @since 0.1.0 */ public static function getJsonSchema(): array { return ['type' => 'object', 'properties' => [self::KEY_ID => ['type' => 'string', 'description' => 'Unique identifier for this function call.'], self::KEY_NAME => ['type' => 'string', 'description' => 'The name of the function to call.'], self::KEY_ARGS => ['type' => ['string', 'number', 'boolean', 'object', 'array', 'null'], 'description' => 'The arguments to pass to the function.']], 'anyOf' => [['required' => [self::KEY_ID]], ['required' => [self::KEY_NAME]]]]; } /** * {@inheritDoc} * * @since 0.1.0 * * @return FunctionCallArrayShape */ public function toArray(): array { $data = []; if ($this->id !== null) { $data[self::KEY_ID] = $this->id; } if ($this->name !== null) { $data[self::KEY_NAME] = $this->name; } if ($this->args !== null) { $data[self::KEY_ARGS] = $this->args; } return $data; } /** * {@inheritDoc} * * @since 0.1.0 */ public static function fromArray(array $array): self { return new self($array[self::KEY_ID] ?? null, $array[self::KEY_NAME] ?? null, $array[self::KEY_ARGS] ?? null); } } DTO/WebSearch.php000064400000005502152505275010007552 0ustar00 */ class WebSearch extends AbstractDataTransferObject { public const KEY_ALLOWED_DOMAINS = 'allowedDomains'; public const KEY_DISALLOWED_DOMAINS = 'disallowedDomains'; /** * @var string[] List of domains that are allowed for web search. */ private array $allowedDomains; /** * @var string[] List of domains that are disallowed for web search. */ private array $disallowedDomains; /** * Constructor. * * @since 0.1.0 * * @param string[] $allowedDomains List of domains that are allowed for web search. * @param string[] $disallowedDomains List of domains that are disallowed for web search. */ public function __construct(array $allowedDomains = [], array $disallowedDomains = []) { $this->allowedDomains = $allowedDomains; $this->disallowedDomains = $disallowedDomains; } /** * Gets the allowed domains. * * @since 0.1.0 * * @return string[] The allowed domains. */ public function getAllowedDomains(): array { return $this->allowedDomains; } /** * Gets the disallowed domains. * * @since 0.1.0 * * @return string[] The disallowed domains. */ public function getDisallowedDomains(): array { return $this->disallowedDomains; } /** * {@inheritDoc} * * @since 0.1.0 */ public static function getJsonSchema(): array { return ['type' => 'object', 'properties' => [self::KEY_ALLOWED_DOMAINS => ['type' => 'array', 'items' => ['type' => 'string'], 'description' => 'List of domains that are allowed for web search.'], self::KEY_DISALLOWED_DOMAINS => ['type' => 'array', 'items' => ['type' => 'string'], 'description' => 'List of domains that are disallowed for web search.']], 'required' => []]; } /** * {@inheritDoc} * * @since 0.1.0 * * @return WebSearchArrayShape */ public function toArray(): array { return [self::KEY_ALLOWED_DOMAINS => $this->allowedDomains, self::KEY_DISALLOWED_DOMAINS => $this->disallowedDomains]; } /** * {@inheritDoc} * * @since 0.1.0 */ public static function fromArray(array $array): self { return new self($array[self::KEY_ALLOWED_DOMAINS] ?? [], $array[self::KEY_DISALLOWED_DOMAINS] ?? []); } } DTO/FunctionDeclaration.php000064400000007005152505275010011642 0ustar00 * } * * @extends AbstractDataTransferObject */ class FunctionDeclaration extends AbstractDataTransferObject { public const KEY_NAME = 'name'; public const KEY_DESCRIPTION = 'description'; public const KEY_PARAMETERS = 'parameters'; /** * @var string The name of the function. */ private string $name; /** * @var string A description of what the function does. */ private string $description; /** * @var array|null The JSON schema for the function parameters. */ private ?array $parameters; /** * Constructor. * * @since 0.1.0 * * @param string $name The name of the function. * @param string $description A description of what the function does. * @param array|null $parameters The JSON schema for the function parameters. */ public function __construct(string $name, string $description, ?array $parameters = null) { $this->name = $name; $this->description = $description; $this->parameters = $parameters; } /** * Gets the function name. * * @since 0.1.0 * * @return string The function name. */ public function getName(): string { return $this->name; } /** * Gets the function description. * * @since 0.1.0 * * @return string The function description. */ public function getDescription(): string { return $this->description; } /** * Gets the function parameters schema. * * @since 0.1.0 * * @return array|null The parameters schema. */ public function getParameters(): ?array { return $this->parameters; } /** * {@inheritDoc} * * @since 0.1.0 */ public static function getJsonSchema(): array { return ['type' => 'object', 'properties' => [self::KEY_NAME => ['type' => 'string', 'description' => 'The name of the function.'], self::KEY_DESCRIPTION => ['type' => 'string', 'description' => 'A description of what the function does.'], self::KEY_PARAMETERS => ['type' => 'object', 'description' => 'The JSON schema for the function parameters.', 'additionalProperties' => \true]], 'required' => [self::KEY_NAME, self::KEY_DESCRIPTION]]; } /** * {@inheritDoc} * * @since 0.1.0 * * @return FunctionDeclarationArrayShape */ public function toArray(): array { $data = [self::KEY_NAME => $this->name, self::KEY_DESCRIPTION => $this->description]; if ($this->parameters !== null) { $data[self::KEY_PARAMETERS] = $this->parameters; } return $data; } /** * {@inheritDoc} * * @since 0.1.0 */ public static function fromArray(array $array): self { static::validateFromArrayData($array, [self::KEY_NAME, self::KEY_DESCRIPTION]); return new self($array[self::KEY_NAME], $array[self::KEY_DESCRIPTION], $array[self::KEY_PARAMETERS] ?? null); } }