@Override
	public void registerHints(@NonNull RuntimeHints hints, @Nullable ClassLoader classLoader) {

		var chatTypes = Set.of(AbstractMessage.class, AssistantMessage.class, ToolResponseMessage.class, Message.class,
				MessageType.class, UserMessage.class, SystemMessage.class, FunctionCallbackContext.class,
				FunctionCallback.class, FunctionCallbackWrapper.class);
		for (var c : chatTypes) {
			hints.reflection().registerType(c);
		}

		Method getDescription = ReflectionUtils.findMethod(FunctionCallback.class, "getDescription");
		hints.reflection().registerMethod(getDescription, ExecutableMode.INVOKE);
		Method getInputTypeSchema = ReflectionUtils.findMethod(FunctionCallback.class, "getInputTypeSchema");
		hints.reflection().registerMethod(getInputTypeSchema, ExecutableMode.INVOKE);
		Method getName = ReflectionUtils.findMethod(FunctionCallback.class, "getName");
		hints.reflection().registerMethod(getName, ExecutableMode.INVOKE);

		for (var r : Set.of("antlr4/org/springframework/ai/vectorstore/filter/antlr4/Filters.g4",
				"embedding/embedding-model-dimensions.properties"))
			hints.resources().registerResource(new ClassPathResource(r));

	}
@Test
	void core() {
		var runtimeHints = new RuntimeHints();
		var springAiCore = new SpringAiCoreRuntimeHints();
		springAiCore.registerHints(runtimeHints, null);
		assertThat(runtimeHints).matches(resource().forResource("embedding/embedding-model-dimensions.properties"));

		assertThat(runtimeHints).matches(reflection().onMethod(FunctionCallback.class, "getDescription"));
		assertThat(runtimeHints).matches(reflection().onMethod(FunctionCallback.class, "getInputTypeSchema"));
		assertThat(runtimeHints).matches(reflection().onMethod(FunctionCallback.class, "getName"));
	}