Skip to content

@pgege/kaboo-react


Type Alias: StructuredRenderers

StructuredRenderers = Record\<string, (data) => ReactElement>

Defined in: context/ActivityProvider.tsx:21

A map of custom renderers for structured agent output, keyed by the output schema name. When a group carries structuredOutput and a matching outputSchemaName, its renderer is used instead of the default JSON view.

Example

import type { StructuredRenderers } from "@pgege/kaboo-react";

const renderers: StructuredRenderers = {
  WeatherReport: (data) => <div>{String(data.summary)}</div>,
};