ctrl or cmd + n: to add a new node on current flow.
ctrl or cmd + k, then v on "flow.dag.yaml" Yaml editor: to open the visual editor with GUI support and visualization.
f5 on "flow.dag.yaml": to trigger flow debug with debugging mode for Python tools.
shift + f5 on "flow.dag.yaml": to trigger flow tests.
ctrl or cmd + s on "create/update_{ConnectionType}_connection.yaml": to trigger connection creation.
Install dependencies:
Prerequisites: vscode-python extension installed and a python env for your work selected. Check out the doc: Python in VS Code for more details.
Please make sure promptflow and promptflow-tools installed correctly on your working environment.
On the VS Code primary side bar > the Prompt flow pivot > quick access, you can find the "install dependencies" entry. Try it out for more instructions.
Create connections
You can find your connections list on: VS Code primary side bar > the Prompt flow pivot > the Connections section.
Right click on the plus icon on the top right. There will be a yaml templated opened for you. Please follow the instructions inline commented and use the code lens actions to create your connections.
Create your first flow
Create a new working directory for your new flow.
Find the directory on the VS Code explorer, right click it and use the "new flow in this directory" to initialize your first flow.
Alternatively, you can find the "create new flow" action.
Open the "flow.dag.yaml" file in the new created flow, enjoy authoring your flow then.
If you prefer use the visual editor to edit your flow, you can find a "Visual editor" action on the top code lens actions. Try it out.
Web and remote support
Please note that this extension only supports local development. It does not provide any web(vscode.dev) or remote support for now.
Privacy and telemetry
The Prompt flow extension collects usage data and sends it to Microsoft to help us improve our product. We respect your privacy and provide transparency about our data collection practices in our privacy statement. Learn more at Visual Studio Code - Telemetry.