Creates a web search step for the research pipeline
This step will use either the provider specified in options or fall back to the defaultSearchProvider
from the research state. At least one of these must be provided for the step to work.
// Using a specific provider in options searchWeb({ provider:google.configure({ apiKey:process.env.GOOGLE_API_KEY, cx:process.env.GOOGLE_CX }), maxResults:10 })
// Or relying on the defaultSearchProvider from the research function searchWeb({ maxResults:10, useQueriesFromPlan:true })
Creates a web search step for the research pipeline
This step will use either the provider specified in options or fall back to the defaultSearchProvider from the research state. At least one of these must be provided for the step to work.