It sends a request to the AI Agent/Service.
The HTTP method to use when querying the Agent
The URL of the endpoint to query the Agent/Service.
Optional
data: anyThe data to send to the Agent/Service.
The request options to use when querying the Agent/Service.
The result of query
This method is used to query an existing AI Agent. It requires the user controlling the NVM API Key to have access to the agent.
await payments.query.send(accessCredentials, 'POST', 'http://example.com/agent/prompt', {'input': 'Hello'})
AxiosRequestConfig.method
Static
getThis method is used to create a singleton instance of the AIQueryApi class.
The instance of the AIQueryApi class.
The AIQueryApi class provides methods to query AI Agents on Nevermined.
Remarks
This API is oriented for AI users who already purchased access to an AI Agent and want to start querying them.