- 
                Notifications
    You must be signed in to change notification settings 
- Fork 748
feat: add GetNotebookErrors tool #6445
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: add GetNotebookErrors tool #6445
Conversation
| The latest updates on your projects. Learn more about Vercel for GitHub. 
 | 
        
          
                marimo/_ai/_tools/tools/errors.py
              
                Outdated
          
        
      | @dataclass | ||
| class CellErrorsSummary: | ||
| cell_id: str | ||
| cell_name: str | 
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.
i thikn we have strongly typed string for CellId_t and maybe CellName (?)
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.
Actually maybe I should get rid of cell name since its optional and in my opinion doesn't provide a lot of value? Cell ID is necessary for next steps so I'll fix the typing.
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.
yea that sounds good
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.
done!
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.
looks good to me! going to let @dmadisetti chime in on error formatting that is best for AI
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.
@dmadisetti is going to add a util/function to propagate up other errors that may not be captured in this error list in a followup
📝 Summary
Add GetNotebookErrors tool to provide a summary of all errors in a notebook with cell_ids and next_steps guidance.
Note: The discrepancy between the LLM mentioning 22 errors vs 20 errors displayed at the bottom of the image is because there are 20 cells that showed errors, but 1 cell logged multiple separate errors.
🔍 Description of Changes
📋 Checklist