SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
68d7816 verified
Raw History Blame Contribute Delete
685 Bytes
import { createDecorator } from '#/_base/di/instantiation';
import type { ToolSource } from '#/tool/toolContract';
import type { ToolActivationPolicy } from './evaluate';
export interface IAgentToolPolicyService {
readonly _serviceBrand: undefined;
isToolActive(name: string, source?: ToolSource): boolean;
isToolActiveForDisclosure(name: string, source?: ToolSource): boolean;
isToolActiveForProfile(
profile: ToolActivationPolicy,
name: string,
source?: ToolSource,
): boolean;
setSessionDisabledTools(names: readonly string[]): Promise<void>;
}
export const IAgentToolPolicyService =
createDecorator<IAgentToolPolicyService>('agentToolPolicyService');