aiWebSearchAsync
BoxLang AI aiWebSearchAsync() built-in function reference
Asynchronous variant of aiWebSearch() that returns a BoxFuture.
Syntax
aiWebSearchAsync( query, options = {} )Parameters
Parameter
Type
Required
Description
query
string
Yes
Search query text
options
struct
No
Same options as aiWebSearch()
Returns
A BoxFuture that resolves to the same normalized results array returned by aiWebSearch().
Execution Model
aiWebSearchAsync() returns a BoxFuture so searches can run without blocking the current request thread.
Examples
Basic async usage
Promise-style chaining
Parallel async searches
Notes
Input options and provider behavior match
aiWebSearch().Failures resolve as future errors; handle with
try/catcharound.get()or.catch()in chain mode.
Last updated