Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.25 KB

File metadata and controls

44 lines (33 loc) · 1.25 KB
title GroqAdapter
description Copilot Runtime adapter for Groq.

{ /*

  • ATTENTION! DO NOT MODIFY THIS FILE!
  • This page is auto-generated. If you want to make any changes to this page, changes must be made at:
  • packages/runtime/src/service-adapters/groq/groq-adapter.ts */ } Copilot Runtime adapter for Groq.

Example

import { CopilotRuntime, GroqAdapter } from "@copilotkit/runtime";
import { Groq } from "groq-sdk";
 
const groq = new Groq({ apiKey: process.env["GROQ_API_KEY"] });
 
const copilotKit = new CopilotRuntime();
 
return new GroqAdapter({ groq, model: "<model-name>" });

Constructor Parameters

An optional Groq instance to use. The model to use. 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)