Thank you! So I am a noob but doing well so far. I am trying to create a tool in the api. The tool simply checks an airtable to see if an address is there or not. As far as I see I have done everything correctly but I am getting an error when sending a request. The error is about my request complete configuration. Any help is greatly appreciated as I am stuck.
Here is the error: {
"message": [
"each value in messages.conditions.0.value must be shorter than or equal to 1000 characters"
],
"error": "Bad Request",
"statusCode": 400
}
Here is the tool setup:
-d '{
"type": "function",
"async": false,
"function": {
"name": "lookupAddress",
"strict": false,
"description": "Looks up a street address in Airtable to verify if it exists in the database",
"parameters": {
"type": "object",
"properties": {
"streetAddress": {
"type": "string",
"description": "The street address to look up"
}
},
"required": [
"streetAddress"
]
}
},
"messages": [
{
"type": "request-complete",
"conditions": [
{
"value": {
"exists": "no"
},
"param": "exists",
"operator": "eq"
}
],
"content": "Thank you,..."
},
{
"type": "request-complete",
"conditions": [
{
"param": "exists",
"value": {
"exists": "no"
},
"operator": "eq"
}
],
"content": "I \'m sorry...."
},
{
"type": "request-failed",
"content": "I\'m having trouble..."
},
{
"type": "request-response-delayed",
"contentPlease stay on the line for just a moment longer.",
"timingMilliseconds": 3000
}
],
"server": {
"url": "xxxxx",
"timeoutSeconds": 10,
"headers": {
"Content-Type": "application/json"
}
}
}'