In section 3.4, the tools is defined as follows:
tools = [{
“type”: “function”,
“function”: {
“name”: “get_current_time”, # <— Your functions name
“description”: “Returns the current time as a string.”, # <— a description for the LLM
“parameters”: {}
}
}]
But in section 4.2, the tools is defined differently as follows:
tools=[
get_current_time,
get_weather_from_ip,
write_txt_file,
generate_qr_code
],
So what does it mean to pass function names to the tools array? How is the OpenAI model going to handle these function names?
Thanks in advance