SampleSampletypeA worked example you read or clone. Evidence: it demonstrates, it never provides.See every one →What this type is →by SAPby SAPoriginPublished by SAP itself. A visible facet, never an input to a reading — a dormant official plugin reads exactly like a dormant independent one.See every one →Reference

SAP-samples/codejam-code-based-agents

A CodeJam teaching code-based AI agents in Python or TypeScript, from a first agent through custom tools to deployment on SAP BTP and integration with Joule.

The material for the "Build code-based AI Agents on SAP Business Technology Platform" CodeJam builds an agent on Generative AI Hub in SAP AI Core, then adds custom tools using the SAP-RPT-1 model and SAP's grounding service, in one of three stacks: Python with CrewAI and LiteLLM, Python with LangGraph and LiteLLM, or TypeScript with LangGraph and the SAP Cloud SDK for AI. Each stack has the same ten exercises, from understanding Generative AI Hub through a multi-agent system and a web-search tool to deployment on Cloud Foundry with A2A and integration into SAP Joule. The Developer Advocates provide a fully functioning system and a subaccount for the duration of the session, so a participant needs only a laptop with a Chromium-based browser.

Facts

Last pushLicenceApache-2.0

Where it sits

Lives in
Demonstrates
Agent toolingBTPAgent toolingcapabilityBuilding an agent into your own application — the tools it may call, the state it keeps between turns, and the framework it runs in. Distinct from MCP servers, which expose an application to somebody else's agent, and from agent guidance, which is knowledge handed to a coding agent.LLM integrationBTPLLM integrationcapabilityCalling a language model from application code with the tenant, destination and credential handling already solved instead using an SDK call with a hand-rolled key.
Requires
SAP AI CoreSAP AI CoreartifactThe service the agents are built on: Generative AI Hub runs on it, and exercise 00 of every stack is understanding that.SAP Business Application StudioSAP Business Application StudioartifactThe development environment the exercises are written in: exercise 01 of every stack sets it up with a personal dev space.

Who is behind it

SAP SamplesSAP SamplesOrganisationMaintains this
In the atlas: maintains 222
@SAP-samples
maintainerAntonio MaradiagaPersonContributes to this
Developer Advocate
In the atlas: contributes to 10
@ajmaradiaga
davbizer93PersonContributes to this
In the atlas: contributes to 2
@davbizer93
Thomas JungPersonContributes to this
Developer Advocate
In the atlas: contributes to 15, wrote 6
@jung-thomas
Kevin RiedelsheimerPersonContributes to this
In the atlas: contributes to 11
@KevinRiedelsheimer
Shrinivasan NeelamegamPersonContributes to this
In the atlas: contributes to 4
@neelamegams
Nora von ThenenPersonContributes to this
In the atlas: contributes to 3
@noravth
Vitaliy RudnytskiyPersonContributes to this
In the atlas: contributes to 6, wrote 1
@Sygyzmundovych
Daniel WroblewskiPersonContributes to this
In the atlas: contributes to 3
@thecodester
8 contributors

What it declares

Every artifact

Type
Sample
Origin
By SAP
Use as
A reference

As a sample

Form
Workshop or CodeJam material

Connections4

README

quoted from SAP-samples/codejam-code-based-agents under Apache-2.0, read
SAP-samples/codejam-code-based-agents/README.mdOn GitHub

CodeJam - Build code-based AI Agents on SAP Business Technology Platform

REUSE status

Description

This repository contains the material for the "Build code-based AI Agents on SAP Business Technology Platform" CodeJam.

Overview

In this CodeJam, you will learn how to build state-of-the-art AI agents using Generative AI Hub, Python and JavaScript. You will also gain the skills to create custom tools for your agents, including leveraging the SAP-RPT-1 model and SAP's grounding service. Finally, you will deploy your agents to BTP.

For this CodeJam you will use one of:

  • Python, CrewAI and LiteLLM
  • Python, LangGraph and LiteLLM
  • TypeScript, LangGraph and SAP Cloud SDK for AI

You will learn more about the following SAP technologies:

  • Generative AI Hub on SAP AI Core
  • SAP-RPT-1
  • Grounding Service
  • SAP AI Launchpad
  • Business Application Studio (Python)
Python Solution Diagram

python_solution_diagram

Session prerequisites

For this CodeJam, the Developer Advocates provide a fully functioning system. You only need a laptop with a chromium-based browser installed.

Exercises

For this CodeJam you can choose between three different technology stacks. Both Python options use the same SAP AI services — they differ in the agent framework. The JavaScript option uses TypeScript and LangGraph.

If you are unsure which path to choose, ask the instructor for guidance.

Python (CrewAI + LiteLLM)
Python (LangGraph + LiteLLM)
JavaScript (LangGraph + SAP Cloud SDK for AI)

The instructor will start you on the first exercise. Proceed to the next exercise once the instructor tells you to.

For this CodeJam you are provided with a subaccount on SAP BTP. The subaccount is only available for the duration of this CodeJam.

Frequently asked Questions

You can find a list of frequently asked questions in the Frequently Asked Questions Document

Further Learning on AI

YouTube Videos

SAP Developers YouTube channel: SAP Business AI playlist

Learning

Feedback

If you can spare a couple of minutes at the end of the session, please provide feedback to help us improve next time.

Use this Give feedback link to create a special "feedback" issue, and follow the instructions in there.

Thank you!

Other CodeJams

CodeJam Community

Known Issues

How to obtain support

Create an issue in this repository if you find a bug or have questions about the content.

For additional support, ask a question in SAP Community.

License

Copyright (c) 2026 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

Apache-2.0, read

Details

Sources3
Added by handdiscovered herechecked
github.com/SAP-samples/codejam-code-based-agentstree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
discovered viaAdded by hand
first seen in the atlas
ecosystem and domainbtp, ai-and-agents
Contributors8
History in the atlas1
  1. First seen.
For your agent
Ref
artifact:sap-samples-codejam-code-based-agents
JSON
/artifacts/sap-samples-codejam-code-based-agents.json
MCP
Connecting an agent