• extend the OllamaApi with Tool, ToolCalls and Function and add Tool Role.
  • make OllamaChatModel extend the AbstractToolCallSupport.
  • extend the OllamaChatModel to convert the Spring AI messages to OllamaApi messages, including Tools.
  • OllamaOptions implements FunctionCallingOptions.
  • add OllamaApiToolFunctionCallIT for testing function calling.
  • patch the AbstractToolCallSupport#isToolCall to take set of stop resons.
  • add FunctionCallbackInPromptIT and FunctionCallbackWrapperIT function calling auto-configuration tests.
  • extend OllamAutoConfiguration to support function calling registration.
  • add function call tests to OllamChatAutoConfigurationIT.
  • add OllamaWithOpenAiChatModelIT to OpenAi that uses the OpenAI API to call Ollama.
  • move buildToolCallConversation and handleToolCalls to parent AbstractToolCallSupport.
  • update Docs. add Ollama function call docs.
  • update Ollama diagrams.

Resolves #720

Comment From: ThomasVitale

Super!

Comment From: markpollack

addressed comments and made other minor cosmetic changes, merged in d53876a6244a71efb471f3934c4e1dcf08268b2a