Read what a play has learned
curl --request GET \
--url https://api.retriever.run/v1/plays/{id}/memory \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.retriever.run/v1/plays/{id}/memory"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.retriever.run/v1/plays/{id}/memory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.retriever.run/v1/plays/{id}/memory",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.retriever.run/v1/plays/{id}/memory"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.retriever.run/v1/plays/{id}/memory")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.retriever.run/v1/plays/{id}/memory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"summary": {
"path": "<string>",
"content": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
},
"next_run_notes": {
"path": "<string>",
"content": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
},
"other_files": [
{
"path": "<string>",
"description": "<string>",
"tokens": 123,
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "not_authenticated",
"message": "A valid API key is required."
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded. Retry in 12 s."
}
}Plays
Read what a play has learned
What the play’s runs read: summary (MEMORY.md) and next_run_notes in full, in markdown, and other_files, the index of its other memory files. With file, one of those files in full. The play writes its memory after its runs, and before the next run from the leads reviewed since. Empty before the first run.
GET
/
v1
/
plays
/
{id}
/
memory
Read what a play has learned
curl --request GET \
--url https://api.retriever.run/v1/plays/{id}/memory \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.retriever.run/v1/plays/{id}/memory"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.retriever.run/v1/plays/{id}/memory', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.retriever.run/v1/plays/{id}/memory",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.retriever.run/v1/plays/{id}/memory"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.retriever.run/v1/plays/{id}/memory")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.retriever.run/v1/plays/{id}/memory")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"summary": {
"path": "<string>",
"content": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
},
"next_run_notes": {
"path": "<string>",
"content": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
},
"other_files": [
{
"path": "<string>",
"description": "<string>",
"tokens": 123,
"updated_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"code": "not_authenticated",
"message": "A valid API key is required."
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded. Retry in 12 s."
}
}