-
-
Notifications
You must be signed in to change notification settings - Fork 13
Cerebras
Rasmus Wulff Jensen edited this page May 20, 2026
·
1 revision
- AgentFactory (
CerebrasAgentFactory) - AIToolsFactory integration (tools in
AgentOptions.Tools) - OpenAI-compatible chat completions support
dotnet add package AgentFrameworkToolkit.Cerebras
CerebrasAgentFactory agentFactory = new("<apiKey>");
CerebrasAgent agent = agentFactory.CreateAgent(new AgentOptions
{
Model = CerebrasChatModels.GptOss120B,
Instructions = "You are a nice AI"
});
AgentResponse response = await agent.RunAsync("Hello World");
Console.WriteLine(response);-
ApiKey(required) -
Endpoint(optional, defaults to Cerebras) NetworkTimeoutDefaultClientTypeAdditionalOpenAIClientOptions
builder.Services.AddCerebrasAgentFactory("<apiKey>");
builder.Services.AddCerebrasAgentFactory(new CerebrasConnection
{
ApiKey = "<apiKey>",
NetworkTimeout = TimeSpan.FromMinutes(5)
});- Cerebras currently uses the OpenAI Chat Completions style endpoint in this toolkit integration.
-
ClientType.ResponsesApiis not supported for Cerebras and will fail at runtime. - See AgentFactories for shared agent options and middleware.
- See AIToolsFactory for tool creation and MCP support.