CoAgent8 - Source API
    Preparing search index...

    Function sessionHistory

    • Paginates through conversation history events for a given session handle.

      Parameters

      • handle: string

        Session handle to paginate.

      • workspace: string

        Calling workspace path for ownership enforcement.

      • Optionalcursor: string

        Optional opaque continuation cursor from a previous page.

      • limit: number = 50

        Page size limit (1..100, default 50).

      Returns Promise<
          {
              events: (
                  ConversationEvent & {
                      fragment?: {
                          complete: boolean;
                          offsetBytes: number;
                          totalBytes: number;
                      };
                  }
              )[];
              nextCursor: string
              | null;
              revision: string;
              schemaVersion: number;
              sessionHandle: string;
          },
      >

      Page object containing schemaVersion, sessionHandle, revision, events array, and nextCursor.