Cohere Provider

Use Cohere models with PraisonAI TypeScript

Diagram

Input

Agent

Output

Cohere Provider

Use Cohere’s Command models and embeddings.

Environment Variables

bash
export COHERE_API_KEY=...

Supported Modalities

ModalitySupported
Text/Chat✅
Embeddings✅
Tools✅

Quick Start

  1. Simple Usage
    typescript
    import { Agent } from 'praisonai';
    
    const agent = new Agent({
      name: 'CohereAgent',
      instructions: 'You are a helpful assistant.',
      llm: 'cohere/command-r-plus'
    });
    
    const response = await agent.chat('Hello!');
  2. With Configuration

    Adjust provider credentials and model settings for production — see the sections above.

Related