@salesforce/agents
    Preparing search index...

    Function createPreviewSessionCache

    • Save a marker so send/end can validate that the session was started for this agent. Caller must have started the session (agent has sessionId set). Uses agent.getHistoryDir() for the path. Pass displayName (authoring bundle name or production agent API name) so "agent preview sessions" can show it.

      Parameters

      • agent: { getHistoryDir: () => Promise<string> }
      • Optionaloptions: { displayName?: string; sessionType?: SessionType }

      Returns Promise<void>