cohere-webhooks-events

Featured

Implement Cohere streaming event handling, SSE patterns, and connector webhooks. Use when building streaming UIs, handling chat/tool events, or registering Cohere connectors for RAG. Trigger with phrases like "cohere streaming", "cohere events", "cohere SSE", "cohere connectors", "cohere webhook".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Cohere Streaming Events & Connectors ## Overview Handle Cohere's streaming chat events (SSE), tool-call events, citation events, and register data connectors for RAG. Cohere does not use traditional webhooks — its event model is streaming-based. ## Prerequisites - `cohere-ai` SDK v7+ - Understanding of Server-Sent Events (SSE) - For connectors: HTTPS endpoint accessible from internet ## Instructions ### Step 1: Chat Streaming Events Cohere's `chatStream` returns a stream of typed events: ```typescript import { CohereClientV2 } from 'cohere-ai'; const cohere = new CohereClientV2(); async function handleStream(userMessage: string) { const stream = await cohere.chatStream({ model: 'command-a-03-2025', messages: [{ role: 'user', content: userMessage }], }); for await (const event of stream) { switch (event.type) { // Text content streaming case 'content-start': console.log('--- Generation started ---'); break; case 'content-delta': const text = event.delta?.message?.content?.text ?? ''; process.stdout.write(text); break; case 'content-end': console.log('\n--- Generation complete ---'); break; // Citation events (when using documents) case 'citation-start': console.log('Citation:', event.delta?.message?.citations); break; // Tool call events (when using tools) case 'tool-call-start': console.log('Tool call started:', event...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

groq-webhooks-events

Build event-driven architectures with Groq streaming, batch processing, and async patterns. Use when setting up real-time SSE endpoints, batch processing pipelines, or event-driven LLM processing with Groq. Trigger with phrases like "groq streaming", "groq events", "groq SSE", "groq batch", "groq async", "groq event-driven".

2,266 Updated today
jeremylongshore
AI & Automation Featured

cohere-hello-world

Create a minimal working Cohere example with Chat, Embed, and Rerank. Use when starting a new Cohere integration, testing your setup, or learning basic Cohere API v2 patterns. Trigger with phrases like "cohere hello world", "cohere example", "cohere quick start", "simple cohere code".

2,266 Updated today
jeremylongshore
API & Backend Listed

streaming-api-patterns

Implement real-time data streaming with Server-Sent Events (SSE), WebSockets, and ReadableStream APIs. Master backpressure handling, reconnection strategies, and LLM streaming for 2025+ real-time applications.

335 Updated today
aiskillstore
AI & Automation Featured

perplexity-webhooks-events

Build event-driven architectures around Perplexity Sonar API with streaming, batch pipelines, and scheduled search monitoring. Trigger with phrases like "perplexity streaming", "perplexity events", "perplexity batch search", "perplexity news monitor", "perplexity SSE".

2,266 Updated today
jeremylongshore
AI & Automation Featured

anth-webhooks-events

Implement event-driven patterns with Claude API: streaming SSE events, Message Batches callbacks, and async processing architectures. Use when building real-time Claude integrations or processing batch results. Trigger with phrases like "anthropic events", "claude streaming events", "anthropic async processing", "claude batch callbacks".

2,266 Updated today
jeremylongshore