<?php

namespace Limb_Chatbot\Includes\AI_Providers\Open_Router\Endpoints\Chat_Completion;

use Limb_Chatbot\Includes\Data_Objects\Tool_Result_Message as Parent_Tools_Result_Message;

/**
 * Class Tool_Result_Message
 *
 * Represents the result of a tool call in a chat completion process.
 *
 * @package Limb_Chatbot\Includes\AI_Providers\Open_Router\Endpoints\Chat_Completion
 * @since 1.0.14
 */
class Tool_Result_Message extends Parent_Tools_Result_Message {

	/**
	 * The unique identifier of the related tool call.
	 *
	 * @var string
	 */
	public string $tool_call_id;

	/**
	 * Returns the tool call ID.
	 *
	 * @return string|null
	 * @since 1.0.14
	 */
	public function get_tool_call_id(): ?string {
		return $this->tool_call_id;
	}

	/**
	 * Sets the tool call ID.
	 *
	 * @param string $tool_call_id
	 * @return void
	 * @since 1.0.14
	 */
	public function set_tool_call_id( string $tool_call_id ): void {
		$this->tool_call_id = $tool_call_id;
	}
}
