id
stringlengths
14
15
text
stringlengths
49
2.47k
source
stringlengths
61
166
b3ca74d2fb4d-2
run(command: str, timeout: Optional[int] = None) → str[source]¶ Run command with own globals/locals and returns anything printed. Timeout after the specified number of seconds. classmethod schema(by_alias: bool = True, ref_template: unicode = '#/definitions/{model}') → DictStrAny¶ classmethod schema_json(*, by_alias: b...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.python.PythonREPL.html
8d3677c52b50-0
langchain.utilities.powerbi.PowerBIDataset¶ class langchain.utilities.powerbi.PowerBIDataset[source]¶ Bases: BaseModel Create PowerBI engine from dataset ID and credential or token. Use either the credential or a supplied token to authenticate. If both are supplied the credential is used to generate a token. The impers...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.powerbi.PowerBIDataset.html
8d3677c52b50-1
Behaves as if Config.extra = ‘allow’ was set since it adds all passed values copy(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, update: Optional[DictStrAny] = None, deep: bool = False) → Model¶ Duplicate a model, optionally...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.powerbi.PowerBIDataset.html
8d3677c52b50-2
get_table_names() → Iterable[str][source]¶ Get names of tables available. json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, exclude...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.powerbi.PowerBIDataset.html
8d3677c52b50-3
classmethod validate(value: Any) → Model¶ property headers: Dict[str, str]¶ Get the token. property request_url: str¶ Get the request url. property table_info: str¶ Information about all tables in the database. Examples using PowerBIDataset¶ PowerBI Dataset Agent
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.powerbi.PowerBIDataset.html
34de80d10fd9-0
langchain.utilities.awslambda.LambdaWrapper¶ class langchain.utilities.awslambda.LambdaWrapper[source]¶ Bases: BaseModel Wrapper for AWS Lambda SDK. To use, you should have the boto3 package installed and a lambda functions built from the AWS Console or CLI. Set up your AWS credentials with aws configure Example pip in...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.awslambda.LambdaWrapper.html
34de80d10fd9-1
exclude – fields to exclude from new model, as with values this takes precedence over include update – values to change/add in the new model. Note: the data is not validated before creating the new model: you should trust this data deep – set to True to make a deep copy of the model Returns new model instance dict(*, i...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.awslambda.LambdaWrapper.html
34de80d10fd9-2
classmethod parse_obj(obj: Any) → Model¶ classmethod parse_raw(b: Union[str, bytes], *, content_type: unicode = None, encoding: unicode = 'utf8', proto: Protocol = None, allow_pickle: bool = False) → Model¶ run(query: str) → str[source]¶ Invokes the lambda function and returns the result. Parameters query – an input to...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.awslambda.LambdaWrapper.html
87f175d194a2-0
langchain.utilities.bash.BashProcess¶ class langchain.utilities.bash.BashProcess(strip_newlines: bool = False, return_err_output: bool = False, persistent: bool = False)[source]¶ Wrapper class for starting subprocesses. Uses the python built-in subprocesses.run() Persistent processes are not available on Windows system...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.bash.BashProcess.html
87f175d194a2-1
Parameters commands (List[str]) – a list of commands to execute in the session Examples using BashProcess¶ Bash chain
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.bash.BashProcess.html
f00e3e0e3b7d-0
langchain.utilities.dataforseo_api_search.DataForSeoAPIWrapper¶ class langchain.utilities.dataforseo_api_search.DataForSeoAPIWrapper[source]¶ Bases: BaseModel Wrapper around the DataForSeo API. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data canno...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.dataforseo_api_search.DataForSeoAPIWrapper.html
f00e3e0e3b7d-1
Default values are respected, but no other validation is performed. Behaves as if Config.extra = ‘allow’ was set since it adds all passed values copy(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, update: Optional[DictStrAny...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.dataforseo_api_search.DataForSeoAPIWrapper.html
f00e3e0e3b7d-2
classmethod from_orm(obj: Any) → Model¶ json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_n...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.dataforseo_api_search.DataForSeoAPIWrapper.html
f00e3e0e3b7d-3
classmethod validate(value: Any) → Model¶ Examples using DataForSeoAPIWrapper¶ DataForSeo API Wrapper DataForSEO
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.dataforseo_api_search.DataForSeoAPIWrapper.html
f9266f0fb278-0
langchain.utilities.requests.TextRequestsWrapper¶ class langchain.utilities.requests.TextRequestsWrapper[source]¶ Bases: BaseModel Lightweight wrapper around requests library. The main purpose of this wrapper is to always return a text output. Create a new model by parsing and validating input data from keyword argumen...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.requests.TextRequestsWrapper.html
f9266f0fb278-1
Behaves as if Config.extra = ‘allow’ was set since it adds all passed values copy(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, update: Optional[DictStrAny] = None, deep: bool = False) → Model¶ Duplicate a model, optionally...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.requests.TextRequestsWrapper.html
f9266f0fb278-2
GET the URL and return the text. json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bo...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.requests.TextRequestsWrapper.html
f9266f0fb278-3
classmethod schema_json(*, by_alias: bool = True, ref_template: unicode = '#/definitions/{model}', **dumps_kwargs: Any) → unicode¶ classmethod update_forward_refs(**localns: Any) → None¶ Try to update ForwardRefs on fields based on this Model, globalns and localns. classmethod validate(value: Any) → Model¶ property req...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.requests.TextRequestsWrapper.html
32ca717df4b4-0
langchain.utilities.vertexai.init_vertexai¶ langchain.utilities.vertexai.init_vertexai(project: Optional[str] = None, location: Optional[str] = None, credentials: Optional[Credentials] = None) → None[source]¶ Init vertexai. Parameters project – The default GCP project to use when making Vertex API calls. location – The...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.vertexai.init_vertexai.html
7102de8013a2-0
langchain.utilities.openapi.OpenAPISpec¶ class langchain.utilities.openapi.OpenAPISpec[source]¶ Bases: OpenAPI OpenAPI Model that removes misformatted parts of the spec. 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 va...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.openapi.OpenAPISpec.html
7102de8013a2-1
A declaration of which security mechanisms can be used across the API. The list of values includes alternative security requirement objects that can be used. Only one of the security requirement objects need to be satisfied to authorize a request. Individual operations can override this definition. To make security opt...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.openapi.OpenAPISpec.html
7102de8013a2-2
The key name is a unique string to refer to each webhook, while the (optionally referenced) Path Item Object describes a request that may be initiated by the API provider and the expected responses. An [example](../examples/v3.1/webhook-example.yaml) is available. classmethod construct(_fields_set: Optional[SetStr] = N...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.openapi.OpenAPISpec.html
7102de8013a2-3
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude. classmethod from_file(path: Union[str, Path]) → OpenAPISpec[source]¶ Get an OpenAPI spec from a file path. classmethod from_orm(obj: Any) → Model¶ classmethod from_spec_dict(spec_dict: dict) → OpenAPISpec[source...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.openapi.OpenAPISpec.html
7102de8013a2-4
get_schema(schema: Union[Reference, Schema]) → Schema[source]¶ json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, exclude_defaults: ...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.openapi.OpenAPISpec.html
7102de8013a2-5
Get the base url. Examples using OpenAPISpec¶ Natural Language APIs Evaluating an OpenAPI Chain OpenAPI chain
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.openapi.OpenAPISpec.html
a549033b0d78-0
langchain.utilities.google_search.GoogleSearchAPIWrapper¶ class langchain.utilities.google_search.GoogleSearchAPIWrapper[source]¶ Bases: BaseModel Wrapper for Google Search API. Adapted from: Instructions adapted from https://stackoverflow.com/questions/ 37083058/ programmatically-searching-google-in-python-using-custo...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.google_search.GoogleSearchAPIWrapper.html
a549033b0d78-1
- Search for Custom Search API and click on it. - Click Enable. URL for it: https://console.cloud.google.com/apis/library/customsearch.googleapis .com 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 go...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.google_search.GoogleSearchAPIWrapper.html
a549033b0d78-2
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.google_search.GoogleSearchAPIWrapper.html
a549033b0d78-3
results(query: str, num_results: int, search_params: Optional[Dict[str, str]] = None) → List[Dict][source]¶ Run query through GoogleSearch and return metadata. Parameters query – The query to search for. num_results – The number of results to return. search_params – Parameters to be passed on search Returns snippet - T...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.google_search.GoogleSearchAPIWrapper.html
f8f2552b1c97-0
langchain.utilities.requests.RequestsWrapper¶ langchain.utilities.requests.RequestsWrapper¶ alias of TextRequestsWrapper Examples using RequestsWrapper¶ OpenAPI agents
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.requests.RequestsWrapper.html
f3ec53fc7b8a-0
langchain.utilities.sql_database.truncate_word¶ langchain.utilities.sql_database.truncate_word(content: Any, *, length: int, suffix: str = '...') → str[source]¶ Truncate a string to a certain number of words, based on the max string length.
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.sql_database.truncate_word.html
843eb9d8566f-0
langchain.utilities.searx_search.SearxSearchWrapper¶ class langchain.utilities.searx_search.SearxSearchWrapper[source]¶ Bases: BaseModel Wrapper for Searx API. To use you need to provide the searx host by passing the named parameter searx_host or exporting the environment variable SEARX_HOST. In some situations you mig...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.searx_search.SearxSearchWrapper.html
843eb9d8566f-1
Asynchronously query with json results. Uses aiohttp. See results for more info. async arun(query: str, engines: Optional[List[str]] = None, query_suffix: Optional[str] = '', **kwargs: Any) → str[source]¶ Asynchronously version of run. classmethod construct(_fields_set: Optional[SetStr] = None, **values: Any) → Model¶ ...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.searx_search.SearxSearchWrapper.html
843eb9d8566f-2
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude. classmethod from_orm(obj: Any) → Model¶ json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False,...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.searx_search.SearxSearchWrapper.html
843eb9d8566f-3
categories – List of categories to use for the query. **kwargs – extra parameters to pass to the searx API. Returns {snippet: The description of the result. title: The title of the result. link: The link to the result. engines: The engines used for the result. category: Searx category of the result. } Return type Dic...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.searx_search.SearxSearchWrapper.html
843eb9d8566f-4
classmethod schema_json(*, by_alias: bool = True, ref_template: unicode = '#/definitions/{model}', **dumps_kwargs: Any) → unicode¶ classmethod update_forward_refs(**localns: Any) → None¶ Try to update ForwardRefs on fields based on this Model, globalns and localns. classmethod validate(value: Any) → Model¶ Examples usi...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.searx_search.SearxSearchWrapper.html
47feaba66291-0
langchain.utilities.google_places_api.GooglePlacesAPIWrapper¶ class langchain.utilities.google_places_api.GooglePlacesAPIWrapper[source]¶ Bases: BaseModel Wrapper around Google Places API. To use, you should have the googlemaps python package installed,an API key for the google maps platform, and the environment variab...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.google_places_api.GooglePlacesAPIWrapper.html
47feaba66291-1
exclude – fields to exclude from new model, as with values this takes precedence over include update – values to change/add in the new model. Note: the data is not validated before creating the new model: you should trust this data deep – set to True to make a deep copy of the model Returns new model instance dict(*, i...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.google_places_api.GooglePlacesAPIWrapper.html
47feaba66291-2
classmethod parse_file(path: Union[str, Path], *, content_type: unicode = None, encoding: unicode = 'utf8', proto: Protocol = None, allow_pickle: bool = False) → Model¶ classmethod parse_obj(obj: Any) → Model¶ classmethod parse_raw(b: Union[str, bytes], *, content_type: unicode = None, encoding: unicode = 'utf8', proto...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.google_places_api.GooglePlacesAPIWrapper.html
1e6fd0ccb00a-0
langchain.utilities.spark_sql.SparkSQL¶ class langchain.utilities.spark_sql.SparkSQL(spark_session: Optional[SparkSession] = None, catalog: Optional[str] = None, schema: Optional[str] = None, ignore_tables: Optional[List[str]] = None, include_tables: Optional[List[str]] = None, sample_rows_in_table_info: int = 3)[sourc...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.spark_sql.SparkSQL.html
1e6fd0ccb00a-1
(https://arxiv.org/abs/2204.00498) If sample_rows_in_table_info, the specified number of sample rows will be appended to each table description. This can increase performance as demonstrated in the paper. get_usable_table_names() → Iterable[str][source]¶ Get names of tables available. run(command: str, fetch: str = 'al...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.spark_sql.SparkSQL.html
7ec9e884ef02-0
langchain.utilities.openapi.HTTPVerb¶ class langchain.utilities.openapi.HTTPVerb(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]¶ Enumerator of the HTTP verbs. GET = 'get'¶ PUT = 'put'¶ POST = 'post'¶ DELETE = 'delete'¶ OPTIONS = 'options'¶ HEAD = 'head'¶ PATCH = 'patch'¶ TR...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.openapi.HTTPVerb.html
82e628af0d76-0
langchain.utilities.serpapi.HiddenPrints¶ class langchain.utilities.serpapi.HiddenPrints[source]¶ Context manager to hide prints. Methods __init__() __init__()¶
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.serpapi.HiddenPrints.html
9da6245029fd-0
langchain.utilities.vertexai.raise_vertex_import_error¶ langchain.utilities.vertexai.raise_vertex_import_error(minimum_expected_version: str = '1.26.1') → None[source]¶ Raise ImportError related to Vertex SDK being not available. Parameters minimum_expected_version – The lowest expected version of the SDK. Raises Impor...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.vertexai.raise_vertex_import_error.html
001005012986-0
langchain.utilities.portkey.Portkey¶ class langchain.utilities.portkey.Portkey[source]¶ Attributes base Methods Config(api_key[, trace_id, environment, ...]) __init__() static Config(api_key: str, trace_id: Optional[str] = None, environment: Optional[str] = None, user: Optional[str] = None, organisation: Optional[str] ...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.portkey.Portkey.html
b3a823c9078f-0
langchain.utilities.metaphor_search.MetaphorSearchAPIWrapper¶ class langchain.utilities.metaphor_search.MetaphorSearchAPIWrapper[source]¶ Bases: BaseModel Wrapper for Metaphor Search API. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be p...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.metaphor_search.MetaphorSearchAPIWrapper.html
b3a823c9078f-1
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.metaphor_search.MetaphorSearchAPIWrapper.html
b3a823c9078f-2
results(query: str, num_results: int, include_domains: Optional[List[str]] = None, exclude_domains: Optional[List[str]] = None, start_crawl_date: Optional[str] = None, end_crawl_date: Optional[str] = None, start_published_date: Optional[str] = None, end_published_date: Optional[str] = None, use_autoprompt: Optional[boo...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.metaphor_search.MetaphorSearchAPIWrapper.html
b3a823c9078f-3
Return type A list of dictionaries with the following keys async results_async(query: str, num_results: int, include_domains: Optional[List[str]] = None, exclude_domains: Optional[List[str]] = None, start_crawl_date: Optional[str] = None, end_crawl_date: Optional[str] = None, start_published_date: Optional[str] = None,...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.metaphor_search.MetaphorSearchAPIWrapper.html
15cfb071b782-0
langchain.utilities.duckduckgo_search.DuckDuckGoSearchAPIWrapper¶ class langchain.utilities.duckduckgo_search.DuckDuckGoSearchAPIWrapper[source]¶ Bases: BaseModel Wrapper for DuckDuckGo Search API. Free and does not require any setup. Create a new model by parsing and validating input data from keyword arguments. Raise...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.duckduckgo_search.DuckDuckGoSearchAPIWrapper.html
15cfb071b782-1
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.duckduckgo_search.DuckDuckGoSearchAPIWrapper.html
15cfb071b782-2
classmethod parse_obj(obj: Any) → Model¶ classmethod parse_raw(b: Union[str, bytes], *, content_type: unicode = None, encoding: unicode = 'utf8', proto: Protocol = None, allow_pickle: bool = False) → Model¶ results(query: str, num_results: int, backend: str = 'api') → List[Dict[str, str]][source]¶ Run query through Duc...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.duckduckgo_search.DuckDuckGoSearchAPIWrapper.html
8b3a3f47a917-0
langchain.utilities.max_compute.MaxComputeAPIWrapper¶ class langchain.utilities.max_compute.MaxComputeAPIWrapper(client: ODPS)[source]¶ Interface for querying Alibaba Cloud MaxCompute tables. Initialize MaxCompute document loader. Parameters client – odps.ODPS MaxCompute client object. Methods __init__(client) Initiali...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.max_compute.MaxComputeAPIWrapper.html
ed53c937c048-0
langchain.utilities.pubmed.PubMedAPIWrapper¶ class langchain.utilities.pubmed.PubMedAPIWrapper[source]¶ Bases: BaseModel Wrapper around PubMed API. This wrapper will use the PubMed API to conduct searches and fetch document summaries. By default, it will return the document summaries of the top-k results of an input se...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.pubmed.PubMedAPIWrapper.html
ed53c937c048-1
Duplicate a model, optionally choose which fields to include, exclude and change. Parameters include – fields to include in new model exclude – fields to exclude from new model, as with values this takes precedence over include update – values to change/add in the new model. Note: the data is not validated before creat...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.pubmed.PubMedAPIWrapper.html
ed53c937c048-2
Search PubMed for documents matching the query. Return an iterator of dictionaries containing the document metadata. lazy_load_docs(query: str) → Iterator[Document][source]¶ load(query: str) → List[dict][source]¶ Search PubMed for documents matching the query. Return a list of dictionaries containing the document metad...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.pubmed.PubMedAPIWrapper.html
c16d3c4f76f0-0
langchain.utilities.openweathermap.OpenWeatherMapAPIWrapper¶ class langchain.utilities.openweathermap.OpenWeatherMapAPIWrapper[source]¶ Bases: BaseModel Wrapper for OpenWeatherMap API using PyOWM. Docs for using: Go to OpenWeatherMap and sign up for an API key Save your API KEY into OPENWEATHERMAP_API_KEY env variable ...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.openweathermap.OpenWeatherMapAPIWrapper.html
c16d3c4f76f0-1
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.openweathermap.OpenWeatherMapAPIWrapper.html
c16d3c4f76f0-2
run(location: str) → str[source]¶ Get the current weather information for a specified location. classmethod schema(by_alias: bool = True, ref_template: unicode = '#/definitions/{model}') → DictStrAny¶ classmethod schema_json(*, by_alias: bool = True, ref_template: unicode = '#/definitions/{model}', **dumps_kwargs: Any)...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.openweathermap.OpenWeatherMapAPIWrapper.html
91b4233fe0f8-0
langchain.utilities.golden_query.GoldenQueryAPIWrapper¶ class langchain.utilities.golden_query.GoldenQueryAPIWrapper[source]¶ Bases: BaseModel Wrapper for Golden. Docs for using: Go to https://golden.com and sign up for an account Get your API Key from https://golden.com/settings/api Save your API Key into GOLDEN_API_K...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.golden_query.GoldenQueryAPIWrapper.html
91b4233fe0f8-1
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.golden_query.GoldenQueryAPIWrapper.html
91b4233fe0f8-2
run(query: str) → str[source]¶ Run query through Golden Query API and return the JSON raw result. classmethod schema(by_alias: bool = True, ref_template: unicode = '#/definitions/{model}') → DictStrAny¶ classmethod schema_json(*, by_alias: bool = True, ref_template: unicode = '#/definitions/{model}', **dumps_kwargs: An...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.golden_query.GoldenQueryAPIWrapper.html
ceeb2e37533e-0
langchain.utilities.bing_search.BingSearchAPIWrapper¶ class langchain.utilities.bing_search.BingSearchAPIWrapper[source]¶ Bases: BaseModel Wrapper for Bing Search API. In order to set this up, follow instructions at: https://levelup.gitconnected.com/api-tutorial-how-to-use-bing-web-search-api-in-python-4165d5592a7e Cre...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.bing_search.BingSearchAPIWrapper.html
ceeb2e37533e-1
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.bing_search.BingSearchAPIWrapper.html
ceeb2e37533e-2
results(query: str, num_results: int) → List[Dict][source]¶ Run query through BingSearch and return metadata. Parameters query – The query to search for. num_results – The number of results to return. Returns snippet - The description of the result. title - The title of the result. link - The link to the result. Return...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.bing_search.BingSearchAPIWrapper.html
7240f790fad0-0
langchain.utilities.searx_search.SearxResults¶ class langchain.utilities.searx_search.SearxResults(data: str)[source]¶ Dict like wrapper around search api results. Take a raw result from Searx and make it into a dict like object. Attributes answers Helper accessor on the json result. results Silence mypy for accessing ...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.searx_search.SearxResults.html
7240f790fad0-1
copy() → a shallow copy of D¶ fromkeys(value=None, /)¶ Create a new dictionary with keys from iterable and values set to value. get(key, default=None, /)¶ Return the value for key if key is in the dictionary, else default. items() → a set-like object providing a view on D's items¶ keys() → a set-like object providing a...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.searx_search.SearxResults.html
e81646f17cd4-0
langchain.utilities.dalle_image_generator.DallEAPIWrapper¶ class langchain.utilities.dalle_image_generator.DallEAPIWrapper[source]¶ Bases: BaseModel Wrapper for OpenAI’s DALL-E Image Generator. Docs for using: 1. pip install openai 2. save your OPENAI_API_KEY in an environment variable Create a new model by parsing and...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.dalle_image_generator.DallEAPIWrapper.html
e81646f17cd4-1
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.dalle_image_generator.DallEAPIWrapper.html
e81646f17cd4-2
run(query: str) → str[source]¶ Run query through OpenAI and parse result. classmethod schema(by_alias: bool = True, ref_template: unicode = '#/definitions/{model}') → DictStrAny¶ classmethod schema_json(*, by_alias: bool = True, ref_template: unicode = '#/definitions/{model}', **dumps_kwargs: Any) → unicode¶ classmetho...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.dalle_image_generator.DallEAPIWrapper.html
8481c5a75996-0
langchain.utilities.wikipedia.WikipediaAPIWrapper¶ class langchain.utilities.wikipedia.WikipediaAPIWrapper[source]¶ Bases: BaseModel Wrapper around WikipediaAPI. To use, you should have the wikipedia python package installed. This wrapper will use the Wikipedia API to conduct searches and fetch page summaries. By defau...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.wikipedia.WikipediaAPIWrapper.html
8481c5a75996-1
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.wikipedia.WikipediaAPIWrapper.html
8481c5a75996-2
classmethod parse_obj(obj: Any) → Model¶ classmethod parse_raw(b: Union[str, bytes], *, content_type: unicode = None, encoding: unicode = 'utf8', proto: Protocol = None, allow_pickle: bool = False) → Model¶ run(query: str) → str[source]¶ Run Wikipedia search and get page summaries. classmethod schema(by_alias: bool = T...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.wikipedia.WikipediaAPIWrapper.html
2e9361d9df91-0
langchain.utilities.zapier.ZapierNLAWrapper¶ class langchain.utilities.zapier.ZapierNLAWrapper[source]¶ Bases: BaseModel Wrapper for Zapier NLA. Full docs here: https://nla.zapier.com/start/ This wrapper supports both API Key and OAuth Credential auth methods. API Key is the fastest way to get started using this wrappe...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.zapier.ZapierNLAWrapper.html
2e9361d9df91-1
}] params will always contain an instructions key, the only required param. All others optional and if provided will override any AI guesses (see “understanding the AI guessing flow” here: https://nla.zapier.com/api/v1/docs) async alist_as_str() → str[source]¶ Same as list, but returns a stringified version of the JSON...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.zapier.ZapierNLAWrapper.html
2e9361d9df91-2
Default values are respected, but no other validation is performed. Behaves as if Config.extra = ‘allow’ was set since it adds all passed values copy(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, update: Optional[DictStrAny...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.zapier.ZapierNLAWrapper.html
2e9361d9df91-3
classmethod from_orm(obj: Any) → Model¶ json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_n...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.zapier.ZapierNLAWrapper.html
2e9361d9df91-4
classmethod parse_obj(obj: Any) → Model¶ classmethod parse_raw(b: Union[str, bytes], *, content_type: unicode = None, encoding: unicode = 'utf8', proto: Protocol = None, allow_pickle: bool = False) → Model¶ preview(action_id: str, instructions: str, params: Optional[Dict] = None) → Dict[source]¶ Same as run, but instea...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.zapier.ZapierNLAWrapper.html
2e9361d9df91-5
Try to update ForwardRefs on fields based on this Model, globalns and localns. classmethod validate(value: Any) → Model¶ Examples using ZapierNLAWrapper¶ Zapier Natural Language Actions API
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.zapier.ZapierNLAWrapper.html
12da92612645-0
langchain.utilities.requests.Requests¶ class langchain.utilities.requests.Requests[source]¶ Bases: BaseModel Wrapper around requests to handle auth and async. The main purpose of this wrapper is to handle authentication (by saving headers) and enable easy async methods on the same base object. Create a new model by par...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.requests.Requests.html
12da92612645-1
Default values are respected, but no other validation is performed. Behaves as if Config.extra = ‘allow’ was set since it adds all passed values copy(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, update: Optional[DictStrAny...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.requests.Requests.html
12da92612645-2
GET the URL and return the text. json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, exclude_defaults: bool = False, exclude_none: bo...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.requests.Requests.html
12da92612645-3
classmethod schema_json(*, by_alias: bool = True, ref_template: unicode = '#/definitions/{model}', **dumps_kwargs: Any) → unicode¶ classmethod update_forward_refs(**localns: Any) → None¶ Try to update ForwardRefs on fields based on this Model, globalns and localns. classmethod validate(value: Any) → Model¶ Examples usi...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.requests.Requests.html
98b8b0fdb736-0
langchain.utilities.jira.JiraAPIWrapper¶ class langchain.utilities.jira.JiraAPIWrapper[source]¶ Bases: BaseModel Wrapper for Jira API. 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 confluence: Any = ...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.jira.JiraAPIWrapper.html
98b8b0fdb736-1
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.jira.JiraAPIWrapper.html
98b8b0fdb736-2
classmethod parse_obj(obj: Any) → Model¶ parse_projects(projects: List[dict]) → List[dict][source]¶ classmethod parse_raw(b: Union[str, bytes], *, content_type: unicode = None, encoding: unicode = 'utf8', proto: Protocol = None, allow_pickle: bool = False) → Model¶ project() → str[source]¶ run(mode: str, query: str) → ...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.jira.JiraAPIWrapper.html
79da32ce4daf-0
langchain.utilities.wolfram_alpha.WolframAlphaAPIWrapper¶ class langchain.utilities.wolfram_alpha.WolframAlphaAPIWrapper[source]¶ Bases: BaseModel Wrapper for Wolfram Alpha. Docs for using: Go to wolfram alpha and sign up for a developer account Create an app and get your APP ID Save your APP ID into WOLFRAM_ALPHA_APPI...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.wolfram_alpha.WolframAlphaAPIWrapper.html
79da32ce4daf-1
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.wolfram_alpha.WolframAlphaAPIWrapper.html
79da32ce4daf-2
run(query: str) → str[source]¶ Run query through WolframAlpha and parse result. classmethod schema(by_alias: bool = True, ref_template: unicode = '#/definitions/{model}') → DictStrAny¶ classmethod schema_json(*, by_alias: bool = True, ref_template: unicode = '#/definitions/{model}', **dumps_kwargs: Any) → unicode¶ clas...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.wolfram_alpha.WolframAlphaAPIWrapper.html
0fc92d6c3850-0
langchain.utilities.powerbi.json_to_md¶ langchain.utilities.powerbi.json_to_md(json_contents: List[Dict[str, Union[str, int, float]]], table_name: Optional[str] = None) → str[source]¶ Converts a JSON object to a markdown table.
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.powerbi.json_to_md.html
4d9216640ade-0
langchain.utilities.brave_search.BraveSearchWrapper¶ class langchain.utilities.brave_search.BraveSearchWrapper[source]¶ Bases: BaseModel Wrapper around the Brave search engine. Create a new model by parsing and validating input data from keyword arguments. Raises ValidationError if the input data cannot be parsed to fo...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.brave_search.BraveSearchWrapper.html
4d9216640ade-1
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.brave_search.BraveSearchWrapper.html
4d9216640ade-2
classmethod parse_obj(obj: Any) → Model¶ classmethod parse_raw(b: Union[str, bytes], *, content_type: unicode = None, encoding: unicode = 'utf8', proto: Protocol = None, allow_pickle: bool = False) → Model¶ run(query: str) → str[source]¶ Query the Brave search engine and return the results as a JSON string. Parameters ...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.brave_search.BraveSearchWrapper.html
5b554dd97385-0
langchain.utilities.redis.get_client¶ langchain.utilities.redis.get_client(redis_url: str, **kwargs: Any) → RedisType[source]¶ Get a redis client from the connection url given. This helper accepts urls for Redis server (TCP with/without TLS or UnixSocket) as well as Redis Sentinel connections. Redis Cluster is not supp...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.redis.get_client.html
d8ddb170274c-0
langchain.utilities.bibtex.BibtexparserWrapper¶ class langchain.utilities.bibtex.BibtexparserWrapper[source]¶ Bases: BaseModel Wrapper around bibtexparser. To use, you should have the bibtexparser python package installed. https://bibtexparser.readthedocs.io/en/master/ This wrapper will use bibtexparser to load a colle...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.bibtex.BibtexparserWrapper.html
d8ddb170274c-1
deep – set to True to make a deep copy of the model Returns new model instance dict(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False, skip_defaults: Optional[bool] = None, exclude_unset: bool = False, ex...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.bibtex.BibtexparserWrapper.html
d8ddb170274c-2
classmethod parse_obj(obj: Any) → Model¶ classmethod parse_raw(b: Union[str, bytes], *, content_type: unicode = None, encoding: unicode = 'utf8', proto: Protocol = None, allow_pickle: bool = False) → Model¶ classmethod schema(by_alias: bool = True, ref_template: unicode = '#/definitions/{model}') → DictStrAny¶ classmet...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.bibtex.BibtexparserWrapper.html
7bf0abc60dd5-0
langchain.utilities.arxiv.ArxivAPIWrapper¶ class langchain.utilities.arxiv.ArxivAPIWrapper[source]¶ Bases: BaseModel Wrapper around ArxivAPI. To use, you should have the arxiv python package installed. https://lukasschwab.me/arxiv.py/index.html This wrapper will use the Arxiv API to conduct searches and fetch document ...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.arxiv.ArxivAPIWrapper.html
7bf0abc60dd5-1
param arxiv_exceptions: Any = None¶ param doc_content_chars_max: Optional[int] = 4000¶ param load_all_available_meta: bool = False¶ param load_max_docs: int = 100¶ param top_k_results: int = 3¶ classmethod construct(_fields_set: Optional[SetStr] = None, **values: Any) → Model¶ Creates a new model setting __dict__ and _...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.arxiv.ArxivAPIWrapper.html
7bf0abc60dd5-2
Generate a dictionary representation of the model, optionally specifying which fields to include or exclude. classmethod from_orm(obj: Any) → Model¶ json(*, include: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, exclude: Optional[Union[AbstractSetIntStr, MappingIntStrAny]] = None, by_alias: bool = False,...
https://api.python.langchain.com/en/latest/utilities/langchain.utilities.arxiv.ArxivAPIWrapper.html