Sometimes in the initial push event from Qwen with a tool call, the function name isn't complete. If we push the event directly to the client, it may cause the tool call failed to be executed. So we wait until the arguments are coming, which means the function name is complete, and push the event then.
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅰ. Describe what this PR did
Sometimes in the initial push event from Qwen with a tool call, the function name isn't complete. If we push the event directly to the client, it may cause the tool call failed to be executed. So we wait until the arguments are coming, which means the function name is complete, and push the event then.
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews