DocsCommontoolsIsHandoffResult
Package: @hexos/common

Type guard that checks whether a tool execution result is a HandoffResult signal.

Used by AgentRuntime after each tool execution to detect agent handoff requests. Checks for the __handoff: true marker property.

function isHandoffResult(result: unknown): result is HandoffResult

Parameters

result

unknown