Constructs an instance of the OpenAiIntentMatcher
.
The API key for the OpenAI client.
Optional
model: string = 'gpt-4o-mini'The model to be used for intent analysis. Defaults to 'gpt-4o-mini'.
Static
Readonly
nameThe name of the intent matcher.
Static
Readonly
requiredThe required credential names for this intent matcher.
Analyzes the provided intent and matches it to a registered tool. If a tool is matched, it also parses the required parameters from the intent.
The intent to be analyzed.
An array of registered tools to match against the intent.
A class that implements the
IntentMatcher
interface to match intents using OpenAI's API. This class is responsible for analyzing an intent, matching it to a registered tool, and parsing the required parameters for the matched tool.