Class WebProvider

java.lang.Object
org.machanism.machai.ai.none.NoneProvider
org.machanism.machai.ai.web.WebProvider
All Implemented Interfaces:
GenAIProvider

public class WebProvider extends NoneProvider
The WebProvider class serves as a gateway for interacting with web-based user interfaces via a web driver when direct access to the GenAI API is not feasible. It automates communication with supported services such as AI DIAL and EPAM AI/Run CodeMie, utilizing recipes from Anteater for sending and receiving information.

Limitations: Configuration and usage of this class may require additional plugins or handling of resources such as the clipboard, especially for platforms like CodeMie. Please refer to target platform instructions prior to use.

Usage Example

 GenAIProvider provider = GenAIProviderManager.getProvider("Web:CodeMie");
 

Thread Safety

This implementation is not thread-safe.

Parameters and Methods

  • perform() - Executes the AE workspace task using input prompts.
  • setWorkingDir(File workingDir) - Initializes workspace with configuration and runs setup nodes.
  • model(String configName) - Sets the AE workspace configuration name.
Since:
0.0.2
Author:
Viktor Tovstyi