Class: Roseflow::Chat::Message
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Roseflow::Chat::Message
show all
- Defined in:
- lib/roseflow/chat/message.rb
Instance Method Summary
collapse
Instance Method Details
#model? ⇒ Boolean
22
23
24
|
# File 'lib/roseflow/chat/message.rb', line 22
def model?
%w(system assistant).include?(role)
end
|
#system? ⇒ Boolean
18
19
20
|
# File 'lib/roseflow/chat/message.rb', line 18
def system?
role == "system"
end
|
#user? ⇒ Boolean
14
15
16
|
# File 'lib/roseflow/chat/message.rb', line 14
def user?
role == "user"
end
|