@hope One possible approach I see is to wrap the tools before register them to the ollama4j. In this way, ollama4j will call the wrapped methods, where we can leverage the built-in ToolCallAction to actually call the tools. I think this might be more reliable compared to just overriding the ollama4j internal methods.
However, I'm not entirely sure how necessary is this complexity. The only problem of having tools called by ollama4j is that, they do not appear in our event logs. From my perspective, this might be something we can temporal live with in the first mvp release. So I was considering just wait for the new release of ollama4j.
Any specific reason that you can't wait for the ollama4j new release?