@plust/datasleuth - v0.2.0
    Preparing search index...

    Function searchWeb

    • 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.

      Parameters

      Returns ResearchStep

      A web search step for the research pipeline

      // 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
      })