Creates an instance of the GroqAdapter.
Configuration options including the API key and optional model/baseURL/defaults.
ReadonlyproviderThe unique identifier name for this provider (e.g., 'openai', 'anthropic').
Sends a request to the Groq Chat Completions API.
Translates ArtStandardPrompt to the Groq/OpenAI format and handles streaming and tool use.
The standardized prompt messages.
Call options, including streaming, model parameters, and tools.
A promise resolving to an AsyncIterable of StreamEvent objects.
Optional: Method for graceful shutdown
Implements the
ProviderAdapterinterface for interacting with Groq's ultra-fast inference API using the official Groq SDK.Groq provides an OpenAI-compatible API, making this adapter similar in structure to the OpenAI adapter but optimized for Groq's specific features and models.
Handles formatting requests, parsing responses, streaming, and tool use.
See