<?php
namespace boru\boruai\Openai\Response\Parts\Content;
use boru\boruai\Openai\Models\BaseModel;

/*
"type"=> "function_call_output",
            "call_id"=>$this->tool_call_id,
            "output"=>$output
            */
class FunctionCallOutput extends BaseModel {
    private $type = "function_call_output";
    private $callId;
    private $output;

    public function type($type=null) {
        if ($type) {
            $this->type = $type;
        }
        return $this->type;
    }
    public function callId($callId=null) {
        if ($callId) {
            $this->callId = $callId;
        }
        return $this->callId;
    }
    public function output($output=null) {
        if ($output) {
            $this->output = $output;
        }
        return $this->output;
    }

    public function toArray(){
        $array = [];
        if($this->type) {
            $array["type"] = $this->type;
        }
        if($this->callId) {
            $array["call_id"] = $this->callId;
        }
        if($this->output) {
            $array["output"] = $this->output;
        }
        return $array;
    }
}