<?php
namespace App\AI\Api\Gemini\Interactions; class Body implements \JsonSerializable { public $model; public $system_instruction; public $input = []; public $tools = []; public $generation_config; public $store = false; public function addInput(\App\AI\Api\Gemini\Interactions\Input $inputObj) { $this->input[] = $inputObj; } public function addTool(\App\AI\Api\Gemini\Interactions\Tool $toolObj) { $this->tools[] = $toolObj; } public function jsonSerialize(): mixed { if (is_null($this->model)) { unset($this->model); } if (is_null($this->system_instruction)) { unset($this->system_instruction); } if (is_null($this->input)) { unset($this->input); } if (is_null($this->tools)) { unset($this->tools); } if (is_null($this->generation_config)) { unset($this->generation_config); } if (is_null($this->store)) { unset($this->store); } return $this; } } 