CereBro
by rob1997
CereBro is a model-agnostic AI Agent Wrapper for .Net. It allows you to write Tools that can be used with different AI models without changing the code, leveraging the Model Context Protocol.
Last updated: N/A
What is CereBro?
CereBro is a .NET library that acts as a model-agnostic AI Agent Wrapper. It simplifies the integration of various AI models into your .NET applications by providing a unified interface through the Model Context Protocol, allowing you to switch between models without modifying your code.
How to use CereBro?
To use CereBro, install the NuGet package, configure a servers.json
file with your desired MCP server, set your OpenAI API key as an environment variable, and then use the UseOpenAI
extension method in your Program.cs
file to register the OpenAI chat client. Build the CereBro host using builder.BuildCereBro(new CereBroConfig{ ServersFilePath = "./servers.json" })
and run the application.
Key features of CereBro
Model-agnostic design
Support for Model Context Protocol
Integration with OpenAI models
Extensible architecture for adding new models
Unity package available (CereBro.Unity)
Use cases of CereBro
Building AI-powered chatbots
Creating intelligent agents for automation
Integrating AI models into existing .NET applications
Developing AI-driven tools for various domains
Experimenting with different AI models without code changes
FAQ from CereBro
What models are currently supported?
What models are currently supported?
Currently, CereBro supports OpenAI models.
What models are planned for future support?
What models are planned for future support?
Planned models include Claude, Grok, DeepSeek, Gemini, and Ollama.
How do I add a new model to CereBro?
How do I add a new model to CereBro?
Implement Microsoft.Extensions.AI.IChatClient
for the new model, create a Placeholder Type that implements Microsoft.Extensions.AI.FunctionInvokingChatClient
, and use the UseChatClient<T>
extension method to add the model to the service collection.
Can I use multiple models at the same time?
Can I use multiple models at the same time?
At the moment, CereBro doesn't support multiple models simultaneously. You need to remove the UseOpenAI
method to use another model.
Is there a Unity package available?
Is there a Unity package available?
Yes, CereBro.Unity is a Unity package that allows you to use CereBro in Unity.