Skip to content

Commit

Permalink
Add exports, small CI fix (#2993)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 authored Oct 20, 2023
1 parent 1247723 commit f2670eb
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 37 deletions.
71 changes: 35 additions & 36 deletions .github/workflows/docs-preview.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,38 @@
# name: Deploy Docs Preview
name: Deploy Docs Preview

# on:
# workflow_dispatch: # Allows triggering the workflow manually in GitHub UI
# pull_request:
on:
workflow_dispatch: # Allows triggering the workflow manually in GitHub UI

# # If another push to the same PR or branch happens while this workflow is still running,
# # cancel the earlier run in favor of the next run.
# #
# # There's no point in testing an outdated version of the code. GitHub only allows
# # a limited number of job runners to be active at the same time, so it's better to cancel
# # pointless jobs early so that more useful jobs can run sooner.
# concurrency:
# group: exports-${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: true
# If another push to the same PR or branch happens while this workflow is still running,
# cancel the earlier run in favor of the next run.
#
# There's no point in testing an outdated version of the code. GitHub only allows
# a limited number of job runners to be active at the same time, so it's better to cancel
# pointless jobs early so that more useful jobs can run sooner.
concurrency:
group: exports-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# jobs:
# deploy-docs-preview:
# name: Deploy Preview Docs to Vercel
# runs-on: ubuntu-latest
# environment: Staging
# env:
# VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
# VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
# VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
# PR_URL: ${{ github.event.pull_request.html_url }}
# GITHUB_TOKEN: ${{ secrets.PR_COMMENT_GITHUB_TOKEN }}
# steps:
# - uses: actions/checkout@v2
# - name: Install Vercel CLI
# run: npm install --global vercel@latest
# - name: Pull Vercel Environment Information
# run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
# - name: Build Project Artifacts
# run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
# - name: Deploy Project Artifacts to Vercel
# run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > deployment-url.txt
# - name: Post Preview URL Comment
# run: gh pr comment $PR_URL -F deployment-url.txt
jobs:
deploy-docs-preview:
name: Deploy Preview Docs to Vercel
runs-on: ubuntu-latest
environment: Staging
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.PR_COMMENT_GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > deployment-url.txt
- name: Post Preview URL Comment
run: gh pr comment $PR_URL -F deployment-url.txt
9 changes: 8 additions & 1 deletion langchain/src/memory/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
export { BufferMemory, type BufferMemoryInput } from "./buffer_memory.js";
export { BaseMemory, getInputValue, getBufferString } from "./base.js";
export {
BaseMemory,
getInputValue,
getBufferString,
type InputValues,
type OutputValues,
type MemoryVariables,
} from "./base.js";
export {
ConversationSummaryMemory,
type ConversationSummaryMemoryInput,
Expand Down

0 comments on commit f2670eb

Please sign in to comment.