Download packages/agent-core-v2/src/agent/state/agentState.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 756 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/state/agentState.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/agent/state/agentState.ts
-
curl -L -o agentState.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/state/agentState.ts
756 Bytes
| import { createDecorator, type ServiceIdentifier } from '#/_base/di/instantiation'; | |
| import type { IDisposable } from '#/_base/di/lifecycle'; | |
| import type { IStateRegistry } from '#/_base/state/stateRegistry'; | |
| import type { ReplayableStateKey } from '#/state/state'; | |
| export interface IAgentStateService extends IStateRegistry { | |
| readonly _serviceBrand: undefined; | |
| replayableKeys(): readonly ReplayableStateKey<any>[]; | |
| onDidContributeReplayable( | |
| listener: (key: ReplayableStateKey<any>) => void, | |
| ): IDisposable; | |
| onDidWithdrawReplayable( | |
| listener: (key: ReplayableStateKey<any>) => void, | |
| ): IDisposable; | |
| } | |
| export const IAgentStateService: ServiceIdentifier<IAgentStateService> = | |
| createDecorator<IAgentStateService>('agentStateService'); | |