There is no more the possibility to create an instance of OllamaChatModel because there is no a default ToolCallingManager and I cannot create one because it require ToolCallbackResolver and a ToolExecutionExceptionProcessor, but I do not need them.
Comment From: ThomasVitale
@fedecompa are you using the OllamaChatModel
constructor or the builder to instantiate it? Either way, ToolCallingManager
is not required. The builder works correctly based on that:
OllamaChatModel ollamaChatModel = OllamaChatModel.builder()
.ollamaApi(ollamaApi)
.build();
If you use the deprecated constructor, I can see there's a bug about List<FunctionCallback>
being null. I'm looking into it right now. Thanks for reporting!