Does AutoGen 0.4 Support Using Ollama With Agent Collaboration? #4368
Unanswered
liquidgreetings
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking for guidance or a different code example. I'm working with the agent collaboration example code at: https://learn.microsoft.com/en-us/semantic-kernel/frameworks/agent/examples/example-agent-collaboration?pivots=programming-language-csharp. I swapped out the builder.AddOpenAIChatCompletion(...) section with builder.AddOllamaChatCompletion(...) to test with an LLM on my local computer. But I'm getting an error.
The error happens in this code block:
The error is:
The following is from my project file. Note that it includes Microsoft.Extensions.AI.Ollama.I thought that including it in my project might resolve my error. However, when I added using Microsoft.Extensions.AI.Ollama; to my code, I got an error that reads: The type or namespace name 'Ollama' does not exist in the namespace 'Microsoft.Extensions.AI' (are you missing an assembly reference?).
Is there a .NET AutoGen 0.4 agent collaboration example that uses Ollama Chat Completion instead of OpenAI? Or is there a simple fix for this error? Any help in resolving this issue will be greatly appreciated. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions