Skip to Content
UI Kit
Screens (56)

Agent Analytics

Agents / Model Usage — how a project's agents use AI models, in a single file.

Open preview
Loading Agent Analytics…

Usage

import { AgentAnalyticsScreen } from "ui-kit/screens/agent-analytics";

Props

PropTypeDefaultDescription
workspacestring"Northwind"The workspace in the sidebar
projectstring—The project in the head – its menu lists projects
projects{ name: string; sub?: string }[]PROJECTS—
modelsAanModel[] | ((range: AanRange, project: string) => AanModel[])—The models for a period – left out, a sample that scales with the period
onProjectChange(project: string) => void—For fixed datasets, supply the selected project and its models together.
todayDate—The last day of the period – the chart's labels count back from it
onTab(tab: (typeof TABS)[number]) => void—Called when another tab is picked
onExport(range: AanRange) => void——
loadingbooleanfalseGray strip, chart and rows while the numbers load
emptybooleanfalseNo runs in this project yet