Class SessionHistoryApi
java.lang.Object
com.github.copilot.generated.rpc.SessionHistoryApi
API methods for the
history namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionIdentifies the target session.Identifies the target session.compact()Optional compaction parameters.compact(SessionHistoryCompactParams params) Optional compaction parameters.Identifies the target session.Event boundary to preview for conversation-and-files rewind.rewind(SessionHistoryRewindParams params) Boundary and mode for rewinding session history.Identifies the target session.truncate(SessionHistoryTruncateParams params) Identifier of the event to truncate to; this event and all later events are removed.
-
Method Details
-
compact
Optional compaction parameters.Invokes the method with no params, applying the runtime defaults.
- Since:
- 1.0.0
-
compact
@CopilotExperimental public CompletableFuture<SessionHistoryCompactResult> compact(SessionHistoryCompactParams params) Optional compaction parameters.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
truncate
@CopilotExperimental public CompletableFuture<SessionHistoryTruncateResult> truncate(SessionHistoryTruncateParams params) Identifier of the event to truncate to; this event and all later events are removed.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
listRewindPoints
@CopilotExperimental public CompletableFuture<SessionHistoryListRewindPointsResult> listRewindPoints()Identifies the target session.- Since:
- 1.0.0
-
previewRewind
@CopilotExperimental public CompletableFuture<SessionHistoryPreviewRewindResult> previewRewind(SessionHistoryPreviewRewindParams params) Event boundary to preview for conversation-and-files rewind.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
rewind
@CopilotExperimental public CompletableFuture<SessionHistoryRewindResult> rewind(SessionHistoryRewindParams params) Boundary and mode for rewinding session history.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
cancelBackgroundCompaction
@CopilotExperimental public CompletableFuture<SessionHistoryCancelBackgroundCompactionResult> cancelBackgroundCompaction()Identifies the target session.- Since:
- 1.0.0
-
abortManualCompaction
@CopilotExperimental public CompletableFuture<SessionHistoryAbortManualCompactionResult> abortManualCompaction()Identifies the target session.- Since:
- 1.0.0
-
summarizeForHandoff
@CopilotExperimental public CompletableFuture<SessionHistorySummarizeForHandoffResult> summarizeForHandoff()Identifies the target session.- Since:
- 1.0.0
-