I specified a tool to determine the species of an object from a photo but the output contains a location? This is not part of my specification. Does it mean tool calling will randomly fail at producing the expected output format?
This was about 1 in 1000 failures.
The output:
tool_call {'id': 'call_CyR62GiS01xfM96dNWp3tXD1', 'type': 'function', 'function': {'name': 'get_species_names', 'arguments': '{"location": "Bisbee"}'}}
Here is my specification for a tool:
{
"type": "function",
"function": {
"name": "get_species_names",
"description": "get the name of the species in the specimen from the label if it exists. In the case the label or image has multiple species return a string with the species in a comma separated list.",
"parameters": {
"type": "object",
"properties": {
"species_names": {
"type": "string",
"description": "the names of the species",
}
},
"required": ["species_names"],
},
}
},