λats-sdk

AI Agent Tools

Equip your LLM agents with function-calling tools to query live career data.

AI Agent Tools

ATS SDK includes first-class support for AI agents. With createAtsAgentTools(), you can generate native tool schemas ready for the Vercel AI SDK, LangChain, or direct OpenAI chat completions.

Vercel AI SDK Example

import { createAtsAgentTools } from "ats-sdk/agent-tools";
import { generateText, step } from "ai";
import { openai } from "@ai-sdk/openai";

const atsTools = createAtsAgentTools();

const result = await generateText({
  model: openai("gpt-4o"),
  tools: {
    ats_get_jobs: {
      description: atsTools.get_jobs.description,
      parameters: atsTools.get_jobs.parameters,
      execute: async ({ provider, companySlug }) => {
        return atsTools.get_jobs.execute({ provider, companySlug });
      },
    },
    ats_get_job: {
      description: atsTools.get_job.description,
      parameters: atsTools.get_job.parameters,
      execute: async ({ provider, companySlug, jobId }) => {
        return atsTools.get_job.execute({ provider, companySlug, jobId });
      },
    },
  },
  prompt:
    "Find engineering openings at Stripe and check if any are remote in the US.",
});

console.log(result.text);

Available Tool Definitions

ats_get_jobs

  • Description: Fetch all active job listings from an ATS provider for a given company.
  • Parameters:
    • provider: "greenhouse" | "ashby" | "lever" | "workday" | "smartrecruiters" | "workable" | "recruitee" | "breezy" | "bamboohr"
    • companySlug: The company slug or identifier.

ats_get_job

  • Description: Fetch full details and description for a specific job posting.
  • Parameters:
    • provider: ATS provider key.
    • companySlug: Company slug.
    • jobId: The external posting ID.

On this page