Commit d6ea049
committed
fix(autonomous-loop): omit the tools kwarg instead of passing None
Pyre flagged the call: Agent.__init__ annotates tools as List[Callable], not
Optional, so tools=parent_tools or None is an incompatible parameter type.
tools=[] is not an equivalent substitute — exists([]) is true, so an empty list
would send every sub-agent response through tool execution. Omitting the
keyword leaves the parameter at its own None default, which is what a
tool-less sub-agent had before this branch.1 parent 26675b6 commit d6ea049
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1244 | 1244 | | |
1245 | 1245 | | |
1246 | 1246 | | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
1247 | 1255 | | |
1248 | 1256 | | |
1249 | 1257 | | |
1250 | 1258 | | |
1251 | 1259 | | |
1252 | 1260 | | |
1253 | 1261 | | |
1254 | | - | |
1255 | 1262 | | |
1256 | 1263 | | |
1257 | 1264 | | |
1258 | 1265 | | |
1259 | 1266 | | |
| 1267 | + | |
1260 | 1268 | | |
1261 | 1269 | | |
1262 | 1270 | | |
| |||
0 commit comments