Update Long Term Memory Config
curl --request PUT \
--url http://localhost:8080/api/v2/config/memory/episodic/long_term \
--header 'Content-Type: application/json' \
--data '
{
"embedder": "<string>",
"reranker": "<string>",
"vector_graph_store": "<string>",
"vector_store": "<string>",
"segment_store": "<string>",
"properties_schema": {},
"enabled": true
}
'import requests
url = "http://localhost:8080/api/v2/config/memory/episodic/long_term"
payload = {
"embedder": "<string>",
"reranker": "<string>",
"vector_graph_store": "<string>",
"vector_store": "<string>",
"segment_store": "<string>",
"properties_schema": {},
"enabled": True
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
embedder: '<string>',
reranker: '<string>',
vector_graph_store: '<string>',
vector_store: '<string>',
segment_store: '<string>',
properties_schema: {},
enabled: true
})
};
fetch('http://localhost:8080/api/v2/config/memory/episodic/long_term', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/api/v2/config/memory/episodic/long_term",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'embedder' => '<string>',
'reranker' => '<string>',
'vector_graph_store' => '<string>',
'vector_store' => '<string>',
'segment_store' => '<string>',
'properties_schema' => [
],
'enabled' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/api/v2/config/memory/episodic/long_term"
payload := strings.NewReader("{\n \"embedder\": \"<string>\",\n \"reranker\": \"<string>\",\n \"vector_graph_store\": \"<string>\",\n \"vector_store\": \"<string>\",\n \"segment_store\": \"<string>\",\n \"properties_schema\": {},\n \"enabled\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("http://localhost:8080/api/v2/config/memory/episodic/long_term")
.header("Content-Type", "application/json")
.body("{\n \"embedder\": \"<string>\",\n \"reranker\": \"<string>\",\n \"vector_graph_store\": \"<string>\",\n \"vector_store\": \"<string>\",\n \"segment_store\": \"<string>\",\n \"properties_schema\": {},\n \"enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v2/config/memory/episodic/long_term")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"embedder\": \"<string>\",\n \"reranker\": \"<string>\",\n \"vector_graph_store\": \"<string>\",\n \"vector_store\": \"<string>\",\n \"segment_store\": \"<string>\",\n \"properties_schema\": {},\n \"enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Configuration
Update Long Term Memory Config
Update long-term memory configuration.
This endpoint updates the long-term memory configuration at runtime. Only the fields you supply are modified; omitted fields retain their current values.
The configuration includes:
- embedder: The embedder resource to use for creating embeddings
- reranker: The reranker resource to use for search result reranking
- vector_graph_store: The database for storing long-term memories
- enabled: Whether long-term memory is enabled
PUT
/
api
/
v2
/
config
/
memory
/
episodic
/
long_term
Update Long Term Memory Config
curl --request PUT \
--url http://localhost:8080/api/v2/config/memory/episodic/long_term \
--header 'Content-Type: application/json' \
--data '
{
"embedder": "<string>",
"reranker": "<string>",
"vector_graph_store": "<string>",
"vector_store": "<string>",
"segment_store": "<string>",
"properties_schema": {},
"enabled": true
}
'import requests
url = "http://localhost:8080/api/v2/config/memory/episodic/long_term"
payload = {
"embedder": "<string>",
"reranker": "<string>",
"vector_graph_store": "<string>",
"vector_store": "<string>",
"segment_store": "<string>",
"properties_schema": {},
"enabled": True
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
embedder: '<string>',
reranker: '<string>',
vector_graph_store: '<string>',
vector_store: '<string>',
segment_store: '<string>',
properties_schema: {},
enabled: true
})
};
fetch('http://localhost:8080/api/v2/config/memory/episodic/long_term', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/api/v2/config/memory/episodic/long_term",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'embedder' => '<string>',
'reranker' => '<string>',
'vector_graph_store' => '<string>',
'vector_store' => '<string>',
'segment_store' => '<string>',
'properties_schema' => [
],
'enabled' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:8080/api/v2/config/memory/episodic/long_term"
payload := strings.NewReader("{\n \"embedder\": \"<string>\",\n \"reranker\": \"<string>\",\n \"vector_graph_store\": \"<string>\",\n \"vector_store\": \"<string>\",\n \"segment_store\": \"<string>\",\n \"properties_schema\": {},\n \"enabled\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("http://localhost:8080/api/v2/config/memory/episodic/long_term")
.header("Content-Type", "application/json")
.body("{\n \"embedder\": \"<string>\",\n \"reranker\": \"<string>\",\n \"vector_graph_store\": \"<string>\",\n \"vector_store\": \"<string>\",\n \"segment_store\": \"<string>\",\n \"properties_schema\": {},\n \"enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v2/config/memory/episodic/long_term")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"embedder\": \"<string>\",\n \"reranker\": \"<string>\",\n \"vector_graph_store\": \"<string>\",\n \"vector_store\": \"<string>\",\n \"segment_store\": \"<string>\",\n \"properties_schema\": {},\n \"enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/json
Specification for updating long-term memory configuration with enabled flag.
Long-term memory backend. Omit/null to keep the existing backend; set 'declarative' or 'event' to switch.
Available options:
declarative, event The ID of the embedder resource to use for long-term memory.
Must reference an embedder configured in the resources section.
The ID of the reranker resource to use for long-term memory search.
Must reference a reranker configured in the resources section.
The ID of the vector graph store (database) for storing long-term memories.
Must reference a database configured in the resources section.
VectorStore resource id (event backend only)
SQL engine resource id backing the segment store (event backend only)
User-defined filterable properties (event backend only)
Show child attributes
Show child attributes

