' . $this->role . "\n" . $this->content . "\n<|im_end|>"; } /** * Returns the type of the message, used for serialization. * * @return string */ public function getType(): string { return 'chat'; } public function getRole(): string { return $this->role; } }