Skip to content

@pgege/kaboo-react


Function: KabooActivityProvider()

KabooActivityProvider(__namedParameters): Element

Defined in: context/ActivityProvider.tsx:62

Reads kaboo's hierarchical activity from the AG-UI run stream. The backend emits it as ACTIVITY_SNAPSHOT events interleaved on /invocations, so we subscribe to the CopilotKit agent instead of a separate SSE endpoint.

Included automatically by KabooProvider; mount it yourself only when composing providers by hand under an existing <CopilotKit>.

Parameters

__namedParameters

KabooActivityProviderProps

Returns

Element

Example

import { KabooActivityProvider, ActivityPanel } from "@pgege/kaboo-react";

function Activity({ agent }: { agent: string }) {
  return (
    <KabooActivityProvider agentId={agent}>
      <ActivityPanel />
    </KabooActivityProvider>
  );
}