mistral-webhooks-events

Featured

Implement Mistral AI async patterns, batch API, agents, and event-driven workflows. Use when building async workflows, using the Agents API, batch inference, or handling long-running Mistral AI operations. Trigger with phrases like "mistral events", "mistral async", "mistral agents", "mistral batch", "mistral queue", "mistral background jobs".

AI & Automation 2,926 stars 433 forks Updated yesterday 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

# Mistral AI Events, Agents & Async Patterns ## Overview Async and event-driven patterns for Mistral AI: the Agents API for stateful multi-turn workflows, Batch API for cost-effective bulk inference (50% cheaper), SSE streaming endpoints, background job queues, and Python async processing. Mistral does not have native webhooks — this skill covers the patterns that replace them. ## Prerequisites - `@mistralai/mistralai` SDK installed - `MISTRAL_API_KEY` configured - For agents: La Plateforme access to create agents - For batch: JSONL file preparation ## Instructions ### Step 1: Mistral Agents API Create stateful agents with instructions, tools, and model configuration: ```typescript import { Mistral } from '@mistralai/mistralai'; const client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY }); // Create an agent on La Plateforme const agent = await client.agents.create({ name: 'Code Reviewer', model: 'mistral-large-latest', instructions: `You are an expert code reviewer. Analyze code for: - Security vulnerabilities - Performance issues - Best practice violations Provide actionable feedback with severity ratings.`, description: 'Reviews code for security, performance, and best practices', tools: [ { type: 'function', function: { name: 'search_codebase', description: 'Search the codebase for patterns', parameters: { type: 'object', properties: { query: { type: 'string' } }, ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category