We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When code execution has an error and displays the offending code in red, any non-quoted string in a [] in the code line is not shown.
Code to reproduce the error
from smolagents import CodeAgent, OpenAIServerModel agent=CodeAgent(model=OpenAIServerModel("gpt-4o"), tools=[]) agent.run("""Run this exact code: index=3 ['a', 'b'][index]""")
Error logs (if any)
Code execution failed at line index = 3 result = ['a', 'b']
Expected behavior The log should be:
Code execution failed at line index = 3 result = ['a', 'b'][index]
Packages version: smolagents==1.9.2
I think this is due to Rich recognizing "[any_string]" pattern as tags
"[any_string]"
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Describe the bug
When code execution has an error and displays the offending code in red, any non-quoted string in a [] in the code line is not shown.
Code to reproduce the error
Error logs (if any)
Expected behavior
The log should be:
Packages version:
smolagents==1.9.2
I think this is due to Rich recognizing
"[any_string]"
pattern as tagsThe text was updated successfully, but these errors were encountered: