@salesforce/agents
    Preparing search index...

    Function getAllHistory

    • Get all history data for a session including metadata, transcript, and traces

      Parameters

      • agentId: string

        gotten from Agent.getAgentIdForStorage()

      • sessionId: string | undefined

        optional - the preview sessions' ID, gotten originally from /start .SessionId. If not provided, returns the most recent conversation

      Returns Promise<
          {
              metadata: PreviewMetadata
              | null;
              traces: PlannerResponse[];
              transcript: TranscriptEntry[];
          },
      >

      Object containing parsed metadata, transcript entries, and traces