Memory
Get Memory by Session
curl -X 'POST' \
'https://api.rpggo.ai/open/game/memory' \
-H 'accept: application/json' \
-H 'Application-ID: $YOUR_APPLICATION_ID' \
-H 'Authorization: $YOUR_BEARER_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"session_id": "$SESSION_ID"
}'Retrieve the entire conversation history of the current session using the session ID.
Request Body
Name
Type
Description
{
"code": 0,
"msg": "ok",
"data": {
"memory_item": [
{
"SessionID": "$SESSION_ID",
"Source": "discord",
"BotIndex": "1160442433985859738",
"Message": "How long and often how does this happen with the fridge",
"Reply": "How long and how often does this happen with the fridge? *(rolls eyes)* Well, it seems like Karen's lunch goes missing quite frequently. Maybe she's just forgetful or someone's got a real appetite for her food. But hey, who knows, maybe it's Lamar with his holy prayers, sneaking a snack when nobody's looking. Or maybe it's Alan, the quiet immigrant driver, trying to make ends meet by taking a bite out of Karen's lunch. *(smirking)* Who knows, right?",
"Type": 0,
"CreateTime": "1701139538",
"UpdateTime": "1701139538"
},
{
"SessionID": "$SESSION_ID",
"Source": "discord",
"BotIndex": "1160442433985859738",
"Message": "Is Lamar Muslim?",
"Reply": "How would I know if Lamar is Muslim? Do I look like his personal religious advisor? *(rolls eyes)* It's not like he prays in the break room every day or anything. *(sarcastic tone)* But hey, who knows, maybe he's just really committed to his faith and has nothing to do with Karen's missing lunch. Or maybe it's Alan, the starving immigrant driver, who's desperate enough to steal food. *(smirking)* Who knows, right?",
"Type": 0,
"CreateTime": "1701139538",
"UpdateTime": "1701139538"
}
],
"counters": {
"1160442433985859738": 2,
"all": 2
}
}
}Record Memory
Request Body
Name
Type
Description
Last updated