groq-core-workflow-a

Featured

Execute Groq primary workflow: chat completions with tool use and JSON mode. Use when implementing chat interfaces, function calling, structured output, or building AI features with Groq's fast inference. Trigger with phrases like "groq chat completion", "groq tool use", "groq function calling", "groq JSON mode".

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

# Groq Core Workflow A: Chat, Tools & Structured Output ## Overview Primary integration patterns for Groq: chat completions, tool/function calling, JSON mode, and structured outputs. Groq's LPU delivers sub-200ms time-to-first-token, making these patterns viable for real-time user-facing features. ## Prerequisites - `groq-sdk` installed, `GROQ_API_KEY` set - Understanding of Groq model capabilities ## Model Selection for This Workflow | Task | Recommended Model | Why | |------|------------------|-----| | Chat with tools | `llama-3.3-70b-versatile` | Best tool-calling accuracy | | JSON extraction | `llama-3.1-8b-instant` | Fast, accurate for structured tasks | | Structured outputs | `llama-3.3-70b-versatile` | Supports `strict: true` schema compliance | | Vision + chat | `meta-llama/llama-4-scout-17b-16e-instruct` | Multimodal input | ## Instructions ### Step 1: Chat Completion with System Prompt ```typescript import Groq from "groq-sdk"; const groq = new Groq(); async function chat(userMessage: string, history: any[] = []) { const messages = [ { role: "system" as const, content: "You are a concise technical assistant." }, ...history, { role: "user" as const, content: userMessage }, ]; const completion = await groq.chat.completions.create({ model: "llama-3.3-70b-versatile", messages, temperature: 0.7, max_tokens: 1024, }); return { reply: completion.choices[0].message.content, usage: completion.usage, }; } ``` ### Step...

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