<?php
namespace App\AI\Api\Gemini\Interactions; class Input implements \JsonSerializable { public $type; public $name; public $content; public $arguments; public $id; public $call_id; public $is_error; public $result; public function jsonSerialize(): mixed { if (is_null($this->type)) { unset($this->type); } if (is_null($this->name)) { unset($this->name); } if (is_null($this->content)) { unset($this->content); } if (is_null($this->arguments) || empty($this->arguments)) { unset($this->arguments); } if (is_null($this->id)) { unset($this->id); } if (is_null($this->call_id)) { unset($this->call_id); } if (is_null($this->is_error)) { unset($this->is_error); } if (is_null($this->result) || empty($this->result)) { unset($this->result); } return $this; } } 