Constructs an instance of the OpenAiIntentMatcher
.
Your node URL (Example: 'https://YOUR-NODE-ID.us.gaianet.network/v1'). Defaults to https://llama8b.gaia.domains/v1
Your Gaia API Key
Optional
model: string = 'llama'The model to be used for intent analysis. Defaults to 'llama'.
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.