Bug description When integrating SpringAI with Zhipu AI to perform function calls, serialization issues occur. Upon inspection, it is found that the serialization configuration in the FunctionTool class of the ZhiPuAiApi is problematic.

Environment use version is 1.0.0-SNAPSHOT Spring-ai ZhipuAI FunctionCalling Error Spring-ai ZhipuAI FunctionCalling Error

Comment From: jiao-duan

Bug error page is: Spring-ai ZhipuAI FunctionCalling Error

Comment From: jiao-duan

when i modify the FunctionTool class, it's run succuess Spring-ai ZhipuAI FunctionCalling Error

Comment From: mxsl-gr

I checked the file history and found that it was mistakenly modified in commit 3e9a3fd3b0bb508a07ee7aff5526f35e841b077c.

Comment From: jiao-duan

I am glad that you can find this mistake and fix it

Comment From: mxsl-gr

I am glad that you can find this mistake and fix it

lol, actually, you were the one who found and caught this bug.

Comment From: ilayaperumalg

Fixed via https://github.com/spring-projects/spring-ai/pull/1829. Thanks @jiao-duan and @mxsl-gr!