How to develop
This extension project is divided into two parts:
SmartVscode Side (Frontend): It is responsible for the user interaction interface, communication with the backend service, and executing the API calls returned by the backend service.
App-Controller Side (Backend): It utilizes large language models (LLMs) to orchestrate the optimal API calls to fulfill user requirements based on App-Controller framework.
When you need to develop the SmartVscode extension, you need to install the frontend from source code and start your own backend service for testing and development.
Step 1: Start your own backend service
Step 2: Install and run the SmartVscode extension
Before you start, ensure that you have
Node.js
andnpm
installed on your system.Clone the repository to your local machine
git clone git@github.com:alibaba/smart-vscode-extension.git
Install the
Yarn
package manager by runningnpm install --global yarn
On the root directory, run
yarn
command to install the dependencies listed inpackage.json
yarn install
Configure the URL and Port of http communication between
SmartVscode extension
withApp-Controller Side (Backend)
by modifyingllm4apisServiceBaseUrl
in thesrc/Common/Config.ts
file. Ensure that thellm4apisServiceBaseUrl
correspond to the service to be deployed.Within VS Code - run the project by simply hitting
F5
Step3: Start to develop
You can expand the functionality of SmartVscode by providing more API knowledge, specifically referring to: Data Preparation.
You can expand more interactions between SmartVscode (fontend) and App-Controller (backend) by referring to: Communication Interface Implementation.