@pouchy_ai/companion-sdk - v0.1.0
    Preparing search index...

    Interface PendingToolCall

    One outstanding tool call from a turn that paused BEFORE this handshake — carried on hello.ack (0.37.0) so an embed that lost its state (tab reload / crash mid-pause) can rediscover what it owes and COMPLETE the paused turn instead of abandoning it via /end. Post each result with sendToolResult(id, …) exactly like a live companion.tool_call; the server's apply is idempotent per id, so double-posting is safe.

    interface PendingToolCall {
        args: string;
        id: string;
        name: string;
        pausedAt?: number;
        turnId?: string;
    }
    Index
    args: string

    The model's arguments as a raw JSON string.

    id: string

    Correlation id — echo it back on the tool result.

    name: string

    The declared tool name the model chose.

    pausedAt?: number

    Epoch ms the turn paused / last progressed — judge staleness before replaying a side-effecting call.

    turnId?: string

    Correlation id of the paused turn (when the pausing client minted one).