Class: Ask::Agent::ChatChunk
- Inherits:
-
Data
- Object
- Data
- Ask::Agent::ChatChunk
- Defined in:
- lib/ask/agent/chat.rb
Overview
Chunk yielded during streaming from Ask::Agent::Chat#ask.
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
16 17 18 |
# File 'lib/ask/agent/chat.rb', line 16 def content @content end |
#thinking ⇒ Object (readonly)
Returns the value of attribute thinking
16 17 18 |
# File 'lib/ask/agent/chat.rb', line 16 def thinking @thinking end |
#tool_calls ⇒ Object (readonly)
Returns the value of attribute tool_calls
16 17 18 |
# File 'lib/ask/agent/chat.rb', line 16 def tool_calls @tool_calls end |
Instance Method Details
#tool_call? ⇒ Boolean
17 |
# File 'lib/ask/agent/chat.rb', line 17 def tool_call? = !tool_calls.empty? |