Skip to content

Fix pydantic definition for error scenarios when invoking SQL tool.#44

Merged
aniket-s-kulkarni merged 1 commit into
dremio:mainfrom
ryantse:main
Aug 5, 2025
Merged

Fix pydantic definition for error scenarios when invoking SQL tool.#44
aniket-s-kulkarni merged 1 commit into
dremio:mainfrom
ryantse:main

Conversation

@ryantse
Copy link
Copy Markdown
Contributor

@ryantse ryantse commented Aug 3, 2025

When the tool encounters an error (i.e. invalid SQL), the structure is a Dict[str, str] which causes Pydantic to throw an error validating the output structure. This prevents the MCP from returning helpful context to the model.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Aug 3, 2025

CLA assistant check
All committers have signed the CLA.

@aniket-s-kulkarni aniket-s-kulkarni merged commit d4c854f into dremio:main Aug 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants