SAP Business Application Studio is based on Code-OSS, an open-source project used for building Visual Studio Code. Available as a cloud service, SAP Business Application Studio provides a desktop-like experience similar to leading IDEs, with command line and optimized editors.
At the heart of SAP Business Application Studio are the dev spaces. The dev spaces are comparable to isolated virtual machines in the cloud containing tailored tools and preinstalled runtimes per business scenario, such as SAP Fiori, SAP S/4HANA extensions, Workflow, HANA native development and more. This simplifies and speeds up the setup of your development environment, enabling you to efficiently develop, test, build, and run your solutions locally or in the cloud.
👉 Go back to the BTP cockpit.
👉 Navigate to Instances and Subscriptions and open SAP Business Application Studio.
👉 Create a new Dev Space.
👉 Enter the name of the dev space GenAICodeJam, select the Basic kind of application and Python Tools from Additional SAP Extensions.
👉 Click Create Dev Space.
You should see the dev space STARTING.
👉 Wait for the dev space to get into the RUNNING state and then open it.
👉 Once you opened your dev space in BAS, use one of the available options to clone this Git repository with exercises using the URL below:
https://github.com/SAP-samples/codejam-code-based-agents.git👉 Click Open to open a project in the Explorer view.
👉 Go back to the Subaccount in the BTP cockpit.
👉 Navigate to Instances and Subscriptions and open the SAP AI Core instance's service binding.
👉 Click Copy JSON.
👉 Return to BAS and create a new file .env in the /project/Python/starter-project/.env directory.
👉 Update the variables using the service key into /project/Python/starter-project/.env, which should look similar to the following.
LITELLM_PROVIDER="sap"
AICORE_AUTH_URL="https://#####.authentication.eu10.hana.ondemand.com/oauth/token"
AICORE_CLIENT_ID="sb-d33842ec-eadf-4a92-83dc-9cc9cbcac74a!b129223|aicore!b540"
AICORE_CLIENT_SECRET="#####"
AICORE_RESOURCE_GROUP="code-based-agent-codejam"
AICORE_BASE_URL="https://api.ai.prod.eu-central-1.aws.ml.hana.ondemand.com"
RPT1_DEPLOYMENT_URL="https://api.ai.prod.eu-central-1.aws.ml.hana.ondemand.com/v2/inference/deployments/###/predict"👉 Start a new Terminal.
👉 Create a virtual environment using the following command:
python3 -m venv ~/projects/codejam-code-based-agents/env --upgrade-deps👉 Activate the env virtual environment like this and make sure it is activated:
source ~/projects/codejam-code-based-agents/env/bin/activate👉 Install LiteLLM and CrewAI using the following pip install commands.
pip install litellm crewai








