pi_terminate_agent
Stop a running task, mark it interrupted, and return its partial latest reply while retaining the agent context for explicit continuation.
Instructions
Stop the current task, mark it interrupted, and return its partial latest reply. Retains the registered agent and context for explicit continuation; use pi_release_agent to unload an idle runtime.
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>"
},
"name": "pi_terminate_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes |