removeToolHistory
function removeToolHistory(data): HandoffInputResult;Removes all tool-call and tool-result messages from the history. The target agent sees only user/assistant conversational turns.
- Messages with role ‘tool’ are removed entirely.
- Assistant messages that contain ONLY tool-call content parts are removed.
- Assistant messages with mixed content (text + tool-call) are preserved.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|