Add Feature
curl --request POST \
--url http://localhost:8080/api/v2/memories/semantic/feature \
--header 'Content-Type: application/json' \
--data '
{
"set_id": "<string>",
"category_name": "<string>",
"tag": "<string>",
"feature": "<string>",
"value": "<string>",
"org_id": "universal",
"project_id": "universal",
"feature_metadata": {},
"citations": [
"<string>"
]
}
'import requests
url = "http://localhost:8080/api/v2/memories/semantic/feature"
payload = {
"set_id": "<string>",
"category_name": "<string>",
"tag": "<string>",
"feature": "<string>",
"value": "<string>",
"org_id": "universal",
"project_id": "universal",
"feature_metadata": {},
"citations": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
set_id: '<string>',
category_name: '<string>',
tag: '<string>',
feature: '<string>',
value: '<string>',
org_id: 'universal',
project_id: 'universal',
feature_metadata: {},
citations: ['<string>']
})
};
fetch('http://localhost:8080/api/v2/memories/semantic/feature', 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/memories/semantic/feature",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'set_id' => '<string>',
'category_name' => '<string>',
'tag' => '<string>',
'feature' => '<string>',
'value' => '<string>',
'org_id' => 'universal',
'project_id' => 'universal',
'feature_metadata' => [
],
'citations' => [
'<string>'
]
]),
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/memories/semantic/feature"
payload := strings.NewReader("{\n \"set_id\": \"<string>\",\n \"category_name\": \"<string>\",\n \"tag\": \"<string>\",\n \"feature\": \"<string>\",\n \"value\": \"<string>\",\n \"org_id\": \"universal\",\n \"project_id\": \"universal\",\n \"feature_metadata\": {},\n \"citations\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("http://localhost:8080/api/v2/memories/semantic/feature")
.header("Content-Type", "application/json")
.body("{\n \"set_id\": \"<string>\",\n \"category_name\": \"<string>\",\n \"tag\": \"<string>\",\n \"feature\": \"<string>\",\n \"value\": \"<string>\",\n \"org_id\": \"universal\",\n \"project_id\": \"universal\",\n \"feature_metadata\": {},\n \"citations\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v2/memories/semantic/feature")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"set_id\": \"<string>\",\n \"category_name\": \"<string>\",\n \"tag\": \"<string>\",\n \"feature\": \"<string>\",\n \"value\": \"<string>\",\n \"org_id\": \"universal\",\n \"project_id\": \"universal\",\n \"feature_metadata\": {},\n \"citations\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"feature_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Semantic Memory: Features
Add Feature
Add a semantic feature to a project.
Creates a new semantic feature with the specified category, tag, feature name, and value. Optional metadata and episode citations can be attached.
Returns the unique identifier of the created feature.
POST
/
api
/
v2
/
memories
/
semantic
/
feature
Add Feature
curl --request POST \
--url http://localhost:8080/api/v2/memories/semantic/feature \
--header 'Content-Type: application/json' \
--data '
{
"set_id": "<string>",
"category_name": "<string>",
"tag": "<string>",
"feature": "<string>",
"value": "<string>",
"org_id": "universal",
"project_id": "universal",
"feature_metadata": {},
"citations": [
"<string>"
]
}
'import requests
url = "http://localhost:8080/api/v2/memories/semantic/feature"
payload = {
"set_id": "<string>",
"category_name": "<string>",
"tag": "<string>",
"feature": "<string>",
"value": "<string>",
"org_id": "universal",
"project_id": "universal",
"feature_metadata": {},
"citations": ["<string>"]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
set_id: '<string>',
category_name: '<string>',
tag: '<string>',
feature: '<string>',
value: '<string>',
org_id: 'universal',
project_id: 'universal',
feature_metadata: {},
citations: ['<string>']
})
};
fetch('http://localhost:8080/api/v2/memories/semantic/feature', 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/memories/semantic/feature",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'set_id' => '<string>',
'category_name' => '<string>',
'tag' => '<string>',
'feature' => '<string>',
'value' => '<string>',
'org_id' => 'universal',
'project_id' => 'universal',
'feature_metadata' => [
],
'citations' => [
'<string>'
]
]),
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/memories/semantic/feature"
payload := strings.NewReader("{\n \"set_id\": \"<string>\",\n \"category_name\": \"<string>\",\n \"tag\": \"<string>\",\n \"feature\": \"<string>\",\n \"value\": \"<string>\",\n \"org_id\": \"universal\",\n \"project_id\": \"universal\",\n \"feature_metadata\": {},\n \"citations\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("http://localhost:8080/api/v2/memories/semantic/feature")
.header("Content-Type", "application/json")
.body("{\n \"set_id\": \"<string>\",\n \"category_name\": \"<string>\",\n \"tag\": \"<string>\",\n \"feature\": \"<string>\",\n \"value\": \"<string>\",\n \"org_id\": \"universal\",\n \"project_id\": \"universal\",\n \"feature_metadata\": {},\n \"citations\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8080/api/v2/memories/semantic/feature")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"set_id\": \"<string>\",\n \"category_name\": \"<string>\",\n \"tag\": \"<string>\",\n \"feature\": \"<string>\",\n \"value\": \"<string>\",\n \"org_id\": \"universal\",\n \"project_id\": \"universal\",\n \"feature_metadata\": {},\n \"citations\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"feature_id": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Body
application/json
Specification model for adding a semantic feature.
Identifier of the semantic set to add the feature to.
Category name to attach the feature to.
Tag name to associate with the feature.
Feature name/key.
Feature value.
The unique identifier of the organization.
- Must not contain slashes (`/`).
- Must contain only letters, numbers, underscores, hyphens, colon, and Unicode
characters (e.g., Chinese/Japanese/Korean). No slashes or other symbols
are allowed.
This value determines the namespace the project belongs to.
Examples:
"MemVerge"
"AI_Labs"
The identifier of the project.
- Must be unique within the organization.
- Must not contain slashes (`/`).
- Must contain only letters, numbers, underscores, hyphens, colon, and Unicode
characters (e.g., Chinese/Japanese/Korean). No slashes or other symbols
are allowed.
This ID is used in API paths and resource locations.
Examples:
"memmachine"
"research123"
"qa_pipeline"
Optional metadata to store alongside the feature.
Show child attributes
Show child attributes
Optional episode IDs supporting this feature.
Response
Successful Response
Response model for adding a semantic feature.
Unique identifier for the semantic feature.
⌘I

