@Override
		public void applyTo(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode) {
			ReflectionHints reflection = generationContext.getRuntimeHints().reflection();
			MemberCategory[] memberCategories = MemberCategory.values();
			reflection.registerType(beanClass, memberCategories);
			GPTFunctionUtils.getAllClassesInType(beanClass).forEach(c -> reflection.registerType(c, memberCategories));
			for (ChatGPTJavaFunction function : functions.values()) {
				Method method = function.getJavaMethod();
				reflection.registerType(method.getReturnType(), memberCategories);
				for (Class<?> pt : method.getParameterTypes()) {
					reflection.registerType(pt, memberCategories);
				}
			}
		}
Repository for all GPT callback functions.

@author Josh Long
src/main/java/org/mvnsearch/chatgpt/spring/service/GPTFunctionRegistry.java