curl --request PUT \
--url http://localhost:8080/api/v2/config/memory \
--header 'Content-Type: application/json' \
--data '
{
"episodic_memory": {
"long_term_memory": {
"embedder": "<string>",
"reranker": "<string>",
"vector_graph_store": "<string>",
"vector_store": "<string>",
"segment_store": "<string>",
"properties_schema": {}
},
"short_term_memory": {
"llm_model": "<string>",
"message_capacity": 1
},
"long_term_memory_enabled": true,
"short_term_memory_enabled": true,
"enabled": true
},
"semantic_memory": {
"enabled": true,
"database": "<string>",
"storage_backend": "<string>",
"feature_store": "<string>",
"vector_collection": "<string>",
"vector_dimensions": 1,
"llm_model": "<string>",
"embedding_model": "<string>",
"ingestion_trigger_messages": 1,
"ingestion_trigger_age_seconds": 1
}
}
'import requests
url = "http://localhost:8080/api/v2/config/memory"
payload = {
"episodic_memory": {
"long_term_memory": {
"embedder": "<string>",
"reranker": "<string>",
"vector_graph_store": "<string>",
"vector_store": "<string>",
"segment_store": "<string>",
"properties_schema": {}
},
"short_term_memory": {
"llm_model": "<string>",
"message_capacity": 1
},
"long_term_memory_enabled": True,
"short_term_memory_enabled": True,
"enabled": True
},
"semantic_memory": {
"enabled": True,
"database": "<string>",
"storage_backend": "<string>",
"feature_store": "<string>",
"vector_collection": "<string>",
"vector_dimensions": 1,
"llm_model": "<string>",
"embedding_model": "<string>",
"ingestion_trigger_messages": 1,
"ingestion_trigger_age_seconds": 1
}
}
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({
episodic_memory: {
long_term_memory: {
embedder: '<string>',
reranker: '<string>',
vector_graph_store: '<string>',
vector_store: '<string>',
segment_store: '<string>',
properties_schema: {}
},
short_term_memory: {llm_model: '<string>', message_capacity: 1},
long_term_memory_enabled: true,
short_term_memory_enabled: true,
enabled: true
},
semantic_memory: {
enabled: true,
database: '<string>',
storage_backend: '<string>',
feature_store: '<string>',
vector_collection: '<string>',
vector_dimensions: 1,
llm_model: '<string>',
embedding_model: '<string>',
ingestion_trigger_messages: 1,
ingestion_trigger_age_seconds: 1
}
})
};
fetch('http://localhost:8080/api/v2/config/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_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/api/v2/config/memory",
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([
'episodic_memory' => [
'long_term_memory' => [
'embedder' => '<string>',
'reranker' => '<string>',
'vector_graph_store' => '<string>',
'vector_store' => '<string>',
'segment_store' => '<string>',
'properties_schema' => [
]
],
'short_term_memory' => [
'llm_model' => '<string>',
'message_capacity' => 1
],
'long_term_memory_enabled' => true,
'short_term_memory_enabled' => true,
'enabled' => true
],
'semantic_memory' => [
'enabled' => true,
'database' => '<string>',
'storage_backend' => '<string>',
'feature_store' => '<string>',
'vector_collection' => '<string>',
'vector_dimensions' => 1,
'llm_model' => '<string>',
'embedding_model' => '<string>',
'ingestion_trigger_messages' => 1,
'ingestion_trigger_age_seconds' => 1
]
]),
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"
payload := strings.NewReader("{\n \"episodic_memory\": {\n \"long_term_memory\": {\n \"embedder\": \"<string>\",\n \"reranker\": \"<string>\",\n \"vector_graph_store\": \"<string>\",\n \"vector_store\": \"<string>\",\n \"segment_store\": \"<string>\",\n \"properties_schema\": {}\n },\n \"short_term_memory\": {\n \"llm_model\": \"<string>\",\n \"message_capacity\": 1\n },\n \"long_term_memory_enabled\": true,\n \"short_term_memory_enabled\": true,\n \"enabled\": true\n },\n \"semantic_memory\": {\n \"enabled\": true,\n \"database\": \"<string>\",\n \"storage_backend\": \"<string>\",\n \"feature_store\": \"<string>\",\n \"vector_collection\": \"<string>\",\n \"vector_dimensions\": 1,\n \"llm_model\": \"<string>\",\n \"embedding_model\": \"<string>\",\n \"ingestion_trigger_messages\": 1,\n \"ingestion_trigger_age_seconds\": 1\n }\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")
.header("Content-Type", "application/json")
.body("{\n \"episodic_memory\": {\n \"long_term_memory\": {\n \"embedder\": \"<string>\",\n \"reranker\": \"<string>\",\n \"vector_graph_store\": \"<string>\",\n \"vector_store\": \"<string>\",\n \"segment_store\": \"<string>\",\n \"properties_schema\": {}\n },\n \"short_term_memory\": {\n \"llm_model\": \"<string>\",\n \"message_capacity\": 1\n },\n \"long_term_memory_enabled\": true,\n \"short_term_memory_enabled\": true,\n \"enabled\": true\n },\n \"semantic_memory\": {\n \"enabled\": true,\n \"database\": \"<string>\",\n \"storage_backend\": \"<string>\",\n \"feature_store\": \"<string>\",\n \"vector_collection\": \"<string>\",\n \"vector_dimensions\": 1,\n \"llm_model\": \"<string>\",\n \"embedding_model\": \"<string>\",\n \"ingestion_trigger_messages\": 1,\n \"ingestion_trigger_age_seconds\": 1\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v2/config/memory")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"episodic_memory\": {\n \"long_term_memory\": {\n \"embedder\": \"<string>\",\n \"reranker\": \"<string>\",\n \"vector_graph_store\": \"<string>\",\n \"vector_store\": \"<string>\",\n \"segment_store\": \"<string>\",\n \"properties_schema\": {}\n },\n \"short_term_memory\": {\n \"llm_model\": \"<string>\",\n \"message_capacity\": 1\n },\n \"long_term_memory_enabled\": true,\n \"short_term_memory_enabled\": true,\n \"enabled\": true\n },\n \"semantic_memory\": {\n \"enabled\": true,\n \"database\": \"<string>\",\n \"storage_backend\": \"<string>\",\n \"feature_store\": \"<string>\",\n \"vector_collection\": \"<string>\",\n \"vector_dimensions\": 1,\n \"llm_model\": \"<string>\",\n \"embedding_model\": \"<string>\",\n \"ingestion_trigger_messages\": 1,\n \"ingestion_trigger_age_seconds\": 1\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Update Memory Config Endpoint
Update the episodic and/or semantic memory configuration.
This endpoint allows updating the memory configuration at runtime after resources (embedders, language models, rerankers) have been added or changed. Without calling this endpoint, newly added resources will not be used by the memory systems.
Both episodic_memory and semantic_memory are optional. Supply one
or both depending on which sections need updating. Within each section,
only the fields you supply are modified; omitted fields retain their
current values.
Typical workflow:
- Add a new resource via
POST /config/resources/embeddersorPOST /config/resources/language_models - Call this endpoint to point the memory configuration at the new resource
- The configuration is persisted to the configuration file
Example - update episodic long-term memory to use a new embedder:
{
"episodic_memory": {
"long_term_memory": {
"embedder": "my-new-embedder"
}
}
}
Example - update semantic memory to use a new LLM and embedder:
{
"semantic_memory": {
"llm_model": "my-new-model",
"embedding_model": "my-new-embedder"
}
}
Returns 400 if no updates are supplied (both sections are null or empty).
curl --request PUT \
--url http://localhost:8080/api/v2/config/memory \
--header 'Content-Type: application/json' \
--data '
{
"episodic_memory": {
"long_term_memory": {
"embedder": "<string>",
"reranker": "<string>",
"vector_graph_store": "<string>",
"vector_store": "<string>",
"segment_store": "<string>",
"properties_schema": {}
},
"short_term_memory": {
"llm_model": "<string>",
"message_capacity": 1
},
"long_term_memory_enabled": true,
"short_term_memory_enabled": true,
"enabled": true
},
"semantic_memory": {
"enabled": true,
"database": "<string>",
"storage_backend": "<string>",
"feature_store": "<string>",
"vector_collection": "<string>",
"vector_dimensions": 1,
"llm_model": "<string>",
"embedding_model": "<string>",
"ingestion_trigger_messages": 1,
"ingestion_trigger_age_seconds": 1
}
}
'import requests
url = "http://localhost:8080/api/v2/config/memory"
payload = {
"episodic_memory": {
"long_term_memory": {
"embedder": "<string>",
"reranker": "<string>",
"vector_graph_store": "<string>",
"vector_store": "<string>",
"segment_store": "<string>",
"properties_schema": {}
},
"short_term_memory": {
"llm_model": "<string>",
"message_capacity": 1
},
"long_term_memory_enabled": True,
"short_term_memory_enabled": True,
"enabled": True
},
"semantic_memory": {
"enabled": True,
"database": "<string>",
"storage_backend": "<string>",
"feature_store": "<string>",
"vector_collection": "<string>",
"vector_dimensions": 1,
"llm_model": "<string>",
"embedding_model": "<string>",
"ingestion_trigger_messages": 1,
"ingestion_trigger_age_seconds": 1
}
}
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({
episodic_memory: {
long_term_memory: {
embedder: '<string>',
reranker: '<string>',
vector_graph_store: '<string>',
vector_store: '<string>',
segment_store: '<string>',
properties_schema: {}
},
short_term_memory: {llm_model: '<string>', message_capacity: 1},
long_term_memory_enabled: true,
short_term_memory_enabled: true,
enabled: true
},
semantic_memory: {
enabled: true,
database: '<string>',
storage_backend: '<string>',
feature_store: '<string>',
vector_collection: '<string>',
vector_dimensions: 1,
llm_model: '<string>',
embedding_model: '<string>',
ingestion_trigger_messages: 1,
ingestion_trigger_age_seconds: 1
}
})
};
fetch('http://localhost:8080/api/v2/config/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_PORT => "8080",
CURLOPT_URL => "http://localhost:8080/api/v2/config/memory",
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([
'episodic_memory' => [
'long_term_memory' => [
'embedder' => '<string>',
'reranker' => '<string>',
'vector_graph_store' => '<string>',
'vector_store' => '<string>',
'segment_store' => '<string>',
'properties_schema' => [
]
],
'short_term_memory' => [
'llm_model' => '<string>',
'message_capacity' => 1
],
'long_term_memory_enabled' => true,
'short_term_memory_enabled' => true,
'enabled' => true
],
'semantic_memory' => [
'enabled' => true,
'database' => '<string>',
'storage_backend' => '<string>',
'feature_store' => '<string>',
'vector_collection' => '<string>',
'vector_dimensions' => 1,
'llm_model' => '<string>',
'embedding_model' => '<string>',
'ingestion_trigger_messages' => 1,
'ingestion_trigger_age_seconds' => 1
]
]),
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"
payload := strings.NewReader("{\n \"episodic_memory\": {\n \"long_term_memory\": {\n \"embedder\": \"<string>\",\n \"reranker\": \"<string>\",\n \"vector_graph_store\": \"<string>\",\n \"vector_store\": \"<string>\",\n \"segment_store\": \"<string>\",\n \"properties_schema\": {}\n },\n \"short_term_memory\": {\n \"llm_model\": \"<string>\",\n \"message_capacity\": 1\n },\n \"long_term_memory_enabled\": true,\n \"short_term_memory_enabled\": true,\n \"enabled\": true\n },\n \"semantic_memory\": {\n \"enabled\": true,\n \"database\": \"<string>\",\n \"storage_backend\": \"<string>\",\n \"feature_store\": \"<string>\",\n \"vector_collection\": \"<string>\",\n \"vector_dimensions\": 1,\n \"llm_model\": \"<string>\",\n \"embedding_model\": \"<string>\",\n \"ingestion_trigger_messages\": 1,\n \"ingestion_trigger_age_seconds\": 1\n }\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")
.header("Content-Type", "application/json")
.body("{\n \"episodic_memory\": {\n \"long_term_memory\": {\n \"embedder\": \"<string>\",\n \"reranker\": \"<string>\",\n \"vector_graph_store\": \"<string>\",\n \"vector_store\": \"<string>\",\n \"segment_store\": \"<string>\",\n \"properties_schema\": {}\n },\n \"short_term_memory\": {\n \"llm_model\": \"<string>\",\n \"message_capacity\": 1\n },\n \"long_term_memory_enabled\": true,\n \"short_term_memory_enabled\": true,\n \"enabled\": true\n },\n \"semantic_memory\": {\n \"enabled\": true,\n \"database\": \"<string>\",\n \"storage_backend\": \"<string>\",\n \"feature_store\": \"<string>\",\n \"vector_collection\": \"<string>\",\n \"vector_dimensions\": 1,\n \"llm_model\": \"<string>\",\n \"embedding_model\": \"<string>\",\n \"ingestion_trigger_messages\": 1,\n \"ingestion_trigger_age_seconds\": 1\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v2/config/memory")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Put.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"episodic_memory\": {\n \"long_term_memory\": {\n \"embedder\": \"<string>\",\n \"reranker\": \"<string>\",\n \"vector_graph_store\": \"<string>\",\n \"vector_store\": \"<string>\",\n \"segment_store\": \"<string>\",\n \"properties_schema\": {}\n },\n \"short_term_memory\": {\n \"llm_model\": \"<string>\",\n \"message_capacity\": 1\n },\n \"long_term_memory_enabled\": true,\n \"short_term_memory_enabled\": true,\n \"enabled\": true\n },\n \"semantic_memory\": {\n \"enabled\": true,\n \"database\": \"<string>\",\n \"storage_backend\": \"<string>\",\n \"feature_store\": \"<string>\",\n \"vector_collection\": \"<string>\",\n \"vector_dimensions\": 1,\n \"llm_model\": \"<string>\",\n \"embedding_model\": \"<string>\",\n \"ingestion_trigger_messages\": 1,\n \"ingestion_trigger_age_seconds\": 1\n }\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
Specification for updating memory configuration.
Partial update for episodic memory configuration. Only supplied
fields are updated; omitted fields remain unchanged.
Show child attributes
Show child attributes
Partial update for semantic memory configuration. Only supplied
fields are updated; omitted fields remain unchanged.
Show child attributes
Show child attributes

