1616
1717package org .springframework .ai .aot ;
1818
19- import org .springframework .ai .chat .messages .*;
19+ import java .util .Set ;
20+
21+ import org .springframework .ai .chat .messages .AbstractMessage ;
22+ import org .springframework .ai .chat .messages .AssistantMessage ;
23+ import org .springframework .ai .chat .messages .Message ;
24+ import org .springframework .ai .chat .messages .MessageType ;
25+ import org .springframework .ai .chat .messages .SystemMessage ;
26+ import org .springframework .ai .chat .messages .ToolResponseMessage ;
27+ import org .springframework .ai .chat .messages .UserMessage ;
2028import org .springframework .ai .content .Content ;
2129import org .springframework .ai .content .MediaContent ;
2230import org .springframework .ai .tool .ToolCallback ;
2331import org .springframework .ai .tool .definition .ToolDefinition ;
2432import org .springframework .aot .hint .MemberCategory ;
2533import org .springframework .aot .hint .RuntimeHints ;
2634import org .springframework .aot .hint .RuntimeHintsRegistrar ;
27- import org .springframework .aot .hint .TypeReference ;
2835import org .springframework .core .io .ClassPathResource ;
2936import org .springframework .lang .NonNull ;
3037import org .springframework .lang .Nullable ;
3138
32- import java .util .Set ;
33-
3439public class SpringAiCoreRuntimeHints implements RuntimeHintsRegistrar {
3540
3641 @ Override
@@ -45,8 +50,9 @@ public void registerHints(@NonNull RuntimeHints hints, @Nullable ClassLoader cla
4550 for (var c : chatTypes ) {
4651 hints .reflection ().registerType (c , memberCategories );
4752 var innerClassesFor = AiRuntimeHints .findInnerClassesFor (c );
48- for (var cc : innerClassesFor )
53+ for (var cc : innerClassesFor ) {
4954 hints .reflection ().registerType (cc , memberCategories );
55+ }
5056 }
5157
5258 for (var r : Set .of ("embedding/embedding-model-dimensions.properties" )) {
0 commit comments