@sap-ai-sdk/langchain 1.11.1-20250414013204.0 → 1.11.1-20250415013200.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -43
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -7,12 +7,7 @@ This package provides LangChain clients built on top of the foundation model and
|
|
|
7
7
|
### Table of Contents
|
|
8
8
|
|
|
9
9
|
- [Installation](#installation)
|
|
10
|
-
- [
|
|
11
|
-
- [Usage](#usage)
|
|
12
|
-
- [Orchestration Client](#orchestration-client)
|
|
13
|
-
- [Azure OpenAI Client](#azure-openai-client)
|
|
14
|
-
- [Error Handling](#error-handling)
|
|
15
|
-
- [Local Testing](#local-testing)
|
|
10
|
+
- [Documentation](#documentation)
|
|
16
11
|
- [Support, Feedback, Contribution](#support-feedback-contribution)
|
|
17
12
|
- [License](#license)
|
|
18
13
|
|
|
@@ -22,44 +17,9 @@ This package provides LangChain clients built on top of the foundation model and
|
|
|
22
17
|
$ npm install @sap-ai-sdk/langchain
|
|
23
18
|
```
|
|
24
19
|
|
|
25
|
-
##
|
|
20
|
+
## Documentation
|
|
26
21
|
|
|
27
|
-
|
|
28
|
-
- Use the same `@langchain/core` version as the `@sap-ai-sdk/langchain` package, to see which langchain version this package is currently using, check our [package.json](./package.json).
|
|
29
|
-
- Configure the project with **Node.js v20 or higher** and **native ESM** support.
|
|
30
|
-
- Ensure that a relevant deployment is available in the SAP Generative AI Hub:
|
|
31
|
-
- Use the [`DeploymentApi`](https://github.com/SAP/ai-sdk-js/blob/main/packages/ai-api/README.md#create-a-deployment) from `@sap-ai-sdk/ai-api` or the [SAP AI Launchpad](https://help.sap.com/docs/sap-ai-core/generative-ai-hub/activate-generative-ai-hub-for-sap-ai-launchpad?locale=en-US&q=launchpad) to create a deployment.
|
|
32
|
-
- For **OpenAI model**, follow [this guide](https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/create-deployment-for-generative-ai-model-in-sap-ai-core).
|
|
33
|
-
- For **orchestration service**, follow [this guide](https://help.sap.com/docs/sap-ai-core/sap-ai-core-service-guide/create-deployment-for-orchestration).
|
|
34
|
-
- Once deployed, access the service via the `deploymentUrl`.
|
|
35
|
-
|
|
36
|
-
> **Accessing the AI Core Service via the SDK**
|
|
37
|
-
>
|
|
38
|
-
> The SDK automatically retrieves the `AI Core` service credentials and resolves the access token needed for authentication.
|
|
39
|
-
>
|
|
40
|
-
> - In Cloud Foundry, it's accessed from the `VCAP_SERVICES` environment variable.
|
|
41
|
-
> - In Kubernetes / Kyma environments, you have to mount the service binding as a secret instead, for more information refer to [this documentation](https://www.npmjs.com/package/@sap/xsenv#usage-in-kubernetes).
|
|
42
|
-
|
|
43
|
-
## Usage
|
|
44
|
-
|
|
45
|
-
This package offers LangChain clients for Azure OpenAI and SAP Orchestration service.
|
|
46
|
-
All clients comply with [LangChain's interface](https://js.langchain.com/docs/introduction).
|
|
47
|
-
|
|
48
|
-
### Orchestration Client
|
|
49
|
-
|
|
50
|
-
For more information about the Orchestration client, refer to the [documentation](https://github.com/SAP/ai-sdk-js/tree/main/packages/langchain/src/orchestration/README.md).
|
|
51
|
-
|
|
52
|
-
### Azure OpenAI Client
|
|
53
|
-
|
|
54
|
-
For more information about Azure OpenAI client, refer to the [documentation](https://github.com/SAP/ai-sdk-js/tree/main/packages/langchain/src/openai/README.md).
|
|
55
|
-
|
|
56
|
-
## Error Handling
|
|
57
|
-
|
|
58
|
-
For error handling instructions, refer to this [section](https://github.com/SAP/ai-sdk-js/blob/main/README.md#error-handling).
|
|
59
|
-
|
|
60
|
-
## Local Testing
|
|
61
|
-
|
|
62
|
-
For local testing instructions, refer to this [section](https://github.com/SAP/ai-sdk-js/blob/main/README.md#local-testing).
|
|
22
|
+
Visit the [SAP Cloud SDK for AI (JavaScript)](https://sap.github.io/ai-sdk/docs/js/overview-cloud-sdk-for-ai-js) documentation portal to learn more about its capabilities and detailed usage.
|
|
63
23
|
|
|
64
24
|
## Support, Feedback, Contribution
|
|
65
25
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ai-sdk/langchain",
|
|
3
|
-
"version": "1.11.1-
|
|
3
|
+
"version": "1.11.1-20250415013200.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"uuid": "^11.1.0",
|
|
24
24
|
"@langchain/core": "0.3.44",
|
|
25
25
|
"zod-to-json-schema": "^3.24.5",
|
|
26
|
-
"@sap-ai-sdk/
|
|
27
|
-
"@sap-ai-sdk/
|
|
28
|
-
"@sap-ai-sdk/
|
|
29
|
-
"@sap-ai-sdk/orchestration": "^1.11.1-
|
|
26
|
+
"@sap-ai-sdk/ai-api": "^1.11.1-20250415013200.0",
|
|
27
|
+
"@sap-ai-sdk/core": "^1.11.1-20250415013200.0",
|
|
28
|
+
"@sap-ai-sdk/foundation-models": "^1.11.1-20250415013200.0",
|
|
29
|
+
"@sap-ai-sdk/orchestration": "^1.11.1-20250415013200.0"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"compile": "tsc",
|