diff --git a/ui/litellm-dashboard/src/components/lens/traces/detail/conversation/TraceConversation.tsx b/ui/litellm-dashboard/src/components/lens/traces/detail/conversation/TraceConversation.tsx index b1c260f7a8c..880289c717c 100644 --- a/ui/litellm-dashboard/src/components/lens/traces/detail/conversation/TraceConversation.tsx +++ b/ui/litellm-dashboard/src/components/lens/traces/detail/conversation/TraceConversation.tsx @@ -306,12 +306,11 @@ function ConversationTool({ item, onOpenStep }: { item: ConversationItem; onOpen const executionStatus = failed ? "Failed" : "Completed"; const [open, setOpen] = useState(failed); const name = item.toolCall?.name ?? item.span.name; - const attemptStatus = - item.toolAttempt?.resultStatus === "recorded" - ? "Result recorded" - : item.toolAttempt?.resultStatus === "conflicting" - ? "Conflicting results" - : "Result not recorded"; + const attemptStatus = { + recorded: "Result recorded", + conflicting: "Conflicting results", + not_recorded: "Result not recorded", + }[item.toolAttempt?.resultStatus ?? "not_recorded"]; const summary = toolSummary(item.toolCall?.args); return (
diff --git a/ui/litellm-dashboard/src/components/lens/traces/detail/conversation/conversation.ts b/ui/litellm-dashboard/src/components/lens/traces/detail/conversation/conversation.ts index 3d4d7ac7df6..b36f1da44fa 100644 --- a/ui/litellm-dashboard/src/components/lens/traces/detail/conversation/conversation.ts +++ b/ui/litellm-dashboard/src/components/lens/traces/detail/conversation/conversation.ts @@ -346,14 +346,15 @@ export function buildConversation( for (const result of unexecutedToolResults(details.get(span.span_id)!)) { if (attempts.has(result.id)) continue; attempts.add(result.id); - items.push({ + const attempt: ConversationItem = { id: `${span.span_id}-${result.id}`, span, messages: [], toolCall: { name: "Tool attempt", args: { tool_call_id: result.id } }, toolAttempt: { isError: result.isError, resultStatus: "recorded" }, toolResult: result.content, - }); + }; + items.push(attempt); } continue; }