Interface for matching user intents to appropriate tools. Provides functionality to analyze intents and find matching tools from a registry.

interface IntentMatcher {
    analyzeIntentAndMatchTool(intent, registeredTools): Promise<IntentMatcherResponse<any>>;
}

Implemented by

Methods

  • Analyzes a user's intent and attempts to match it to a registered tool.

    Parameters

    • intent: string

      The user's intent string to analyze.

    • registeredTools: AwTool<any, any>[]

      Array of available tools to match against.

    Returns Promise<IntentMatcherResponse<any>>

    A promise resolving to the intent matching results.