-
Couldn't load subscription status.
- Fork 335
feat(examples): Add sql_agent example #1750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(examples): Add sql_agent example #1750
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
| } else { | ||
| throw new Error(`Unsupported interrupt response type: ${response.type}`); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit (personal preference)
| } else { | |
| throw new Error(`Unsupported interrupt response type: ${response.type}`); | |
| } | |
| } | |
| throw new Error(`Unsupported interrupt response type: ${response.type}`); |
| } | ||
|
|
||
| console.log("\n=== Agent with human-in-the-loop completed ===\n"); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a comment section showing the complete expected output? It would makes it easier for folks to see what the example results without having to set up the project.
| - Casting to the correct data type | ||
| - Using the proper columns for joins | ||
|
|
||
| If there are any of the above mistakes, rewrite the query. If there are no mistakes, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideal to send rejection and reason back to generate_query so this node remains purely a reviewer?
To accompany https://docs.langchain.com/oss/javascript/langgraph/sql-agent from langchain-ai/docs#1050
BaseMessage.toFormattedString()langchainjs#9228