UNPKG

@copilotkit/runtime

Version:

<img src="https://github.com/user-attachments/assets/0a6b64d9-e193-4940-a3f6-60334ac34084" alt="banner" style="border-radius: 12px; border: 2px solid #d6d4fa;" />

40 lines (39 loc) 1.36 kB
import "reflect-metadata"; import { CopilotRuntimeChatCompletionRequest, CopilotRuntimeChatCompletionResponse, CopilotServiceAdapter } from "../service-adapter.mjs"; import { Groq } from "groq-sdk"; import { LanguageModel } from "ai"; //#region src/service-adapters/groq/groq-adapter.d.ts interface GroqAdapterParams { /** * An optional Groq instance to use. */ groq?: Groq; /** * The model to use. */ model?: string; /** * Whether to disable parallel tool calls. * You can disable parallel tool calls to force the model to execute tool calls sequentially. * This is useful if you want to execute tool calls in a specific order so that the state changes * introduced by one tool call are visible to the next tool call. (i.e. new actions or readables) * * @default false */ disableParallelToolCalls?: boolean; } declare class GroqAdapter implements CopilotServiceAdapter { model: string; provider: string; private disableParallelToolCalls; private _groq; get groq(): Groq; get name(): string; constructor(params?: GroqAdapterParams); getLanguageModel(): LanguageModel; private ensureGroq; process(request: CopilotRuntimeChatCompletionRequest): Promise<CopilotRuntimeChatCompletionResponse>; } //#endregion export { GroqAdapter, GroqAdapterParams }; //# sourceMappingURL=groq-adapter.d.mts.map