Retrieve a method
const url = 'https://api.pensievelabs.co/v1/methods/fine-tuning';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/fine-tuning \ --header 'Authorization: Bearer <token>'A removed method answers not_found unless you pass version; every version it had stays readable.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A post-training method’s slug, such as fine-tuning. See List methods for what your workspace has.
Example
fine-tuningQuery Parameters
Section titled “Query Parameters”An earlier version of the file, such as the one an experiment ran. Default: the latest. Needed for a removed method.
Responses
Section titled “Responses”The method.
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
{ "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" }}