Interface DiscoveryPolicy

Controls dynamic capability discovery performed before or during node execution.

interface DiscoveryPolicy {
    enabled: boolean;
    query?: string;
    kind?: "tool" | "skill" | "extension" | "any";
    maxResults?: number;
    fallback?: "error" | "all";
}

Properties

enabled: boolean

Master switch; when false all other fields are ignored.

query?: string

Semantic query forwarded to CapabilityDiscoveryEngine.

kind?: "tool" | "skill" | "extension" | "any"

Restricts discovery to a specific capability kind.

maxResults?: number

Maximum number of results injected into the node's context.

fallback?: "error" | "all"

Behaviour when discovery returns no results. 'all' injects the full capability list; 'error' aborts the node.