@railtownai/railtracks-visualizer 0.0.51 → 0.0.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/dist/cjs/index.js +97022 -96216
- package/dist/esm/index.js +97028 -96227
- package/dist/types/agenthub/components/AggregateResultsTable.d.ts +23 -0
- package/dist/types/agenthub/components/EvaluationsTable.d.ts +9 -12
- package/dist/types/agenthub/hooks/useEvaluations.d.ts +2 -2
- package/dist/types/agenthub/pages/evaluation-details-drawer.d.ts +8 -3
- package/dist/types/agenthub/pages/evaluations-compare-drawer.d.ts +8 -3
- package/dist/types/agenthub/pages/evaluations.types.d.ts +7 -3
- package/dist/types/agenthub/pages/evaluator-result.d.ts +6 -6
- package/dist/types/agenthub/utils/evaluatorResultFromDto.d.ts +37 -0
- package/dist/types/agenthub/utils/llmInferenceAggregateTree.d.ts +36 -0
- package/dist/types/agenthub/utils/toolUseAggregateTree.d.ts +28 -0
- package/dist/types/components/icons/AppleIcon.d.ts +7 -0
- package/dist/types/components/icons/index.d.ts +1 -0
- package/dist/types/components/nodes/AgentNode.d.ts +19 -1
- package/dist/types/dto/Evaluation.d.ts +31 -12
- package/dist/types/dto/index.d.ts +1 -1
- package/dist/types/index.d.ts +6 -3
- package/dist/types/lib/theme.d.ts +13 -0
- package/dist/types/lib/utils.d.ts +8 -0
- package/package.json +16 -18
- package/dist/types/agenthub/components/ToolUseEvaluatorMetricsTable.d.ts +0 -17
- package/dist/types/components/ui/header.d.ts +0 -6
package/README.md
CHANGED
|
@@ -64,6 +64,27 @@ import { Visualizer } from "@railtownai/railtracks-visualizer";
|
|
|
64
64
|
3. `npm test`
|
|
65
65
|
4. `npm start` - This should open up Storybook UI at `http://localhost:6006`
|
|
66
66
|
|
|
67
|
+
## 📦 Exportable Components
|
|
68
|
+
|
|
69
|
+
We allow exporting UI components from AgentHub that can be used in external React applications across different environments (e.g. web, mobile, desktop, chrome extensions, etc.).
|
|
70
|
+
|
|
71
|
+
In order to use them, you'll need to ensure you pass the correct DTOs to the components.
|
|
72
|
+
|
|
73
|
+
For example, if you want to use the EvaluationsTable component, you'll need to pass the correct Evaluation DTOs to the component.
|
|
74
|
+
|
|
75
|
+
```tsx
|
|
76
|
+
import type { Evaluation as EvaluationDto } from "@railtownai/railtracks-visualizer";
|
|
77
|
+
<EvaluationsTable evaluations={evaluations as EvaluationDto[]} />;
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Here's the list of exportable components:
|
|
81
|
+
|
|
82
|
+
- `<EvaluationsTable />` - `./src/agenthub/components/EvaluationsTable.tsx`
|
|
83
|
+
- `<EvaluationsCompare />` - `./src/agenthub/pages/evaluations-compare-drawer.tsx`
|
|
84
|
+
- `<EvaluationDetailsDrawer />` - `./src/agenthub/pages/evaluation-details-drawer.tsx`
|
|
85
|
+
- `<EvaluatorResult />` - `./src/agenthub/pages/evaluator-result.tsx`
|
|
86
|
+
- `<AggregateResultsTable />` - `./src/agenthub/components/AggregateResultsTable.tsx`
|
|
87
|
+
|
|
67
88
|
## 📄 License
|
|
68
89
|
|
|
69
90
|
See [LICENSE](LICENSE)
|