Download packages/agent-core-v2/src/agent/undo/undo.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/undo/undo.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/agent/undo/undo.ts
-
curl -L -o undo.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/undo/undo.ts
537 Bytes
| 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'); | |