Skip to content
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

AI Agent action list wrongly format #12908

Open
thu2004 opened this issue Jan 28, 2025 · 1 comment
Open

AI Agent action list wrongly format #12908

thu2004 opened this issue Jan 28, 2025 · 1 comment
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@thu2004
Copy link

thu2004 commented Jan 28, 2025

Bug Description

When the SQL Agent create the system prompt the action list is wrongly formatted.

Thought: you should always think about what to do
Action: the action to take, should be one of [["query-sql","info-sql","list-tables-sql","query-checker"]]

Image

Image

To Reproduce

Create a AI Agent and send a chat message. See the picture belov

Image

Expected behavior

When the SQL Agent create the system prompt the action list should be like this

Action: the action to take, should be one of ["query-sql","info-sql","list-tables-sql","query-checker"]

I already identified the issue in langchain and a PR have been merged and released in version 0.3.13

langchain-ai/langchainjs#7510
https://github.com/langchain-ai/langchainjs/releases/tag/0.3.13

You need to update the langchain version in file https://github.com/n8n-io/n8n/blob/master/packages/%40n8n/nodes-langchain/package.json

Operating System

Ubuntu and Docker

n8n Version

1.76.1

Node.js Version

Node provided by Docker image

Database

PostgreSQL

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Jan 28, 2025

Hey @thu2004,

We have created an internal ticket to look into this which we will be tracking as "GHC-647"

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

No branches or pull requests

2 participants