public static Object callGPTFunction(Object target, ChatGPTJavaFunction function, String argumentsJson)
			throws Exception {
		log.info("attempting to call GPTFunction on target [" + target.getClass().getName() + "] with arguments ["
				+ argumentsJson + "]");
		final Method javaMethod = function.getJavaMethod();
		ReflectionUtils.makeAccessible(javaMethod);
		final Class<?> parameterType = function.getParameterType();
		final Object param = objectMapper.readValue(argumentsJson, parameterType);
		return javaMethod.invoke(target, param);
	}
call GPT function
@param target target object
@param function json schema function
@param argumentsJson arguments json string
@return result
@throws Exception exception
src/main/java/org/mvnsearch/chatgpt/model/function/GPTFunctionUtils.java