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

All the output parser Failed #12735

Open
LilDaniel0 opened this issue Jan 21, 2025 · 3 comments
Open

All the output parser Failed #12735

LilDaniel0 opened this issue Jan 21, 2025 · 3 comments
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@LilDaniel0
Copy link

Bug Description

All the output parser are failing, this issue stared with the 1.75.2 version

Image

Image

To Reproduce

  1. try to parser an AI agent output
  2. It wont work

Expected behavior

The correct parser for the output

Operating System

Windows 11

n8n Version

1.75.2

Node.js Version

last

Database

PostgreSQL

Execution mode

main (default)

@Joffcom
Copy link
Member

Joffcom commented Jan 21, 2025

Hey @LilDaniel0,

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

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Jan 21, 2025
@netroy
Copy link
Member

netroy commented Jan 21, 2025

hey @LilDaniel0 what version of n8n were you on before the upgrade?

@burivuhster
Copy link
Contributor

@LilDaniel0 , the Structured Output Parser expects the stringified JSON of the following format:

{"output":{"next_agent":"B1"}}

Note the expected JSON-schema conformant object should be passed as a property output of a wrapper object. This normally is being handled automatically. In your case the agent fails to format the JSON in the required form. You can try to fix this by changing your prompt or try more powerful model.

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

4 participants