Skip to content

Commit a68c828

Browse files
authored
fix(agent): add selectorModel (#4045)
fixes #4026
1 parent 2573e54 commit a68c828

File tree

1 file changed

+3
-1
lines changed
  • examples/documentation/src/main/java/com/alibaba/cloud/ai/examples/documentation/framework/tutorials

1 file changed

+3
-1
lines changed

examples/documentation/src/main/java/com/alibaba/cloud/ai/examples/documentation/framework/tutorials/HooksExample.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ public static void llmToolSelector() {
292292
.name("smart_selector_agent")
293293
.model(chatModel)
294294
.tools(tool1, tool2)
295-
.interceptors(ToolSelectionInterceptor.builder().build())
295+
.interceptors(ToolSelectionInterceptor.builder()
296+
.selectionModel(selectorModel)
297+
.build())
296298
.build();
297299
}
298300

0 commit comments

Comments
 (0)