List methods
const url = 'https://api.pensievelabs.co/v1/methods?limit=20';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.pensievelabs.co/v1/methods?limit=20' \ --header 'Authorization: Bearer <token>'The built-in methods and your own, in one list.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The next_cursor of the page before.
Responses
Section titled “Responses”A page of methods.
object
A post-training method, written as a plain markdown file. It starts with a # title and a paragraph
saying what the method does and when to try it; the rest is up to its author. Pensieve’s own files have
Needs, Steps, Settings (what an experiment can change) and Checks. Agents read the file to design
experiments with the method and follow it as written.
object
A post-training method’s slug, such as fine-tuning. See List methods for what your workspace has.
The file’s title.
The file’s first paragraph.
The whole file.
Goes up by one with every change. Each experiment records the version it ran.
Shipped by Pensieve. Built-in methods can’t be changed or removed.
Example
{ "object": "list", "data": [ { "id": "fine-tuning", "object": "method", "name": "Fine-tuning" } ]}default
Section titled “default”Something went wrong; error.type says what.
object
object
The request field the error is about.
Example
{ "error": { "type": "invalid_request" }}