PromptBuilder::usingSystemInstruction( string $systemInstruction ): self

In this article

Sets the system instruction.

Description

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

Parameters

$systemInstructionstringrequired
The system instruction text.

Return

self

Source

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

Changelog

VersionDescription
0.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.