Skip to content

Commit bc001db

Browse files
authored
feat(be) guide finder 툴 주입 (#136)
1 parent 340a71a commit bc001db

File tree

1 file changed

+3
-1
lines changed
  • src/main/kotlin/com/back/koreaTravelGuide/common/config

1 file changed

+3
-1
lines changed

src/main/kotlin/com/back/koreaTravelGuide/common/config/AiConfig.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.back.koreaTravelGuide.common.config
22

3+
import com.back.koreaTravelGuide.domain.ai.aiChat.tool.GuideFinderTool
34
import com.back.koreaTravelGuide.domain.ai.aiChat.tool.TourTool
45
import com.back.koreaTravelGuide.domain.ai.aiChat.tool.WeatherTool
56
import org.springframework.ai.chat.client.ChatClient
@@ -38,10 +39,11 @@ class AiConfig {
3839
chatMemory: ChatMemory,
3940
weatherTool: WeatherTool,
4041
tourTool: TourTool,
42+
guideFinderTool: GuideFinderTool,
4143
): ChatClient {
4244
return ChatClient.builder(chatModel)
4345
.defaultAdvisors(MessageChatMemoryAdvisor.builder(chatMemory).build())
44-
.defaultTools(weatherTool, tourTool)
46+
.defaultTools(weatherTool, tourTool, guideFinderTool)
4547
.build()
4648
}
4749

0 commit comments

Comments
 (0)