File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
backend/src/main/java/ch/xxx/aidoclibchat/usecase/service Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 14
14
15
15
import java .util .List ;
16
16
17
- import org .springframework .ai .support .ToolCallbacks ;
18
- import org .springframework .ai .tool .ToolCallback ;
19
- import org .springframework .ai .tool .ToolCallbackProvider ;
20
- import org .springframework .context .annotation .Bean ;
21
-
22
- import ch .xxx .aidoclibchat .adapter .config .FunctionConfig ;
23
17
import io .modelcontextprotocol .client .McpSyncClient ;
24
18
25
19
public class LocalMcpClient {
26
20
private final List <McpSyncClient > mcpSyncClients ;
27
21
28
22
public LocalMcpClient (List <McpSyncClient > mcpSyncClients ) {
29
23
this .mcpSyncClients = mcpSyncClients ;
30
- }
31
-
32
- @ Bean
33
- public ToolCallbackProvider myTools (FunctionConfig functionConfig ) {
34
- return MethodToolCallbackProvider .builder ().toolObjects (functionConfig ).build ();
35
- }
24
+ }
36
25
}
You can’t perform that action at this time.
0 commit comments