Skip to content

Descriptive message in syntax error #269

@pelikhan

Description

@pelikhan

Is your feature request related to a problem? Please describe.

The GroqSyntaxError provides the location of the error but not explain the reason of the error. In order to create a GROQ expression generator with AI, it would help to also return a helpful error message so that the AI can refine the expression in a loop.

Describe the solution you'd like
A descriptive error message in GroqSyntaxError

Additional context
It is very common for LLM to hallucinate and we typically need a feedback loop to generate code correctly. In the case of generating groq expression, a better expression message would help the "search"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions