#[intent(goal: "Find the best rust runtime patterns")]
query Q on Any {
websearch.search(query: "Rust async runtime patterns", max_results: 3)
|> ParseResults
}
iterator ParseResults on Any @loop(max: 3, each: $current.results, merge: "append"){
http.get(url: "$current.url")
|> html.to_md(html: "$current.body", options: {
output_format: "markdown",
include_document_structure: true,
extract_metadata: true,
strip_tags: ["script", "style", "nav", "footer", "aside"],
exclude_selectors: [".cookie-banner", "#cookie", ".advertisement"]
})
}