Class: Ask::Agent::ChatChunk
- Inherits:
-
Data
- Object
- Data
- Ask::Agent::ChatChunk
- Defined in:
- lib/ask/agent/chat.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#input_tokens ⇒ Object
readonly
Returns the value of attribute input_tokens.
-
#output_tokens ⇒ Object
readonly
Returns the value of attribute output_tokens.
-
#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
14 15 16 |
# File 'lib/ask/agent/chat.rb', line 14 def content @content end |
#input_tokens ⇒ Object (readonly)
Returns the value of attribute input_tokens
14 15 16 |
# File 'lib/ask/agent/chat.rb', line 14 def input_tokens @input_tokens end |
#output_tokens ⇒ Object (readonly)
Returns the value of attribute output_tokens
14 15 16 |
# File 'lib/ask/agent/chat.rb', line 14 def output_tokens @output_tokens end |
#thinking ⇒ Object (readonly)
Returns the value of attribute thinking
14 15 16 |
# File 'lib/ask/agent/chat.rb', line 14 def thinking @thinking end |
#tool_calls ⇒ Object (readonly)
Returns the value of attribute tool_calls
14 15 16 |
# File 'lib/ask/agent/chat.rb', line 14 def tool_calls @tool_calls end |
Instance Method Details
#tool_call? ⇒ Boolean
15 |
# File 'lib/ask/agent/chat.rb', line 15 def tool_call? = !tool_calls.empty? |