code: from llama_index.core.tools import FunctionTool
  
  def calculate_average(*values):
      """
      Calculates the average of the provided values.
      """
      return sum(values) / len(values)
  average_tool = FunctionTool.from_defaults(
      fn=calculate_average
  )
  
apis: llama_index.core.tools.FunctionTool.from_defaults
extract_api: [((200, 248), 'llama_index.core.tools.FunctionTool.from_defaults', 'FunctionTool.from_defaults', ([], {'fn': 'calculate_average'}), '(fn=calculate_average)\n', (226, 248), False, 'from llama_index.core.tools import FunctionTool\n')]