tool calls with arrays
I'm very frustrated up until now I've done everything with function calls. So I wanted to start doing things with tool calls. But when I run the rool calls gpt 4o cant seem to read the data correctly and claude literally just throws an error. I think there is some issue because I am return back an array.. Any complex data I return with toolcalls just been a nightmare.
Example, claude blowing up 9a5a9754-6274-4fe8-9b02-c45adba2a77d
{"results":[{"toolCallId":"call_UcqfczMweNi9Fr2mBzv03NWa","result":[{"Hotel_Name":"The Dalmar Fort Lauderdale a Tribute Portfolio Hotel","uhid":3403921},{"Hotel_Name":"New #301 Luxury Apt W Resort Amenities","uhid":8051122},{"Hotel_Name":"Fairfield Inn & Suites by Marriott Fort Lauderdale Downtown","uhid":3277737},{"Hotel_Name":"Hampton Inn Ft. Lauderdale / Downtown Las Olas Area","uhid":6814355},{"Hotel_Name":"Home2 Suites by Hilton Ft. Lauderdale Downtown FL","uhid":6131373},{"Hotel_Name":"Riverside Hotel","uhid":6827845},{"Hotel_Name":"Tru by Hilton Fort Lauderdale Downtown","uhid":6131375}]}]}
Thats what I'm typically returning... gpt 4o can't read the names back and claude 3.5 blows up. I never had these problems when i was doing function calls.
Example, claude blowing up 9a5a9754-6274-4fe8-9b02-c45adba2a77d
{"results":[{"toolCallId":"call_UcqfczMweNi9Fr2mBzv03NWa","result":[{"Hotel_Name":"The Dalmar Fort Lauderdale a Tribute Portfolio Hotel","uhid":3403921},{"Hotel_Name":"New #301 Luxury Apt W Resort Amenities","uhid":8051122},{"Hotel_Name":"Fairfield Inn & Suites by Marriott Fort Lauderdale Downtown","uhid":3277737},{"Hotel_Name":"Hampton Inn Ft. Lauderdale / Downtown Las Olas Area","uhid":6814355},{"Hotel_Name":"Home2 Suites by Hilton Ft. Lauderdale Downtown FL","uhid":6131373},{"Hotel_Name":"Riverside Hotel","uhid":6827845},{"Hotel_Name":"Tru by Hilton Fort Lauderdale Downtown","uhid":6131375}]}]}
Thats what I'm typically returning... gpt 4o can't read the names back and claude 3.5 blows up. I never had these problems when i was doing function calls.