Class CohereClient

java.lang.Object
com.tnsai.llm.providers.AbstractLLMClient
com.tnsai.llm.providers.CohereClient
All Implemented Interfaces:
com.tnsai.llm.LLMClient

public class CohereClient extends AbstractLLMClient
Cohere LLM client implementation. Optimized for RAG (Retrieval Augmented Generation) and Enterprise use cases.

Supported models:

  • command-r-plus - Best for complex RAG, reasoning, multi-step tools
  • command-r - Optimized for RAG and tool use, lower latency
  • command - Instruction following

Configuration via environment variables:

  • COHERE_API_KEY - Required API key
  • COHERE_BASE_URL - Optional, defaults to https://api.cohere.com/v1
See Also: