-
-
Notifications
You must be signed in to change notification settings - Fork 5
Cohere
Rasmus Wulff Jensen edited this page Dec 26, 2025
·
3 revisions
- AgentFactory (
CohereAgentFactory) - AIToolsFactory integration (tools in
AgentOptions.Tools)
dotnet add package AgentFrameworkToolkit.Cohere
CohereAgentFactory agentFactory = new("<apiKey>");
CohereAgent agent = agentFactory.CreateAgent(new AgentOptions
{
Model = "command-a-03-2025",
Instructions = "You are a nice AI"
});
AgentRunResponse response = await agent.RunAsync("Hello World");
Console.WriteLine(response);-
ApiKey(required) -
Endpoint(optional, defaults tohttps://api.cohere.ai/compatibility/v1) NetworkTimeout-
DefaultClientType(Only supportChatClient) AdditionalOpenAIClientOptions
builder.Services.AddCohereAgentFactory("<apiKey>");
builder.Services.AddCohereAgentFactory(new CohereConnection
{
ApiKey = "<apiKey>"
});- See AgentFactories for shared options and middleware.
- See AIToolsFactory for tool creation and MCP support.