WordPress\AiClient\Builders

PromptBuilder::usingSystemInstruction │ public │ WP 0.1.0

Sets the system instruction.

System instructions are stored in the model configuration and guide the AI model's behavior throughout the conversation.

Метод класса: PromptBuilder{}

Хуков нет.

Возвращает

self.

Использование

$PromptBuilder = new PromptBuilder();
$PromptBuilder->usingSystemInstruction( $systemInstruction ): self;
$systemInstruction(строка) (обязательный)
The system instruction text.

Список изменений

С версии 0.1.0 Введена.

Код PromptBuilder::usingSystemInstruction() WP 7.1.4

public function usingSystemInstruction(string $systemInstruction): self
{
    $this->modelConfig->setSystemInstruction($systemInstruction);
    return $this;
}