The Humanloop platform can be accessed through the API or through our Python and TypeScript SDKs.

Usage Examples

Installation
$npm install humanloop
Example usage
1import { HumanloopClient, Humanloop } from "humanloop";
2
3const humanloop = new HumanloopClient({ apiKey: "YOUR_API_KEY" });
4
5// Check that the authentication was successful
6console.log(await humanloop.prompts.list());