@salesforce/agents
    Preparing search index...

    Function readTranscriptEntries

    • Read and parse the last conversation's transcript entries from JSON.

      Parameters

      • agentId: string

        gotten from Agent.getAgentIdForStorage()

      • sessionId: string

        the preview sessions' ID, gotten originally from /start .SessionId

      Returns Promise<TranscriptEntry[]>

      Array of TranscriptEntry in file order (chronological append order).