WordPress\AiClient\Builders
PromptBuilder::usingSystemInstruction
Sets the system instruction.
System instructions are stored in the model configuration and guide the AI model's behavior throughout the conversation.
Method of the class: PromptBuilder{}
No Hooks.
Returns
self.
Usage
$PromptBuilder = new PromptBuilder(); $PromptBuilder->usingSystemInstruction( $systemInstruction ): self;
- $systemInstruction(string) (required)
- The system instruction text.
Changelog
| Since 0.1.0 | Introduced. |
PromptBuilder::usingSystemInstruction() PromptBuilder::usingSystemInstruction code WP 7.0
public function usingSystemInstruction(string $systemInstruction): self
{
$this->modelConfig->setSystemInstruction($systemInstruction);
return $this;
}