autogen
autogen copied to clipboard
[.Net][Feature Request]: AutoGen.Ollama add tool call support
Is your feature request related to a problem? Please describe.
Ollama API now supports tools, update AutoGen.OllamaChatClient to support this latest feature as well.
https://github.com/ollama/ollama/blob/main/docs/api.md#chat-request-with-tools
In the meantime, it seems that ollama openai chat server also support tools now, so another workaround to try tool call in ollama is to connect to ollama openai api as a third-party openai endpoint using OpenAIChatAgent
Describe the solution you'd like
No response
Additional context
No response
This issue is currently investigated by @DavidLuong98
Wait for streaming=true has been enabled in ollama repo
- https://github.com/ollama/ollama/issues/5989
- https://github.com/ollama/ollama/issues/5796
@lokitoth is this relevant to the agent chat version?