session_end
End an agent session by generating a summary and promoting working memory, with options for completed or abandoned status.
Instructions
End an agent session via AgentMemoryManager with summary generation and working memory promotion. Unlike end_session (which handles failure distillation on graph entities), this manages the full agent session lifecycle.
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": {
"sessionId": "<sessionId>"
},
"name": "session_end"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Session completion status (default: completed) | |
| sessionId | Yes | The session ID to end |