BLAST by default caches results and LLM-generated steps to optimize performance. You can control caching behavior using the cache_control option:
Copy
# Skip cache lookup and storageresult = await engine.run( "Search for Python documentation", cache_control="no-cache,no-store")# Skip plan cache but store resultresult = await engine.run( "Search for Python documentation", cache_control="no-cache-plan")
The Engine can be used as an async context manager for automatic cleanup:
Copy
async with Engine() as engine: result = await engine.run("Search for Python documentation") print(result.final_result())# Engine automatically stops and cleans up
Or stop the engine when done to clean up resources: