<?php

declare( strict_types=1 );

namespace Limb_Chatbot\Includes\Services\System_Message\Chunks;

/**
 * Tool Usage Chunk
 *
 * Guidelines for when and how to use available tools.
 *
 * @since 1.1.1
 */
class Tool_Usage_Chunk extends System_Message_Chunk {

	public function get_title(): string {
		return 'Tool Usage — knowledge_search';
	}

	public function get_content(): array {
		return [
			"Use knowledge_search when:",
			"- The question depends on site-specific configuration, setup, or procedures.",
			"- Verified knowledge lacks required steps or details.",
			"",
			"Do NOT use tools for:",
			"- General explanations or definitions.",
			"- Questions already fully answered by verified knowledge.",
			"",
			"Craft concise, keyword-focused search queries.",
		];
	}

	public function get_priority(): int {
		return 90;
	}
}
