PackagePackagetypeA library you install and call yourself.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →

llm_client

An ABAP client that gives chat-completion LLM APIs one interface for chat messages, structured output and tool calls across ten providers, from OpenAI and Anthropic to OLLAMA and AWS Bedrock.

Calling a different LLM provider from ABAP usually means a different SDK and a different response shape for each one. This client gives ABAP a single interface for chat messages, structured output and tool calls across ten providers — OLLAMA, OpenAI, OpenRouter, Azure OpenAI, Azure AI Foundry, Anthropic, Google Vertex AI, Deepseek, Google Gemini API and AWS Bedrock — with custom authentication added by sub-classing a provider class. It stops at chat: image, audio and video endpoints are out of scope, and a port to ABAP Cloud is not planned, since the maintainer points to Python and other languages for GenAI work on BTP instead.

Facts

Last pushLicenceMIT

Where it sits

Lives in
Provides
LLM integrationABAPLLM 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.

Who is behind it

ABAP-AIABAP-AIOrganisationMaintains this
In the atlas: maintains 3
@abap-ai
maintainerBastianPersonContributes to this
In the atlas: contributes to 3
@wommel0
1 contributor

Before choosing this

Signals

RepositoryArchivedThe declared repository is archived

GitHub reports the repository as archived. The package may remain installable, but its source is no longer open for normal maintenance.

What it declares

Every artifact

Type
Package
Origin
Independently maintained

As a package

Where it runs
does not say
Distributed through
does not say

Connections1

README

quoted from abap-ai/llm_client under MIT, read
abap-ai/llm_client/README.mdOn GitHub

ABAP LLM Client

Discord - I will post regular updates and plans there.

Documentation

See Overview in docs folder.

Overview

ABAP LLM Client provides a universal strongly opinionated interface to on-premise and cloud-based LLM APIs, focusing primarily on chat endpoints. The client is designed to seamlessly integrate with various LLM providers while maintaining a consistent interface for ABAP applications.

Currently supported providers:

  • OLLAMA
  • OpenAI
  • OpenRouter
  • Azure OpenAI
  • Azure AI Foundry
  • Anthropic (structured output is not supported, considering simulating this via tool calls - vote in issue for that)
  • Google Vertex AI
  • Deepseek (structured output currently not supported)
  • Google Gemini API
  • AWS Bedrock via Converse API Endpoint

Features

  • Chat messages
  • Structured output
  • Tool (function) call
  • Multiple provider integration
  • Customizable

Known Limitations

  • Tested only on 7.52 & ABAP 2022 - experimental downport available in branch 702
  • No advanced parsing to compensate LLM output errors especially in structured output and tool calls

Not planned

The following topics are currently not considered but feel free to challenge that in discussions if you have a specific use case.

  • Port to ABAP Cloud - if you use BTP you might aswell consider using Python or other languages with better GenAI library support
  • Non-Chat (e.g. image, audio, video) support

Why ABAP LLM Client?

ABAP might not be the first environment that comes to mind for GenAI projects, but it's the foundation for critical business processes in many organizations. This client exists to bridge this gap: It provides a straightforward way to integrate LLM capabilities into existing ABAP business logic.

Core Ideas
  • Simple Integration: Focus on the most commonly needed LLM features (mainly chat endpoints) rather than trying to support every possible API feature
  • Practical Approach: Built for ABAP developers who need to enhance existing business functions with LLM capabilities, not for ML experiments
  • Stable Integration: As tools and structured output become standard features across LLM providers, integration becomes more reliable and maintainable
  • Real-World Usage: Designed for actual business scenarios where you might want to:
    • Enhance existing ABAP reports with AI-powered insights
    • Add LLM capabilities to business workflows
    • Prototype AI features in existing ABAP applications
No Frills

This is not a full-featured ML framework or a complex AI platform. It's a practical tool for ABAP developers who need to call LLM APIs and process their responses within their ABAP environment. Nothing more, nothing less. If you need to integrate LLM capabilities into your ABAP systems and want to do it with minimal overhead, this client might be useful for you.

Usage

Refer to the llm_client_test repository on how to use the llm client and the docs folder for further details.

⚠️ Security Notice: Currently no safeguards. Use API keys with appropriate usage limits to prevent accidental charges e.g. for unexpected endless loops, etc.

Extension

Custom LLM Authenticaton implementations can be created by:

  1. Sub-classing the specific provider class
  2. Redefining the SET_AUTH method In general for most parts interfaces are available to easily use custom implementations preferrably via sub-classes.

Roadmap - Planned Features

