{costUsage?.count > 0 && costUsage?.cost > 0 - ? `$${(costUsage?.cost / costUsage?.count).toFixed(6)}` + ? `$${(costUsage.cost / costUsage.count).toLocaleString(undefined, { minimumFractionDigits: 6, maximumFractionDigits: 6 })}` : "$0.00"}
Average Inference Cost
@@ -159,7 +159,7 @@ export function AverageCostInferenceChart({{costUsage?.cost > 0 - ? `$${costUsage?.cost?.toFixed(6)}` + ? `$${costUsage.cost.toLocaleString(undefined, { minimumFractionDigits: 6, maximumFractionDigits: 6 })}` : "$0.00"}
Total Cost
diff --git a/components/charts/token-chart.tsx b/components/charts/token-chart.tsx index 84c40a7a..693efff8 100644 --- a/components/charts/token-chart.tsx +++ b/components/charts/token-chart.tsx @@ -141,23 +141,44 @@ export function CostChart({- Input Tokens Cost: ${costUsage?.input?.toFixed(6) || 0} + Input Tokens Cost: $ + {costUsage.input?.toLocaleString(undefined, { + minimumFractionDigits: 6, + maximumFractionDigits: 6, + })}
- Output Tokens Cost: ${costUsage?.output?.toFixed(6) || 0} + Output Tokens Cost: $ + {costUsage.output?.toLocaleString(undefined, { + minimumFractionDigits: 6, + maximumFractionDigits: 6, + })}
- Total Cost: ${costUsage?.total?.toFixed(6) || 0} + Total Cost: $ + {costUsage.total?.toLocaleString(undefined, { + minimumFractionDigits: 6, + maximumFractionDigits: 6, + })}
ID
+{agent?.id || "N/A"}
+Role
+{agent?.role || "N/A"}
+Goal
+Backstory
+
+
+ {tool?.name || "N/A"} +
+
+
Result
+Max Iter
+{agent?.max_iter || "N/A"}
+ID
+{task?.id || "N/A"}
+Description
+Agent
+{task?.agent || "N/A"}
+ {task?.tools && + task?.tools?.length > 0 && + task?.tools?.map((tool, i) => ( + <> +
+
+ {tool?.name || "N/A"} +
+
+
Used Tools
++ {task?.used_tools || "N/A"} +
+Tool Errors
+Human Input
++ {task?.human_input || "False"} +
+Expected Output
+Result
+Name
+{tool?.name || "N/A"}
+Description
+Inputs
+{mem?.inputs || "N/A"}
+Description
+{content}
+ +Sessions
++ Read latest from right to left +
++ {fetchTraces.isFetching + ? "Fetching sessions..." + : `Fetched the last ${currentData.length} sessions`} +
++ Use arrow keys to navigate through traces timeline +
++ No crew sessions found. +
+ + + +STATUS
+CREW ID
+START TIME
+TOTAL DURATION
+Input
+ {selectedTrace?.input_tokens && ( +Output
+ {selectedTrace?.output_tokens && ( +Total
+ {selectedTrace?.total_tokens && ( ++ {library.name} +
+No agents detected
+ )} +No tasks detected
+ )} +No tools detected
+ )} +No memory detected
+ )} +Sessions
++ Read latest from right to left +
+Session Drilldown
+Trace
+Prompt
+