Ham
03/13/2025, 7:39 PMVapi Support Bot
03/13/2025, 7:40 PMjavascript
formatted_number: number.number?.replace(/(\+1)(\d{3})(\d{3})(\d{4})/, '$1-$2-$3-$4')
If there's a bug in this transformation logic, it could potentially alter digits.
3. **Tool Call Execution Issues**: Users have reported irregular tool call execution where functions sometimes behave unexpectedly.
For your specific case where the last 4 digits are being changed, this could be related to a bug in the phone number parsing or formatting logic. The system might be incorrectly processing or transforming the number before sending it to the function.
I'd recommend checking if there are any patterns to when this occurs - is it happening with specific phone number formats or under certain conditions?
Sources:
- [Discord Thread about Phone Number Formatting](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1343612796717371393)
- [Discord Thread about Tool Call Issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342336047589359618)
- [Discord Thread about Phone Number Transformation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1328923059905630238)Ham
03/13/2025, 7:57 PM{
"type": "object",
"properties": {
"phone_number": {
"description": "the phone number attached to the clients account"
"type": "string"
}
},
"required": []
}
Ham
03/13/2025, 8:02 PM{
"type": "object",
"properties": {
"phone_number": {
"description": "the phone number attached to the clients account must be a U.S. number in E.164 format",
"type": "string"
}
},
"required": [
"phone_number"
]
}
Ham
03/13/2025, 8:02 PMHam
03/14/2025, 1:26 AMVapi
03/15/2025, 7:32 AMHam
03/15/2025, 5:50 PMVapi
03/16/2025, 6:07 PM