-
-
Notifications
You must be signed in to change notification settings - Fork 14
Groq
Rasmus Wulff Jensen edited this page Jul 17, 2026
·
1 revision
- AgentFactory (
GroqAgentFactory) - AIToolsFactory integration (tools in
AgentOptions.Tools) - OpenAI-compatible Chat Completions and Responses API support
- Model constants in
GroqChatModels
dotnet add package AgentFrameworkToolkit.Groq
GroqAgentFactory agentFactory = new("<apiKey>");
GroqAgent agent = agentFactory.CreateAgent(GroqChatModels.GptOss20B);
AgentResponse response = await agent.RunAsync("Hello World");
Console.WriteLine(response.Text);-
ApiKey(required) -
Endpoint(optional, defaults tohttps://api.groq.com/openai/v1) NetworkTimeout-
DefaultClientType(ChatClient by default) AdditionalOpenAIClientOptions
builder.Services.AddGroqAgentFactory("<apiKey>");
builder.Services.AddGroqAgentFactory(new GroqConnection
{
ApiKey = "<apiKey>",
NetworkTimeout = TimeSpan.FromMinutes(5),
DefaultClientType = ClientType.ResponsesApi
});- Groq uses an OpenAI-compatible endpoint and the shared
AgentFrameworkToolkit.OpenAI.AgentOptionsconfiguration surface. - Preview model constants can be discontinued at short notice; check the Groq model catalog before relying on one in production.
- See AgentFactories for shared agent options and middleware.
- See AIToolsFactory for tool creation and MCP support.