Repository navigation
Commit 1ae4596
fix(rlm): fall back to no sub-agents when the interpreter rejects the facade shim with SyntaxError
Restricted interpreters (e.g. RestrictedPython) reject the shim's _dspy_* names at
compile time and raise SyntaxError, which _setup_facade did not catch, so every RLM
call crashed before the first iteration. Treat it like CodeExecutionError.
Amp-Thread-ID: https://ampcode.com/threads/T-01a12205-9d20-7108-b7b8-057a602a6ba2
Co-authored-by: Isaac Miller <isaac@cmpnd.ai>1 parent 9f3fcdc commit 1ae4596
2 files changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | | - | |
592 | | - | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
593 | 594 | | |
594 | 595 | | |
595 | 596 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1989 | 1989 | | |
1990 | 1990 | | |
1991 | 1991 | | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
1992 | 2012 | | |
1993 | 2013 | | |
1994 | 2014 | | |
| |||
0 commit comments