Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ To keep quality and reliability high, contributions should meet these criteria:

When adding features or changing behavior:

* Update user-facing package documentation in [PYPIDESCRIPTION.md](PYPIDESCRIPTION.md) where applicable.
* Update user-facing package documentation in PYPIDESCRIPTION.md where applicable.
Comment thread
OscarDDD marked this conversation as resolved.
Resolved
* Update or add inline code documentation where necessary.
* Update relevant documentation under [docs](docs) if the change affects usage.
* Update relevant documentation under [AI SDK docs](https://github.com/SAP/ai-sdk/tree/main/docs-python), if the change affects usage.

## Issues and Planning

Expand Down
61 changes: 47 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

SAP Cloud SDK for AI is the official Software Development Kit (SDK) for SAP AI Core, SAP Generative AI Hub, and Orchestration Service.

The SDK formerly known as generative AI Hub SDK was rebranded.
This repository contains three packages, formerly known as the AI API Client SDK (`sap-ai-sdk-base`), AI Core SDK (`sap-ai-sdk-core`), and Generative AI Hub SDK (`sap-ai-sdk-gen`).

## Installation

Expand All @@ -27,32 +27,65 @@ Install selected extras:
pip install "sap-ai-sdk-gen[google,amazon]"
```

For detailed configuration and usage examples, see [README_sphynx.md](README_sphynx.md).

## Development

Main SDK modules are under [gen_ai_hub](gen_ai_hub).
This project uses [uv](https://docs.astral.sh/uv/) for dependency management and provides a Makefile for common tasks.

### Setup

Install all packages and extras:

```bash
make install
```

### Code Quality

```bash
make format # auto-format code with Ruff
make format-check # check formatting without modifying files
make lint # run Pylint (errors only) across all packages
make license-check # list third-party license information
```

### Testing

Run unit tests for all packages:

Integration tests are split into two groups:
```bash
make test
```

Run integration tests for all packages:

1. Standard integration tests.
2. Bedrock integration tests marked with the pytest marker bedrock.
```bash
make test-integration
```

Run tests with:
Run tests for a single package (`base`, `core`, or `gen`):

```bash
pytest tests -v
pytest integration_tests -m "not bedrock" -v
pytest integration_tests -m bedrock -v
make test-pkg pkg=core
make test-pkg-integration pkg=core
```

You can also use the Makefile targets for acceptance test runs.
### Sample Code Server

Start the local sample-code server (requires a `sample-code/.env` file):

```bash
make sample-code-server
```

## Documentation

Documentation sources are in [docs](docs), and generated API docs are included there as well.
For user-facing documentation, see the [AI SDK docs](https://github.com/SAP/ai-sdk/tree/main/docs-python).

For local documentation workflows and SDK configuration details, see [README_sphynx.md](README_sphynx.md).
To generate API reference docs locally:

```bash
make docs
```

## Support, Feedback, Contributing

Expand Down
24 changes: 0 additions & 24 deletions TODO.md

This file was deleted.

4 changes: 2 additions & 2 deletions packages/base/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The main client class is the [AIAPIV2Client](ai_api_client_sdk/ai_api_v2_client.
has resource clients as properties. The resource client implementations can be found in folder [resource_clients](ai_api_client_sdk/resource_clients).
The resources, response types etc. are represented by model classes. These can be found in folder [models](ai_api_client_sdk/models).

Renovate is set up for this repository. For further information, take a look at the [documentation in ml-api-facade](https://github.wdf.sap.corp/AI/ml-api-facade/blob/master/docs/renovate.md).
Renovate is set up for this repository. For further information, you can take a look at the [official website](https://www.mend.io/mend-renovate/).

## Usage

Expand Down Expand Up @@ -75,5 +75,5 @@ scenario = ai_api_v2_client.scenario.get(scenario_id="<SCENARIO_ID>")

The [unit tests](tests) are simply python unit tests. They can be run via pytest or directly from IDE.

The [integration_tests](integration_tests) are also python tests. They run against intwdf cluster.
The [integration_tests](integration_tests) are also python tests. They run against an internal cluster.

Loading
Loading