Skip to content

Commit

Permalink
examples(langgraph): add a README (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Sep 6, 2024
1 parent bd3ee85 commit b4eabee
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
2 changes: 2 additions & 0 deletions examples/with-langgraph/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NEXT_PUBLIC_API_URL=...
NEXT_PUBLIC_LANGGRAPH_GRAPH_ID=stockbroker
21 changes: 21 additions & 0 deletions examples/with-langgraph/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# LangGraph Example

[Hosted Demo](https://assistant-ui-langgraph.vercel.app/)

This example demonstrates how to use LangChain LangGraph with assistant-ui.

It is meant to be used with the backend found at LangGraph's Stockbroker example: https://github.com/bracesproul/langgraphjs-examples/tree/main/stockbroker

You need to set the following environment variables:

```env
NEXT_PUBLIC_API_URL=https://stockbrokeragent-bracesprouls-projects.vercel.app/api
NEXT_PUBLIC_LANGGRAPH_GRAPH_ID=stockbroker
```

To run the example, run the following commands:

```sh
npm install
npm run dev
```
3 changes: 0 additions & 3 deletions examples/with-langgraph/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ export default function Home() {
<Thread
welcome={{
suggestions: [
{
prompt: "What're some facts about Google?",
},
{
prompt: "How much revenue did Apple make last year?",
},
Expand Down

0 comments on commit b4eabee

Please sign in to comment.