-
Notifications
You must be signed in to change notification settings - Fork 338
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
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 👍
| } | ||
|
|
||
| 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?
Co-authored-by: Christian Bromann <[email protected]>
Just translates the Python version of the langgraph sql-agent tutorial to js. - Depends on langchain-ai/langchainjs#9228 - See also langchain-ai/langgraphjs#1750 --------- Co-authored-by: Hunter Lovell <[email protected]> Co-authored-by: Hunter Lovell <[email protected]> Co-authored-by: Lauren Hirata Singh <[email protected]> Co-authored-by: Christian Bromann <[email protected]>
To accompany https://docs.langchain.com/oss/javascript/langgraph/sql-agent from langchain-ai/docs#1050
BaseMessage.toFormattedString()langchainjs#9228