langchain.utilities.golden_query.GoldenQueryAPIWrapper¶

class langchain.utilities.golden_query.GoldenQueryAPIWrapper(*, golden_api_key: Optional[str] = None)[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: Optional[str] = None¶
run(query: str) str[source]¶

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

validator validate_environment  »  all fields[source]¶

Validate that api key and python package exists in environment.

model Config[source]¶

Bases: object

Configuration for this pydantic object.

extra = 'forbid'¶

Examples using GoldenQueryAPIWrapper¶