feat: Add cache control support in langchain orchestration client#1950
feat: Add cache control support in langchain orchestration client#1950davidkna-sap wants to merge 8 commits into
Conversation
c72ccdd to
071eec1
Compare
SummaryThe following content is AI-generated and provides a summary of the pull request: feat: Add Cache Control Support in LangChain Orchestration ClientNew Features✨ Introduces prompt caching support for the Two new capabilities are added:
Additionally, Changes
PR Bot InformationVersion:
|
8c956db to
812bb62
Compare
812bb62 to
f97b34d
Compare
| run: echo "NODE_PATH=$(pwd)/node_modules" >> "$GITHUB_ENV" | ||
| - name: Check public API | ||
| uses: sap/cloud-sdk-js/.github/actions/check-public-api@main | ||
| uses: sap/cloud-sdk-js/.github/actions/check-public-api@extend-generator-ts-options |
There was a problem hiding this comment.
To be reverted after merge of SAP/cloud-sdk-js#6694
| "types": "./dist/index.d.ts", | ||
| "default": "./dist/index.js" | ||
| }, | ||
| "./orchestration/prompt-caching-middleware": { |
There was a problem hiding this comment.
I added this as explicit export to avoid having to dynamically import langchain as this would have also required some manual type definitions.
There was a problem hiding this comment.
We could also reasonably re-implement what langchain currently does, but if it becomes smarter in upstream this way we don't have to maintain this more agentic capability ourselves.
* origin/main: v2.12.0 remove peer dependencies (#1960) chore: fix broken lockfile (#1958) chore: correct package versions (#1957) chore: Replace python parquet generation script with ts [differnt lib… (#1946) chore: remove CJS build (#1927) feat: Update prompt-registry specification (#1937) feat: Update document-grounding specification (#1810) chore: Remove prerequisites section from README (#1956) chore: Adapt prompt registry spec url (#1951) chore(deps-dev): Bump orval from 8.17.0 to 8.18.0 (#1954) chore(deps): Bump openai from 6.39.0 to 6.44.0 (#1955) chore(deps-dev): Bump eslint from 10.4.1 to 10.5.0 (#1953) chore(deps): Bump the langchain group with 4 updates (#1952)
Context
Closes SAP/ai-sdk-js-backlog#575.
What this PR does and why it is needed