The sk-python-hello-world
console application demonstrates how to execute a semantic function.
- Python 3.8 and above
- Poetry is used for packaging and dependency management
- Semantic Kernel Tools
The starter can be configured with a .env
file in the project which holds api keys and other secrets and configurations.
Make sure you have an Open AI API Key or Azure Open AI service key
Copy the .env.example
file to a new file named .env
. Then, copy those keys into the .env
file:
OPENAI_API_KEY=""
OPENAI_ORG_ID=""
AZURE_OPENAI_DEPLOYMENT_NAME=""
AZURE_OPENAI_ENDPOINT=""
AZURE_OPENAI_API_KEY=""
To run the console application within Visual Studio Code, just hit F5
.
As configured in launch.json
and tasks.json
, Visual Studio Code will run poetry install
followed by python hello_world/main.py
To build and run the console application from the terminal use the following commands:
poetry install
poetry run python hello_world/main.py