Cohere Event & Streaming Patterns
Implements high-performance Cohere streaming event patterns, Server-Sent Events (SSE), and data connector registrations for RAG workflows.
This skill provides comprehensive implementation patterns for handling Cohere's real-time streaming architecture within Claude Code. Instead of traditional webhooks, it focuses on the chatStream model, enabling developers to process text chunks, tool-call deltas, and citation events as they happen. It also facilitates the creation and registration of custom RAG data connectors, allowing Cohere to search external APIs and integrate that data into its reasoning process with full citation support and streaming efficiency.
주요 기능
01Real-time RAG citation tracking and source extraction
02Streaming tool-use logic with argument delta processing
03Implementation of chatStream event handlers for real-time UIs
04Data connector registration for custom API indexing
05Production-ready Express SSE proxy endpoint templates
062,028 GitHub stars
사용 사례
01Processing long-running tool calls asynchronously within a streaming response
02Integrating external company databases into Cohere's RAG system via connectors
03Building real-time AI chat interfaces with typing effects and source citations