Class: Candle::ToolCallParser::ParseResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/candle/tool_call_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#text_responseObject

Returns the value of attribute text_response

Returns:

  • (Object)

    the current value of text_response



15
16
17
# File 'lib/candle/tool_call_parser.rb', line 15

def text_response
  @text_response
end

#tool_callsObject

Returns the value of attribute tool_calls

Returns:

  • (Object)

    the current value of tool_calls



15
16
17
# File 'lib/candle/tool_call_parser.rb', line 15

def tool_calls
  @tool_calls
end

Instance Method Details

#has_tool_calls?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/candle/tool_call_parser.rb', line 16

def has_tool_calls?
  tool_calls && !tool_calls.empty?
end