import { Emitter, Event } from '@theia/core'; import { PromptService, ParsedCapability, GenericCapabilitySelections } from '@theia/ai-core'; import { ChatAgentService } from '@theia/ai-chat'; export declare const ChatCapabilitiesService: unique symbol; /** * Service to retrieve capability information for chat agents. * Parses capability variables from agent prompt templates. */ export interface ChatCapabilitiesService { /** * Event fired when prompt fragments change, indicating that capabilities may need to be refreshed. */ readonly onDidChangeCapabilities: Event; /** * Gets capabilities for a specific agent, optionally with a specific mode. * Parses the agent's effective prompt template to extract capability variables. * * @param agentId The agent ID to get capabilities for * @param modeId Optional mode ID to use instead of the default * @returns Array of parsed capabilities in order they appear in the template */ getCapabilitiesForAgent(agentId: string, modeId?: string): Promise; /** * Extracts generic capabilities that are already used in an agent's prompt template. * Used to disable these items in the dropdown (they're already included). * * @param agentId The agent ID to get capabilities for * @param modeId Optional mode ID to use instead of the default * @returns GenericCapabilitySelections containing IDs of capabilities already in the prompt */ getUsedGenericCapabilitiesForAgent(agentId: string, modeId?: string): Promise; } export declare class ChatCapabilitiesServiceImpl implements ChatCapabilitiesService { protected readonly promptService: PromptService; protected readonly chatAgentService: ChatAgentService; protected readonly onDidChangeCapabilitiesEmitter: Emitter; readonly onDidChangeCapabilities: Event; protected init(): void; getCapabilitiesForAgent(agentId: string, modeId?: string): Promise; getUsedGenericCapabilitiesForAgent(agentId: string, modeId?: string): Promise; protected getAgentTemplate(agentId: string, modeId?: string): string | undefined; /** * Extracts generic capabilities that are already referenced in a prompt template. * Returns all function and variable IDs without distinguishing types. * These are used to disable items in the dropdown since they're already included. */ protected extractUsedGenericCapabilities(template: string): GenericCapabilitySelections; } //# sourceMappingURL=chat-capabilities-service.d.ts.map