@salesforce/agents
    Preparing search index...

    Function validatePreviewSession

    • Validate that the session was started for this agent (marker file exists in agent's history dir for current sessionId). Caller must set sessionId on the agent (agent.setSessionId) before calling. Throws SfError if the session marker is not found.

      Parameters

      • agent: { getHistoryDir: () => Promise<string> }

      Returns Promise<void>