Class: Ask::Agent::ChatChunk

Inherits:
Data
  • Object
show all
Defined in:
lib/ask/agent/chat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject (readonly)

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



14
15
16
# File 'lib/ask/agent/chat.rb', line 14

def content
  @content
end

#input_tokensObject (readonly)

Returns the value of attribute input_tokens

Returns:

  • (Object)

    the current value of input_tokens



14
15
16
# File 'lib/ask/agent/chat.rb', line 14

def input_tokens
  @input_tokens
end

#output_tokensObject (readonly)

Returns the value of attribute output_tokens

Returns:

  • (Object)

    the current value of output_tokens



14
15
16
# File 'lib/ask/agent/chat.rb', line 14

def output_tokens
  @output_tokens
end

#thinkingObject (readonly)

Returns the value of attribute thinking

Returns:

  • (Object)

    the current value of thinking



14
15
16
# File 'lib/ask/agent/chat.rb', line 14

def thinking
  @thinking
end

#tool_callsObject (readonly)

Returns the value of attribute tool_calls

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)


15
# File 'lib/ask/agent/chat.rb', line 15

def tool_call? = !tool_calls.empty?