With the Beta release my focus is on using this library for further AI based topics (stay tuned) --> bug fixes have priority. Open a discussion or an issue if you have a specific requirement. Further features mid-term (check discord for short term plans and to discuss the current state):

  • Workaround to force use required tool to simulate structured output where providers miss this feature (e.g. Azure AI Foundry)
  • Better error- and edge-case handling
  • Optimizations:
    • Code re-use for the clients where useful
    • Consider a common JSON-Schema builder for structured output and tool use
    • Performance Optimizations (low prio)
  • ??? - Open issues/discussions for whatever comes to your mind

Contributing

Feel free to:

  • Open issues for bug reports
  • Use Discord for discussions
  • Request/Implement additional provider implementations
  • Suggest concept improvements

Security Recommendations

  • Use SM59 supported authentication methods e.g. by using an API Gateway for credential mapping
  • Set appropriate usage limits on API keys and monitor their usage
  • Implement custom authorization checks to limit who can use the LLM Client
MIT, read

History

Latest

v0.20dated in the atlas

Removed 4

Notes
  • Rework of the client interface, old one available as zif_llm_client_int
  • New ZCL_LLM_CLIENT is a wrapper around the old (now internal) interface, prefer this
  • Several bugfixes especially for Gemini client and tool calls
  • Features of the new client:
    • Simplified interface
    • Request now handled internally, one interface only
    • Send User Message with execute --> no add_message required
    • Auto-add LLM responses to chat history
    • Auto-retry in case of error (3 times by default, additional 10 seconds wait on 429/529)
    • Simpler execution of tools
LLM integration
  1. abap-agent-runtimeABAP-native MCP endpoint that drives opted-in abap2UI5 appsfrom ABAP
  2. abap_btocs_ollamaB-Tocs ABAP SDK plugin connecting to Ollama modelsfrom ABAP
  3. SAP AI CoreAI runtime on BTP with the Generative AI Hubfrom BTP/BAIP
  4. cap-java/cds-aiBridge from CAP Java to SAP AI Core, with Fiori field recommendationsfrom CAP
  5. @cap-js/aiValue-help recommendations and SAP AI Core as a CAP servicefrom CAP
  6. cap-llm-pluginGenerative AI in CAP with fields anonymised through SAP HANAfrom CAP
  7. @geertjanklaps/cds-toon-ai-protocol-adapterProtocol adapter serving CAP data as TOON instead of JSONfrom CAP
  8. abap-sdk-nwas-xABAP client library for IBM watsonx.ai APIsfrom ABAP
  9. @jerome-benoit/sap-ai-providerVercel AI SDK provider for SAP AI Corefrom CAP
  10. ui5-cap-ai-featuresCDS plugin and UI5 controls for AI text features via SAP AI Corefrom CAP
  11. Microsoft AI SDK for SAPABAP library for calling Azure OpenAI and OpenAIfrom ABAP
  12. zllmABAP framework for chaining and orchestrating LLM callsfrom ABAP
  13. ABAP AI SDKSAP reuse library for calling large language models from ABAPfrom ABAP
  14. @sap-ai-sdk/ai-apiAI Core control plane API surface of SAP's AI SDKfrom CAP
  15. @sap-ai-sdk/coreShared internals of SAP's AI SDKfrom CAP
  16. @sap-ai-sdk/foundation-modelsClient for foundation models via SAP AI Core and Generative AI Hubfrom CAP
  17. @sap-ai-sdk/orchestrationOrchestration Service client for templating, grounding and maskingfrom CAP
  18. @sap-ai-sdk/prompt-registryClient for prompts kept in SAP's prompt registryfrom CAP
  19. @saptarishi/cds-plugin-llmCAP service kind putting eleven model providers behind one APIfrom CAP
  20. @shahid.la/cds-db-nlquery-mcpMCP server answering plain-English questions against a CDS schemafrom CAP
  21. @ui5/webcomponentsSAP's UI elements as standard custom elementsfrom UI5
  22. abap-sdk-nwasAn ABAP client library for IBM Watson's Discovery, Language Translator, Natural Language Understanding, Speech to Text, Text to Speech and Assistant services, installed through abapGit.from ABAP

Details

Sources3
Added by handdiscovered herechecked
github.com/abap-ai/llm_clienttree, 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 domainabap, ai-and-agents
abaplint
issues under its own abaplint configuration0
lines10,982
statements7,140
objects115
files132
analysed, main
abaplint version2.119.24
Flavors1
Standard ABAP
“Tested only on 7.52 & ABAP 2022 - **experimental** downport available in branch 702” — abap-ai/llm_client — READMEchecked
Contributors1

From the repository’s contributor list, .

History in the atlas1
  1. First seen.
For your agent
Ref
artifact:abap-ai-llm-client
JSON
/artifacts/abap-ai-llm-client.json
MCP
Connecting an agent