Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 885 Bytes

File metadata and controls

33 lines (27 loc) · 885 Bytes

API Reference

REST endpoints

Method Path Description
GET /healthz liveness
GET /readyz readiness
GET /version version info
GET /harnesses list harnesses
GET /providers list providers
GET /rewards list reward functions
GET /runs/ list runs
GET /runs/{id} get run
POST /train/ start training
POST /verify/ self-verify answers

Python SDK

from agentlightning.sdk import AgentLightningClient
c = AgentLightningClient("http://localhost:8000")
c.health(); c.train("sum two integers", epochs=3); c.verify("2+2", ["4", "4"])

TypeScript SDK

import { AgentLightningClient } from "@agentlightning/sdk";
const c = new AgentLightningClient("http://localhost:8000");
await c.health();
await c.train("sum two integers", 3);