diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 867f87228b99..7b4307edde11 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -28,6 +28,10 @@ concurrency: jobs: build: + env: + TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TEAM: ${{ vars.TURBO_TEAM }} + TURBO_REMOTE_ONLY: true name: Build runs-on: ubuntu-latest strategy: @@ -38,7 +42,17 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18.x + + - name: Cache turbo build setup + uses: actions/cache@v4 + with: + path: .turbo + key: ${{ runner.os }}-turbo-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-turbo- + - name: Install dependencies run: yarn install --immutable + - name: Build examples run: yarn turbo:command build --filter=examples diff --git a/examples/src/chains/advanced_subclass_call.ts b/examples/src/chains/advanced_subclass_call.ts index 76e7833bc843..a3536b9a99f4 100644 --- a/examples/src/chains/advanced_subclass_call.ts +++ b/examples/src/chains/advanced_subclass_call.ts @@ -3,6 +3,7 @@ import { BaseChain, ChainInputs } from "langchain/chains"; import { BasePromptTemplate, PromptTemplate } from "@langchain/core/prompts"; import { CallbackManagerForChainRun } from "@langchain/core/callbacks/manager"; import { ChainValues } from "@langchain/core/utils/types"; +// todo: remove before mergignd export interface MyCustomChainInputs extends ChainInputs { llm: BaseLanguageModelInterface;