role property

Role get role

The expected Role for this message in the prompt (multi-message prompt flows may outline a back and forth between users and assistants).

Implementation

Role get role =>
    Role.values.firstWhere((role) => role.name == _value['role']);