MCPcopy
hub / github.com/huggingface/smolagents / InterpreterError

Class InterpreterError

src/smolagents/local_python_executor.py:42–48  ·  view source on GitHub ↗

An error raised when the interpreter cannot evaluate a Python expression, due to syntax error or unsupported operations.

Source from the content-addressed store, hash-verified

40
41
42class InterpreterError(ValueError):
43 """
44 An error raised when the interpreter cannot evaluate a Python expression, due to syntax error or unsupported
45 operations.
46 """
47
48 pass
49
50
51ERRORS = {

Callers 15

nodunder_getattrFunction · 0.85
check_safer_resultFunction · 0.85
get_iterableFunction · 0.85
evaluate_attributeFunction · 0.85
evaluate_unaryopFunction · 0.85
evaluate_whileFunction · 0.85
evaluate_class_defFunction · 0.85
get_current_valueFunction · 0.85
evaluate_augassignFunction · 0.85
set_valueFunction · 0.85
evaluate_callFunction · 0.85
evaluate_subscriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…