D-ID Client SDK - v3.0.0-0
    Preparing search index...

    Function isAwaitingTool

    • Whether the agent is waiting on a tool call before it can continue.

      True while any of the running calls is blocking; false when nothing is running, or when everything running is async and the agent can keep talking. Pass it the array onRunningToolCallsChange hands you, to decide whether to show the user that the agent is busy.

      Parameters

      Returns boolean

      true while the agent is suspended on a blocking tool call.

      import { isAwaitingTool, type AgentManagerCallbacks } from '@d-id/client-sdk';

      const callbacks: AgentManagerCallbacks = {
      onRunningToolCallsChange(calls) {
      setSpinnerVisible(isAwaitingTool(calls));
      },
      };