https://github.com/elizabethsiegle/seattlejs
https://github.com/elizabethsiegle/seattlejs
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/elizabethsiegle/seattlejs
- Owner: elizabethsiegle
- Created: 2023-08-08T00:32:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-15T06:00:13.000Z (about 2 years ago)
- Last Synced: 2025-02-01T11:24:18.389Z (8 months ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# seattlejs
Live code for talk given at [SeattleJS Conf 2023](https://seattlejs.com/conf) on [Understanding LangChain Agents and Tools in JS with Twilio SMS](https://seattlejs.com/talks/langchain-agents)
You will need an [OpenAI API key](https://beta.openai.com/account/api-keys), and can also use a [Cohere API key](https://dashboard.cohere.ai/api-keys) by importing a Cohere model with `import { Cohere } from "langchain/llms/cohere"` and replacing `const model = new OpenAI({temperature:0.9});` with `const model = new Cohere({temperature:0.9});`.
You will also need a [SerpAPI API key](https://serpapi.com/manage-api-key) for a LangChain tool to search the web. It is free!
[Slides can be viewed here as well](https://docs.google.com/presentation/d/1lE_e5oGZksRtBhZVUPbKnw4KJjA3dAah5mhm-lJ4agU/edit?usp=sharing).