Dhina
02/24/2025, 5:52 PMDhina
02/24/2025, 5:54 PMKyle
02/26/2025, 10:06 AM{
"role": "user",
"time": 1740417629583,
"endTime": 1740417631803,
"message": "February 20 first 19 90.",
"duration": 2220,
"secondsFromStart": 52.62
},
{
"role": "tool_calls",
"time": 1740417633700,
"message": "",
"toolCalls": [
{
"id": "call_Dl5KTmZHLExjZ8K94aD8I0ud",
"type": "function",
"function": {
"name": "identify_user_by_dob_phone",
"arguments": "{\"dob\": \"02-20-1990\"}"
}
}
],
"secondsFromStart": 56.315
}
expected
02-21-1990
actual
02-20-1990
As per the tool description, here’s what you can do. You can add the following to your prompt and tool, and also rework your tool description to give more context about the tool, its usage, and expected input parameters. This way, the model won’t restrict any input based on the description it picked up. The description was the reason, the model only picked up the date of birth from the user input.
[Warning]
Do not modify or attempt to correct user input parameters or user input, Pass them directly into the function or tool as given.
Dhina
02/26/2025, 5:13 PMKyle
03/02/2025, 2:36 PM