Class SerpAPIWrapper

java.lang.Object
com.hw.langchain.utilities.SerpAPIWrapper

public class SerpAPIWrapper extends Object
Wrapper around SerpAPI.

Use the environment variable SERPAPI_API_KEY set with your API key, or pass serpapi_api_key as a named parameter to the constructor.

SerpApi in Java

Author:
HamaWhite
  • Constructor Details

  • Method Details

    • of

      public static SerpAPIWrapper of(Map<String,Object> kwargs)
    • run

      public String run(String query)
      Run query through SerpAPI and parse result.
    • processResponse

      public static String processResponse(com.google.gson.JsonObject res)