Cohere Reference Architecture Overview Production-ready architecture for Cohere API v2 applications covering RAG pipelines, tool-use agents, and multi-model orchestration. Prerequisites - Understanding of layered architecture - SDK v7+ - TypeScript project with vitest Project Structure Layer Architecture Core Components Client Layer RAG Service Agent Service Tool Registry Error Classification Data Flow Output - Layered architecture separating API, service, and client concerns - RAG pipeline with rerank pre-filtering and grounded citations - Agent loop with pluggable tool registry - Error clas…