Skip to content

Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.

888 B
Raw Blame
"use client";

import { getToolName, type ToolUIPart } from "ai";
import { AgentStatusRow } from "@/components/agent/AgentStatusRow";

// Confirmation renders null for these states, so this is not redundant with
// it. On a local 8B, deciding on a tool call is the longest phase of a turn.
export function AgentToolRunningCard({ part }: { part: ToolUIPart }) {
  const toolName = getToolName(part);
  const label =
    toolName === "add_job"
      ? "Preparing to add a job…"
      : toolName === "get_resume"
        ? "Reading your resume…"
        : toolName === "review_resume"
          ? "Reviewing your resume…"
          : toolName === "match_job"
            ? "Matching your resume to this job…"
            : toolName === "generate_cover_letter"
              ? "Writing your cover letter…"
              : "Working…";

  return <AgentStatusRow label={label} />;
}