File size: 537 Bytes
68d7816
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { createDecorator, type ServiceIdentifier } from '#/_base/di/instantiation';

export interface UndoAvailability {
  readonly maxTurns: number;
  readonly stoppedAtCompaction: boolean;
}

export interface IAgentConversationUndoService {
  readonly _serviceBrand: undefined;

  availability(): UndoAvailability;
  undo(turns: number): Promise<number>;
}

export const IAgentConversationUndoService: ServiceIdentifier<IAgentConversationUndoService> =
  createDecorator<IAgentConversationUndoService>('agentConversationUndoService');