File size: 917 Bytes
68d7816 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | import { createDecorator, type ServiceIdentifier } from '#/_base/di/instantiation';
import type { Event } from '#/_base/event';
import type { RuntimeBinding } from '#/runtime/runtime';
export interface IAgentRuntimeBindingService {
readonly _serviceBrand: undefined;
readonly current: RuntimeBinding;
readonly onDidChange: Event<RuntimeBinding>;
get(): RuntimeBinding;
set(binding: RuntimeBinding): RuntimeBinding;
switch(runtimeId: string): RuntimeBinding;
}
export const IAgentRuntimeBindingService: ServiceIdentifier<IAgentRuntimeBindingService> = createDecorator<IAgentRuntimeBindingService>('agentRuntimeBindingService');
export interface IAgentRuntimeBindingSeed {
readonly _serviceBrand: undefined;
readonly binding: RuntimeBinding;
}
export const IAgentRuntimeBindingSeed: ServiceIdentifier<IAgentRuntimeBindingSeed> = createDecorator<IAgentRuntimeBindingSeed>('agentRuntimeBindingSeed');
|