Workspace home
Ready
Governance

TypeScript SDK

Agent, workflow, memory, RAG, and eval helpers that call the Keprix backend runtime.

Modules

Exported SDK surface

Examples

Reference implementations in the repo

Backend endpoints

Routes the SDK calls on your Keprix instance

Code samples
agent
import { Agent, createLocalClient } from "@keprix/sdk";

const client = createLocalClient();
const agent = Agent.define(client, {
  name: "my-agent",
  instructions: "You are helpful.",
});
const result = await agent.run({ message: "Hello" });
workflow
import { createWorkflow, WorkflowRunner, createLocalClient } from "@keprix/sdk";

const workflow = createWorkflow("demo")
  .task("step1", { key: "ready", value: true })
  .approval("gate", "Continue?")
  .build();
const run = await new WorkflowRunner(createLocalClient()).start(workflow);
evals
import { defineEvalSuite } from "@keprix/sdk";

const suite = defineEvalSuite("smoke")
  .case({ name: "echo", input: "ping", expect_equals: "ping" });
const report = suite.runLocal((input) => input);
Agent context