KNotJev : Kev

Adapters

LangChain / LlamaIndex helpers live on @kev-ai/sdk — no separate package.

LangChain-style tool

import { createLangChainKevTool } from "@kev-ai/sdk/langchain";
import { Choice, Noul } from "@kev-ai/sdk";

const tool = createLangChainKevTool({
  baseUrl: "http://127.0.0.1:3000",
});

const res = await tool.invoke({
  state: "User wants a refund on a double charge.",
  questions: {
    team: Choice("Route to?", {
      billing: "charges",
      technical: "bugs",
    }),
    escalate: Noul("Need a human?"),
  },
});

console.log(res.answers.team.choice, res.answers.escalate.noul);

LlamaIndex-style tool

import { createLlamaIndexKevTool } from "@kev-ai/sdk/llamaindex";
import { Noul } from "@kev-ai/sdk";

const tool = createLlamaIndexKevTool({
  baseUrl: "http://127.0.0.1:3000",
});

const res = await tool.call({
  state: "Comment looks aggressive — check toxicity.",
  questions: {
    toxic: Noul("Toxic enough to hide?"),
  },
});