import { AISettingsService, ParsedCapability, GenericCapabilitySelections, ServerToolDescriptor } from '@theia/ai-core/lib/common'; import * as React from '@theia/core/shared/react'; import { AiSettingsRowService } from '@theia/ai-core-ui/lib/browser/ai-configuration/components/ai-settings-row-service'; export interface AgentCapabilitiesSettingsProps { capabilities: ParsedCapability[]; agentId: string; savedOverrides: Record | undefined; aiSettingsService: AISettingsService; settingsRowService: AiSettingsRowService; /** * Reveals the capability's prompt fragment on the Prompt Snippets page. The text is global, shared by * every agent that references it, which is why the row links there instead of editing it in place. */ onOpenPromptSnippet: (fragmentId: string) => void; } /** * The "Available Capabilities" section of the agent detail page: one toggle per capability the prompt * declares. Each toggle writes an override only when it differs from the agent's default; a per-row * reset (gear menu) and a "Reset All to Defaults" button clear overrides back to the declared defaults. */ export declare const AgentCapabilitiesSettings: ({ capabilities, agentId, savedOverrides, aiSettingsService, settingsRowService, onOpenPromptSnippet }: AgentCapabilitiesSettingsProps) => React.JSX.Element; export interface AgentGenericCapabilitiesSettingsProps { agentId: string; savedSelections: GenericCapabilitySelections | undefined; aiSettingsService: AISettingsService; settingsRowService: AiSettingsRowService; /** Reveals the snippet that wraps this capability type's selections, as in {@link AgentCapabilitiesSettings}. */ onOpenPromptSnippet: (fragmentId: string) => void; } /** * The "Generic Capabilities" section of the agent detail page: one row per capability type the user has * selected (skills, MCP functions, functions, prompt fragments, agent delegation, variables). Only * selected types are shown; each row is an override with a per-type reset and a shared "Reset All". */ export declare const AgentGenericCapabilitiesSettings: ({ agentId, savedSelections, aiSettingsService, settingsRowService, onOpenPromptSnippet }: AgentGenericCapabilitiesSettingsProps) => React.JSX.Element; export interface AgentServerToolsSettingsProps { agentId: string; /** Server tools the agent's model offers. */ tools: ServerToolDescriptor[]; /** Vendor the selections are keyed by: the vendor of the model offering the tools. */ vendor: string; savedSelections: Record | undefined; aiSettingsService: AISettingsService; /** Backs each enabled row's gear menu, whose "Reset Setting" switches that tool back off. */ settingsRowService: AiSettingsRowService; } /** * The "Server Tools" section of the agent detail page: one toggle per tool the agent's model offers, executed * by the provider rather than by Theia. The same per-agent setting the chat input's capabilities popup writes, * keyed by model vendor because the tools are vendor-specific. * * Nothing is enabled unless it is listed, so an enabled tool is the deviation from the default and carries the * modified indicator; "Reset All to Defaults" drops this vendor's selections, leaving other vendors' alone. */ export declare const AgentServerToolsSettings: ({ agentId, tools, vendor, savedSelections, aiSettingsService, settingsRowService }: AgentServerToolsSettingsProps) => React.JSX.Element; //# sourceMappingURL=agent-capabilities-settings.d.ts.map