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][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

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