Class: HermesAgent::Client::Entities::ChatMessage
- Inherits:
-
HermesAgent::Client::Entity
- Object
- HermesAgent::Client::Entity
- HermesAgent::Client::Entities::ChatMessage
- Defined in:
- lib/hermes_agent/client/entities/chat_completion.rb
Overview
A single message in a chat completion (the message of a
ChatChoice).
Instance Method Summary collapse
-
#content ⇒ String?
The message content.
-
#role ⇒ String?
The role of the message author, e.g.
Methods inherited from HermesAgent::Client::Entity
Instance Method Details
#content ⇒ String?
The message content. For a plain text completion this is the
assistant's reply string; it may be nil (e.g. for tool calls).
27 28 29 |
# File 'lib/hermes_agent/client/entities/chat_completion.rb', line 27 def content self["content"] end |
#role ⇒ String?
The role of the message author, e.g. "assistant".
18 19 20 |
# File 'lib/hermes_agent/client/entities/chat_completion.rb', line 18 def role self["role"] end |