session_add_turn
Append a conversation turn to a session's fast cache to persist it as memory for later retrieval and context building.
Instructions
Append a turn (user/assistant/tool/system) to the session's fast cache.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"role": "<role>",
"text": "<text>"
},
"name": "session_add_turn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | ||
| text | Yes | ||
| dataset | No | ||
| session_id | Yes |