Sets the role of the message sender.
Parameters
$roleWordPressAiClientMessagesEnumsMessageRoleEnumrequired- The role to set.
Source
public function usingRole(MessageRoleEnum $role): self
{
$this->role = $role;
return $this;
}
Changelog
| Version | Description |
|---|---|
| 0.2.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.