Crashing Tools > empty arguments but LOG has argum...
# support
d
Hey Guys, we are running in issues with a few tools. The problem is here, the issue is only temporary, for sure because of the content. Can somebody check this please? Org. ID: 96a5f5e1-9f95-42ac-96dc-b1e460747acf Assistant ID: 65a7e66c-40ec-40fa-9891-807c0da5a349 Tools: 1. a7df459d-2583-47be-9319-3a02140c3355 2. fcb6ad80-5aac-4900-a274-fd815662579d Received Payload for example:
Copy code
[
  {
    "toolCalls": [
      {
        "id": "call_k2eYcK26L2UuZ6tqjb0dSHKo",
        "type": "function",
        "function": {
          "name": "create_ticket",
          "arguments": {}
        }
      }
    ],
    "listenUrl": "wss://phone-call-websocket.aws-us-west-2-backend-production3.vapi.ai/451cb1f0-10d8-46a4-9de2-1cf486607323/listen",
    "controlUrl": "https://phone-call-websocket.aws-us-west-2-backend-production3.vapi.ai/451cb1f0-10d8-46a4-9de2-1cf486607323/control"
  }
]


[
  {
    "toolCalls": [
      {
        "id": "call_C82KVOpjzeGLN0eK17dGksk8",
        "type": "function",
        "function": {
          "name": "create_ticket",
          "arguments": {}
        }
      }
    ],
    "listenUrl": "wss://phone-call-websocket.aws-us-west-2-backend-production3.vapi.ai/451cb1f0-10d8-46a4-9de2-1cf486607323/listen",
    "controlUrl": "https://phone-call-websocket.aws-us-west-2-backend-production3.vapi.ai/451cb1f0-10d8-46a4-9de2-1cf486607323/control"
  }
]

10:10:33:814
[
  {
    "toolCalls": [
      {
        "id": "call_dvXFxhhWS6PSptI1UbuzkEkf",
        "type": "function",
        "function": {
          "name": "reply_ticket",
          "arguments": {}
        }
      }
    ],
    "listenUrl": "wss://phone-call-websocket.aws-us-west-2-backend-production3.vapi.ai/451cb1f0-10d8-46a4-9de2-1cf486607323/listen",
    "controlUrl": "https://phone-call-websocket.aws-us-west-2-backend-production3.vapi.ai/451cb1f0-10d8-46a4-9de2-1cf486607323/control"
  }
]
CallID: 451cb1f0-10d8-46a4-9de2-1cf486607323
v
Thank you for sharing the details and example payloads regarding the issue with empty arguments in your tool calls. I understand how frustrating it can be to encounter temporary issues like this, especially when the logs suggest arguments should be present. While I don't have specific information available right now to explain or resolve this behavior, your detailed report and the provided IDs are very helpful for further investigation.
Thank you for sharing the details and example payloads regarding the issue with empty arguments in your tool calls. I understand how frustrating it can be to encounter temporary issues like this, especially when the logs suggest arguments should be present. While I don't have specific information available right now to explain or resolve this behavior, your detailed report and the provided IDs are very helpful for further investigation.
d
Copy code
log

10:10:33:814
[LOG]
Model called tool: reply_ticket({"ticket_id":"83696","message":"Hallo Jan,<br><br>hier noch einmal alle wichtigen Anleitungen für deine Tapo Kamera:<br><ul><li><b>Schnellstart-Anleitung (PDF)</b></li><li><b>Benutzerhandbuch (PDF)</b></li><li><b>Einrichtungsvideo</b></li><li><b>Montagevideo</b></li></ul><br>Bei Fragen gern wieder melden!<br><br>Viele Grüße<br>Dein BIT Group Kundenservice","attachments":[{"url":"https://static.tp-link.com/upload/manual/2024/202401/20240108/7106510545_Tapo%20Camera%EF%BC%88EU1_12%20Languages%EF%BC%89_QIG_V1.pdf","filename":"Tapo_Camera_Quick_Start_Guide.pdf"},{"url":"https://static.tp-link.com/upload/manual/2024/202408/20240828/1910013741_Tapo%20C500%202.0_UG_V1.pdf","filename":"Tapo_C500_Benutzerhandbuch.pdf"},{")

10:10:48:280
[LOG]
Model called tool: create_ticket({"email":"stolly82@web.de","message":"Hallo Jan,<br><br>hier noch einmal die wichtigsten Anleitungen zu deiner <b>Tapo Kamera</b>:<br><br><b>Bedienungsanleitungen als PDF:</b><br>- <a href=\"https://static.tp-link.com/upload/manual/2024/202401/20240108/7106510545_Tapo%20Camera%EF%BC%88EU1_12%20Languages%EF%BC%89_QIG_V1.pdf\">Quick Start Guide</a><br>- <a href=\"https://static.tp-link.com/upload/manual/2024/202408/20240828/1910013741_Tapo%20C500%202.0_UG_V1.pdf\">Benutzerhandbuch</a><br><br><b>Video-Anleitungen:</b><br>- <a href=\"https://www.youtube.com/watch?v=2ZJEN3SC4Eo\">So richtest du die Kamera ein</a><br>- <a href=\"https://www.youtube.com/watch?v=rCrgXRwLbDk\">So montierst)
v
Message marked as helpful by @DNAngelX! 🎉
k
checking if this is resolved/solved for you?
d
Hey, no it is not solved
k
I have reviewed your issue, and you are correct that the parameters are not being passed. To provide a solution, I would appreciate it if you could share one or more additional call ids This will allow me to identify any patterns and potentially resolve the issue for you.
d
Hey, sure! cb5abbfd-204b-4568-abc7-ebffe0426fc0 61afba50-b02f-43de-ae3a-915fbc7ac120 e7b8551f-ae9a-450f-9576-80438bbebf43 3bb1b1a2-06e3-4936-b6ae-47c3f78d932e 3bb1b1a2-06e3-4936-b6ae-47c3f78d932e
0c1a675d-1cc2-4646-b94d-4be28edd36b5
k
Looking into it
d
Hey @Kings_big💫 Some news? THX
k
sorry, but can you please send few more call_ids?
s
Hey @DNAngelX The empty tool arguments is caused by the token limit. The default max_tokens setting is 250 .When responses exceed the token limit, the model either stops responding completely or returns incomplete JSON with empty tool arguments. Solution: Increase the maxTokens parameter in the assistant > model > maxTokens configuration from 250 to at least 500 tokens.
d
@Shubham Bajaj got it! THX! May be it makes sense to add this into the Log "response reached the maximum token,..." or like this. Question: Is there a possibility to save GPT tokens somehow to reduce the history you're pushing to the GPT`s? We're usually let the last 7-10 chats in the history and let the ones before "summarize" (Customer "Jan" with order ID 12345 called because he has a broken item,... we offered him BLA) This makes sense on longer talks and reduces the latense also! THX
k
Hey, we don't have the feature built-in yet, but it's a good request. I suggest you raise a feature request here: . IF The community likes it, so it'll be picked up.
2 Views