Add Memory
Add Memory
This endpoint creates a single memory.
POST
/
v1
/
motorhead
/
sessions
/
{sessionId}
/
memory
curl --location --request POST 'https://api.getmetal.io/v1/motorhead/sessions/{sessionId}/memory' \
--header 'Content-Type: application/json' \
--data-raw '{
"messages": [
{ "role": "Human", "content": "Who is the best vocalist of all time?" },
{ "role": "AI", "content": "Ozzy!" }
],
"context": "User ask what can he eat in Colombia. The AI responds arepas are really nice"
}'
{
"data": {
"messages": [
{ "role": "Human", "content": "Who is the best vocalist of all time?" },
{ "role": "AI", "content": "Ozzy!" }
],
"context": "User ask what can he eat in Colombia. The AI responds arepas are really nice"
}
}
Params
The Session ID
Body
Incremental summarization of the conversation
Response
curl --location --request POST 'https://api.getmetal.io/v1/motorhead/sessions/{sessionId}/memory' \
--header 'Content-Type: application/json' \
--data-raw '{
"messages": [
{ "role": "Human", "content": "Who is the best vocalist of all time?" },
{ "role": "AI", "content": "Ozzy!" }
],
"context": "User ask what can he eat in Colombia. The AI responds arepas are really nice"
}'
{
"data": {
"messages": [
{ "role": "Human", "content": "Who is the best vocalist of all time?" },
{ "role": "AI", "content": "Ozzy!" }
],
"context": "User ask what can he eat in Colombia. The AI responds arepas are really nice"
}
}
curl --location --request POST 'https://api.getmetal.io/v1/motorhead/sessions/{sessionId}/memory' \
--header 'Content-Type: application/json' \
--data-raw '{
"messages": [
{ "role": "Human", "content": "Who is the best vocalist of all time?" },
{ "role": "AI", "content": "Ozzy!" }
],
"context": "User ask what can he eat in Colombia. The AI responds arepas are really nice"
}'
{
"data": {
"messages": [
{ "role": "Human", "content": "Who is the best vocalist of all time?" },
{ "role": "AI", "content": "Ozzy!" }
],
"context": "User ask what can he eat in Colombia. The AI responds arepas are really nice"
}
}