open-webui/backend/open_webui/tools
Classic298 82f11b14c9
refac: run the built-in file grep off the event loop (#29621)
The built-in chat and knowledge grep tools awaited their matching helper directly, so the search ran on the event loop and held it for as long as the match took. Both call sites now hand the helper to a worker thread.

Output and error handling are unchanged: 17 cases (literal, regex, case-insensitive, count-only, no-match, invalid pattern, rejected quantifiers, missing file data, result truncation) compare byte-for-byte against the previous behaviour. The matcher's time budget lives in a contextvar, which asyncio.to_thread copies into the worker, so budget scoping still behaves as before.
2026-09-04 11:41:06 -04:00
..
__init__.py feat: native function calling for built-in tools 2026-01-05 04:45:17 +04:00
builtin.py refac: run the built-in file grep off the event loop (#29621) 2026-09-04 11:41:06 -04:00
knowledge_fs.py fix: use raw strings for the regex escapes in the knowledge filesystem (#29515) 2026-09-03 14:57:25 -04:00