Commit b776089
Add @handle_tool_errors decorator for standardized error handling (#2885)
* Add @handle_tool_errors decorator for standardized error handling
* Add tests for @handle_tool_errors decorator
* Add documentation for @handle_tool_errors decorator
* Fix type checking: use getattr for func.__name__ with fallback
* Add @overload declarations for proper async/sync type checking
* Fix type checking: reorder overloads and use Coroutine for async typing
* Update lockfile and fix test formatting
* Improve error_handling module: add docstrings, fix logging, handle cancellation, and update documentation
* Add auth error mappings, doc tweaks, and doc fix
* Pivot to hybrid approach
* Remove decorator, keep only core 429/timeout handling
---------
Co-authored-by: Jeremiah Lowin <153965+jlowin@users.noreply.github.com>1 parent d5f5300 commit b776089
1 file changed
+34
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1095 | 1095 | | |
1096 | 1096 | | |
1097 | 1097 | | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
1098 | 1110 | | |
1099 | 1111 | | |
1100 | 1112 | | |
| |||
1198 | 1210 | | |
1199 | 1211 | | |
1200 | 1212 | | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
1201 | 1224 | | |
1202 | 1225 | | |
1203 | 1226 | | |
| |||
1226 | 1249 | | |
1227 | 1250 | | |
1228 | 1251 | | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
1229 | 1263 | | |
1230 | 1264 | | |
1231 | 1265 | | |
| |||
0 commit comments