Class: Ask::Agent::ResponseMessage
- Inherits:
-
Data
- Object
- Data
- Ask::Agent::ResponseMessage
- Defined in:
- lib/ask/agent/chat.rb
Overview
Response message returned by Chat#ask. Presents a message-like response interface for ask-agent internal use.
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#thinking ⇒ Object
readonly
Returns the value of attribute thinking.
-
#tool_calls ⇒ Object
readonly
Returns the value of attribute tool_calls.
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content
7 8 9 |
# File 'lib/ask/agent/chat.rb', line 7 def content @content end |
#thinking ⇒ Object (readonly)
Returns the value of attribute thinking
7 8 9 |
# File 'lib/ask/agent/chat.rb', line 7 def thinking @thinking end |
#tool_calls ⇒ Object (readonly)
Returns the value of attribute tool_calls
7 8 9 |
# File 'lib/ask/agent/chat.rb', line 7 def tool_calls @tool_calls end |
Instance Method Details
#to_s ⇒ Object
9 |
# File 'lib/ask/agent/chat.rb', line 9 def to_s = content.to_s |
#tool_call? ⇒ Boolean
8 |
# File 'lib/ask/agent/chat.rb', line 8 def tool_call? = !tool_calls.empty? |