Lines Matching refs:prompt
142 $prompt = $this->loadPrompt($action, $metadata);
144 return $this->callAPI($action, $prompt, $metadata, $useContext);
253 * @param string $prompt The prompt to send to the LLM as user message
260 … private function callAPI($command, $prompt, $metadata = [], $useContext = true, $useTools = false) argument
307 $prompt = $contextInfo . "\n\n" . $prompt;
315 ['role' => 'user', 'content' => $prompt]
579 $prompt = $this->getPageContent($promptPageId);
582 if ($prompt === false && $this->profile !== 'default') {
584 $prompt = $this->getPageContent($promptPageId);
588 if ($prompt === false) {
593 $placeholders = $this->findPlaceholders($prompt);
644 $prompt = str_replace('{' . $placeholder . '}', $value, $prompt);
648 return $prompt;