GoldenQueryAPIWrapper#

class langchain_community.utilities.golden_query.GoldenQueryAPIWrapper[source]#

Bases: BaseModel

Wrapper for Golden.

Docs for using:

  1. Go to https://golden.com and sign up for an account

  2. Get your API Key from https://golden.com/settings/api

  3. Save your API Key into GOLDEN_API_KEY env variable

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

param golden_api_key: str | None = None#
run(query: str) str[source]#

Run query through Golden Query API and return the JSON raw result.

Parameters:

query (str) –

Return type:

str

Examples using GoldenQueryAPIWrapper