Skip to content

@pgege/kaboo-react


Function: KabooProvider()

KabooProvider(__namedParameters): Element

Defined in: context/KabooProvider.tsx:56

Batteries-included CopilotKit plugin. Renders <CopilotKit> and nests every kaboo context (activity -> drill -> interrupt bridge) plus the built-in HITL and inline-card handlers, so integrators drop this once near the root and use only kaboo-react. Activity rides the AG-UI run stream, so there is no separate activity endpoint to configure.

Parameters

__namedParameters

KabooProviderProps

Returns

Element

Example

import { CopilotChat } from "@copilotkit/react-core/v2";
import { KabooProvider, GlassTabs, DrillDetailView } from "@pgege/kaboo-react";
import { KabooMessageView } from "@pgege/kaboo-react/copilotkit";
import "@pgege/kaboo-react/styles.css";

function App({ agent, threadId }: { agent: string; threadId: string }) {
  return (
    <KabooProvider runtimeUrl="/api/copilotkit" agent={agent} threadId={threadId}>
      <GlassTabs />
      <CopilotChat messageView={KabooMessageView} />
      <DrillDetailView />
    </KabooProvider>
  );
}