id
stringlengths
14
16
source
stringlengths
49
117
text
stringlengths
16
2.73k
15b108aac948-6
https://python.langchain.com/en/latest/modules/agents/tools/examples/zapier.html
{"from__name": "Silicon Valley Bridge Bank, N.A.", "from__email": "sreply@svb.com", "body_plain": "Dear Clients, After chaotic, tumultuous & stressful days, we have clarity on path for SVB, FDIC is fully insuring all deposits & have an ask for clients & partners as we rebuild. Tim Mayopoulos <https://eml.svb.com/NjEwLU...
15b108aac948-7
https://python.langchain.com/en/latest/modules/agents/tools/examples/zapier.html
{"message__text": "Dear Silicon Valley Bridge Bank, \n\nThank you for your email and the update regarding your new CEO Tim Mayopoulos. We appreciate your dedication to keeping your clients and partners informed and we look forward to continuing our relationship with you. \n\nBest regards, \n[Your Name]", "message__perm...
15b108aac948-8
https://python.langchain.com/en/latest/modules/agents/tools/examples/zapier.html
'{"message__text": "Dear Silicon Valley Bridge Bank, \\n\\nThank you for your email and the update regarding your new CEO Tim Mayopoulos. We appreciate your dedication to keeping your clients and partners informed and we look forward to continuing our relationship with you. \\n\\nBest regards, \\n[Your Name]", "message...
cbbdb57f08e2-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/brave_search.html
.ipynb .pdf Brave Search Brave Search# This notebook goes over how to use the Brave Search tool. from langchain.tools import BraveSearch api_key = "..." tool = BraveSearch.from_api_key(api_key=api_key, search_kwargs={"count": 3}) tool.run("obama middle name")
cbbdb57f08e2-1
https://python.langchain.com/en/latest/modules/agents/tools/examples/brave_search.html
'[{"title": "Barack Obama - Wikipedia", "link": "https://en.wikipedia.org/wiki/Barack_Obama", "snippet": "Outside of politics, <strong>Obama</strong> has published three bestselling books: Dreams from My Father (1995), The Audacity of Hope (2006) and A Promised Land (2020). Rankings by scholars and historians, in which...
cbbdb57f08e2-2
https://python.langchain.com/en/latest/modules/agents/tools/examples/brave_search.html
&quot;good,&quot; &quot;handsome,&quot; or &quot;beautiful.&quot;"}]'
cbbdb57f08e2-3
https://python.langchain.com/en/latest/modules/agents/tools/examples/brave_search.html
previous Bing Search next ChatGPT Plugins By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on Jun 04, 2023.
f8bf3a5f95ad-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/filesystem.html
.ipynb .pdf File System Tools Contents The FileManagementToolkit Selecting File System Tools File System Tools# LangChain provides tools for interacting with a local file system out of the box. This notebook walks through some of them. Note: these tools are not recommended for use outside a sandboxed environment! Fir...
f8bf3a5f95ad-1
https://python.langchain.com/en/latest/modules/agents/tools/examples/filesystem.html
[CopyFileTool(name='copy_file', description='Create a copy of a file in a specified location', args_schema=<class 'langchain.tools.file_management.copy.FileCopyInput'>, return_direct=False, verbose=False, callback_manager=<langchain.callbacks.shared.SharedCallbackManager object at 0x1156f4350>, root_dir='/var/folders/g...
f8bf3a5f95ad-2
https://python.langchain.com/en/latest/modules/agents/tools/examples/filesystem.html
MoveFileTool(name='move_file', description='Move or rename a file from one location to another', args_schema=<class 'langchain.tools.file_management.move.FileMoveInput'>, return_direct=False, verbose=False, callback_manager=<langchain.callbacks.shared.SharedCallbackManager object at 0x1156f4350>, root_dir='/var/folders...
f8bf3a5f95ad-3
https://python.langchain.com/en/latest/modules/agents/tools/examples/filesystem.html
Selecting File System Tools# If you only want to select certain tools, you can pass them in as arguments when initializing the toolkit, or you can individually initialize the desired tools. tools = FileManagementToolkit(root_dir=str(working_directory.name), selected_tools=["read_file", "write_file", "list_directory"])....
f8bf3a5f95ad-4
https://python.langchain.com/en/latest/modules/agents/tools/examples/filesystem.html
'File written successfully to example.txt.' # List files in the working directory list_tool.run({}) 'example.txt' previous DuckDuckGo Search next Google Places Contents The FileManagementToolkit Selecting File System Tools By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on Jun 0...
d07e894f44e4-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/python.html
.ipynb .pdf Python REPL Python REPL# Sometimes, for complex calculations, rather than have an LLM generate the answer directly, it can be better to have the LLM generate code to calculate the answer, and then run that code to get the answer. In order to easily do that, we provide a simple Python REPL to execute command...
c04fa7a325bf-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/bash.html
.ipynb .pdf Shell Tool Contents Use with Agents Shell Tool# Giving agents access to the shell is powerful (though risky outside a sandboxed environment). The LLM can use it to execute any shell commands. A common use case for this is letting the LLM interact with your local file system. from langchain.tools import Sh...
c04fa7a325bf-1
https://python.langchain.com/en/latest/modules/agents/tools/examples/bash.html
{ "action": "shell", "action_input": { "commands": [ "curl -s https://langchain.com | grep -o 'http[s]*://[^\" ]*' | sort" ] } } ``` /Users/wfh/code/lc/lckg/langchain/tools/shell/tool.py:34: UserWarning: The shell tool has no safeguards by default. Use at your own risk. warnings.warn( Observation:...
c04fa7a325bf-2
https://python.langchain.com/en/latest/modules/agents/tools/examples/bash.html
'["https://blog.langchain.dev/", "https://discord.gg/6adMQxSpJS", "https://docs.langchain.com/docs/", "https://github.com/hwchase17/chat-langchain", "https://github.com/hwchase17/langchain", "https://github.com/hwchase17/langchainjs", "https://github.com/sullivan-sean/chat-langchainjs", "https://js.langchain.com/docs/"...
3c96dfee6c6a-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/search_tools.html
.ipynb .pdf Search Tools Contents Google Serper API Wrapper SerpAPI GoogleSearchAPIWrapper SearxNG Meta Search Engine Search Tools# This notebook shows off usage of various search tools. from langchain.agents import load_tools from langchain.agents import initialize_agent from langchain.agents import AgentType from l...
3c96dfee6c6a-1
https://python.langchain.com/en/latest/modules/agents/tools/examples/search_tools.html
Observation: Partly cloudy skies during the morning hours will give way to cloudy skies with light rain and snow developing in the afternoon. High 42F. Winds WNW at 10 to 15 ... Thought: I now know the current weather in Pomfret. Final Answer: Partly cloudy skies during the morning hours will give way to cloudy skies w...
3c96dfee6c6a-2
https://python.langchain.com/en/latest/modules/agents/tools/examples/search_tools.html
Observation: Showers early becoming a steady light rain later in the day. Near record high temperatures. High around 60F. Winds SW at 10 to 15 mph. Chance of rain 60%. Pomfret, CT Weather Forecast, with current conditions, wind, air quality, and what to expect for the next 3 days. Hourly Weather-Pomfret, CT. As of 12:5...
3c96dfee6c6a-3
https://python.langchain.com/en/latest/modules/agents/tools/examples/search_tools.html
'Showers early becoming a steady light rain later in the day. Near record high temperatures. High around 60F. Winds SW at 10 to 15 mph. Chance of rain 60%.' SearxNG Meta Search Engine# Here we will be using a self hosted SearxNG meta search engine. tools = load_tools(["searx-search"], searx_host="http://localhost:8888"...
3c96dfee6c6a-4
https://python.langchain.com/en/latest/modules/agents/tools/examples/search_tools.html
Pomfret, CT ; Current Weather. 1:06 AM. 35°F · RealFeel® 32° ; TODAY'S WEATHER FORECAST. 3/3. 44°Hi. RealFeel® 50° ; TONIGHT'S WEATHER FORECAST. 3/3. 32°Lo. Pomfret, MD Forecast Today Hourly Daily Morning 41° 1% Afternoon 43° 0% Evening 35° 3% Overnight 34° 2% Don't Miss Finally, Here’s Why We Get More Colds and Flu Wh...
3c96dfee6c6a-5
https://python.langchain.com/en/latest/modules/agents/tools/examples/search_tools.html
Thought: I now know the final answer Final Answer: The current weather in Pomfret is mainly cloudy with snow showers around in the morning. The temperature is around 40F with winds NNW at 5 to 10 mph. Chance of snow is 40%. > Finished chain. 'The current weather in Pomfret is mainly cloudy with snow showers around in t...
173047f51357-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/graphql.html
.ipynb .pdf GraphQL tool GraphQL tool# This Jupyter Notebook demonstrates how to use the BaseGraphQLTool component with an Agent. GraphQL is a query language for APIs and a runtime for executing those queries against your data. GraphQL provides a complete and understandable description of the data in your API, gives cl...
173047f51357-1
https://python.langchain.com/en/latest/modules/agents/tools/examples/graphql.html
} } } } """ suffix = "Search for the titles of all the stawars films stored in the graphql database that has this schema " agent.run(suffix + graphql_fields) > Entering new AgentExecutor chain... I need to query the graphql database to get the titles of all the star wars films Action: query_graphql Action ...
712a6d868cc2-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/apify.html
.ipynb .pdf Apify Apify# This notebook shows how to use the Apify integration for LangChain. Apify is a cloud platform for web scraping and data extraction, which provides an ecosystem of more than a thousand ready-made apps called Actors for various web scraping, crawling, and data extraction use cases. For example, y...
712a6d868cc2-1
https://python.langchain.com/en/latest/modules/agents/tools/examples/apify.html
run_input={"startUrls": [{"url": "https://python.langchain.com/en/latest/"}]}, dataset_mapping_function=lambda item: Document( page_content=item["text"] or "", metadata={"source": item["url"]} ), ) Initialize the vector index from the crawled documents: index = VectorstoreIndexCreator().from_loaders([lo...
133d94f59e4a-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/twilio.html
.ipynb .pdf Twilio Contents Setup Sending a message Twilio# This notebook goes over how to use the Twilio API wrapper to send a text message. Setup# To use this tool you need to install the Python Twilio package twilio # !pip install twilio You’ll also need to set up a Twilio account and get your credentials. You’ll ...
190463034aa7-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/searx_search.html
.ipynb .pdf SearxNG Search API Contents Custom Parameters Obtaining results with metadata SearxNG Search API# This notebook goes over how to use a self hosted SearxNG search API to search the web. You can check this link for more informations about Searx API parameters. import pprint from langchain.utilities import S...
190463034aa7-1
https://python.langchain.com/en/latest/modules/agents/tools/examples/searx_search.html
'Large language models (LLMs) represent a major advancement in AI, with the promise of transforming domains through learned knowledge. LLM sizes have been increasing 10X every year for the last few years, and as these models grow in complexity and size, so do their capabilities.\n\nGPT-3 can translate language, write e...
190463034aa7-2
https://python.langchain.com/en/latest/modules/agents/tools/examples/searx_search.html
'Aprendizaje profundo (en inglés, deep learning) es un conjunto de algoritmos de aprendizaje automático (en inglés, machine learning) que intenta modelar abstracciones de alto nivel en datos usando arquitecturas computacionales que admiten transformaciones no lineales múltiples e iterativas de datos expresados en forma...
190463034aa7-3
https://python.langchain.com/en/latest/modules/agents/tools/examples/searx_search.html
'link': 'https://dl.acm.org/doi/abs/10.1145/3491101.3519729', 'engines': ['google scholar'], 'category': 'science'}, {'snippet': '… can introspect the large prompt model. We derive the view ' 'ϕ0(X) and the model h0 from T01. However, instead of fully ' 'fine-tuning T0 during co-training,...
190463034aa7-4
https://python.langchain.com/en/latest/modules/agents/tools/examples/searx_search.html
Get papers from arxiv results = search.results("Large Language Model prompt", num_results=5, engines=['arxiv']) pprint.pp(results) [{'snippet': 'Thanks to the advanced improvement of large pre-trained language ' 'models, prompt-based fine-tuning is shown to be effective on a ' 'variety of down...
190463034aa7-5
https://python.langchain.com/en/latest/modules/agents/tools/examples/searx_search.html
'and perform poorly in the cross-prompt setting, whereas current ' 'approaches to cross-prompt AES either require a certain quantity ' 'of labelled target-prompt essays or require a large quantity of ' 'unlabelled target-prompt essays to perform transfer learning in ' ...
190463034aa7-6
https://python.langchain.com/en/latest/modules/agents/tools/examples/searx_search.html
'experiments with GLM-130B (Zeng et al., 2022) as the testbed ' 'show that 1) the number and the quality of prompt examples ' 'matter, where using suboptimal examples degenerates translation; ' '2) several features of prompt examples, such as semantic ' 'similarity, s...
190463034aa7-7
https://python.langchain.com/en/latest/modules/agents/tools/examples/searx_search.html
'fluency constraint to find a diverse distribution of effective ' 'and fluent prompts. Our analysis reveals that effective prompts ' 'are topically related to the task domain and calibrate the prior ' 'probability of label words. Based on these findings, we also ' 'pr...
190463034aa7-8
https://python.langchain.com/en/latest/modules/agents/tools/examples/searx_search.html
'Informed by this more encompassing theory of prompt programming, ' 'we also introduce the idea of a metaprompt that seeds the model ' 'to generate its own natural language prompts for a range of ' 'tasks. Finally, we discuss how these more general methods of ' 'inter...
190463034aa7-9
https://python.langchain.com/en/latest/modules/agents/tools/examples/searx_search.html
pprint.pp(results) [{'snippet': "Implementation of 'A Watermark for Large Language Models' paper " 'by Kirchenbauer & Geiping et. al.', 'title': 'Peutlefaire / LMWatermark', 'link': 'https://gitlab.com/BrianPulfer/LMWatermark', 'engines': ['gitlab'], 'category': 'it'}, {'snippet': 'Guide to using ...
190463034aa7-10
https://python.langchain.com/en/latest/modules/agents/tools/examples/searx_search.html
'title': 'human-eval', 'link': 'https://github.com/openai/human-eval', 'engines': ['github'], 'category': 'it'}, {'snippet': 'A trend starts from "Chain of Thought Prompting Elicits ' 'Reasoning in Large Language Models".', 'title': 'Chain-of-ThoughtsPapers', 'link': 'https://github.com/Timothyx...
190463034aa7-11
https://python.langchain.com/en/latest/modules/agents/tools/examples/searx_search.html
'link': 'https://github.com/craffel/llm-seminar', 'engines': ['github'], 'category': 'it'}, {'snippet': 'A central, open resource for data and tools related to ' 'chain-of-thought reasoning in large language models. Developed @ ' 'Samwald research group: https://samwald.info/', 'title':...
190463034aa7-12
https://python.langchain.com/en/latest/modules/agents/tools/examples/searx_search.html
'link': 'https://github.com/dust-tt/dust', 'engines': ['github'], 'category': 'it'}, {'snippet': 'Polyglot: Large Language Models of Well-balanced Competence in ' 'Multi-languages', 'title': 'polyglot', 'link': 'https://github.com/EleutherAI/polyglot', 'engines': ['github'], 'category': 'it'},...
190463034aa7-13
https://python.langchain.com/en/latest/modules/agents/tools/examples/searx_search.html
© Copyright 2023, Harrison Chase. Last updated on Jun 04, 2023.
7575184e0e63-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_search.html
.ipynb .pdf Google Search Contents Number of Results Metadata Results Google Search# This notebook goes over how to use the google search component. First, you need to set up the proper API keys and environment variables. To set it up, create the GOOGLE_API_KEY in the Google Cloud credential console (https://console....
7575184e0e63-1
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_search.html
"STATE OF HAWAII. 1 Child's First Name. (Type or print). 2. Sex. BARACK. 3. This Birth. CERTIFICATE OF LIVE BIRTH. FILE. NUMBER 151 le. lb. Middle Name. Barack Hussein Obama II is an American former politician who served as the 44th president of the United States from 2009 to 2017. A member of the Democratic\xa0... Whe...
7575184e0e63-2
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_search.html
You can use the k parameter to set the number of results search = GoogleSearchAPIWrapper(k=1) tool = Tool( name = "I'm Feeling Lucky", description="Search Google and return the first result.", func=search.run ) tool.run("python") 'The official home of the Python Programming Language.' ‘The official home of ...
c0a4fd5a65fd-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/ddg.html
.ipynb .pdf DuckDuckGo Search DuckDuckGo Search# This notebook goes over how to use the duck-duck-go search component. # !pip install duckduckgo-search from langchain.tools import DuckDuckGoSearchRun search = DuckDuckGoSearchRun() search.run("Obama's first name?")
c0a4fd5a65fd-1
https://python.langchain.com/en/latest/modules/agents/tools/examples/ddg.html
'Barack Obama, in full Barack Hussein Obama II, (born August 4, 1961, Honolulu, Hawaii, U.S.), 44th president of the United States (2009-17) and the first African American to hold the office. Before winning the presidency, Obama represented Illinois in the U.S. Senate (2005-08). Barack Hussein Obama II (/ b ə ˈ r ɑː k ...
c0a4fd5a65fd-2
https://python.langchain.com/en/latest/modules/agents/tools/examples/ddg.html
ChatGPT Plugins next File System Tools By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on Jun 04, 2023.
77bfaf963095-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/wikipedia.html
.ipynb .pdf Wikipedia Wikipedia# Wikipedia is a multilingual free online encyclopedia written and maintained by a community of volunteers, known as Wikipedians, through open collaboration and using a wiki-based editing system called MediaWiki. Wikipedia is the largest and most-read reference work in history. First, you...
77bfaf963095-1
https://python.langchain.com/en/latest/modules/agents/tools/examples/wikipedia.html
'Page: Hunter × Hunter\nSummary: Hunter × Hunter (stylized as HUNTER×HUNTER and pronounced "hunter hunter") is a Japanese manga series written and illustrated by Yoshihiro Togashi. It has been serialized in Shueisha\'s shōnen manga magazine Weekly Shōnen Jump since March 1998, although the manga has frequently gone on ...
77bfaf963095-2
https://python.langchain.com/en/latest/modules/agents/tools/examples/wikipedia.html
and the second series broadcast on Adult Swim\'s Toonami programming block from April 2016 to June 2019.\nHunter × Hunter has been a huge critical and financial success and has become one of the best-selling manga series of all time, having over 84 million copies in circulation by July 2022.\n\nPage: Hunter × Hunter (2...
77bfaf963095-3
https://python.langchain.com/en/latest/modules/agents/tools/examples/wikipedia.html
collected in both DVD and Blu-ray format on January 25, 2012. Viz Media has licensed the anime for a DVD/Blu-ray release in North America with an English dub. On television, the series began airing on Adult Swim\'s Toonami programming block on April 17, 2016, and ended on June 23, 2019.The anime series\' opening theme ...
77bfaf963095-4
https://python.langchain.com/en/latest/modules/agents/tools/examples/wikipedia.html
Kurapika and Leorio Paradinight.\nAlthough most characters are human, most possess superhuman strength and/or supernatural abilities due to Nen, the ability to control one\'s own life energy or aura. The world of the series also includes fantastical beasts such as the Chimera Ants or the Five great calamities.'
77bfaf963095-5
https://python.langchain.com/en/latest/modules/agents/tools/examples/wikipedia.html
previous Twilio next Wolfram Alpha By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on Jun 04, 2023.
e49d52d9c1ec-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/awslambda.html
.ipynb .pdf AWS Lambda API AWS Lambda API# This notebook goes over how to use the AWS Lambda Tool component. AWS Lambda is a serverless computing service provided by Amazon Web Services (AWS), designed to allow developers to build and run applications and services without the need for provisioning or managing servers. ...
e49d52d9c1ec-1
https://python.langchain.com/en/latest/modules/agents/tools/examples/awslambda.html
agent.run("Send an email to test@testing123.com saying hello world.") previous ArXiv API Tool next Shell Tool By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on Jun 04, 2023.
8345c5fb292b-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
.ipynb .pdf Requests Contents Inside the tool Requests# The web contains a lot of information that LLMs do not have access to. In order to easily let LLMs interact with that information, we provide a wrapper around the Python Requests module that takes in a URL and fetches data from that URL. from langchain.agents im...
8345c5fb292b-1
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
RequestsPatchTool(name='requests_patch', description='Use this when you want to PATCH to a website.\n Input should be a json string with two keys: "url" and "data".\n The value of "url" should be a string, and the value of "data" should be a dictionary of \n key-value pairs you want to PATCH to the url.\n B...
8345c5fb292b-2
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
# Each tool wrapps a requests wrapper requests_tools[0].requests_wrapper TextRequestsWrapper(headers=None, aiosession=None) from langchain.utilities import TextRequestsWrapper requests = TextRequestsWrapper() requests.get("https://www.google.com")
8345c5fb292b-3
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
'<!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="en"><head><meta content="Search the world\'s information, including webpages, images, videos and more. Google has many special features to help you find exactly what you\'re looking for." name="description"><meta content="noodp" name="robots"...
8345c5fb292b-4
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
nonce="MXrF0nnIBPkxBza4okrgPA">(function(){window.google={kEI:\'TA9QZOa5EdTakPIPuIad-Ac\',kEXPI:\'0,1359409,6059,206,4804,2316,383,246,5,1129120,1197768,626,380097,16111,28687,22431,1361,12319,17581,4997,13228,37471,7692,2891,3926,213,7615,606,50058,8228,17728,432,3,346,1244,1,16920,2648,4,1528,2304,29062,9871,3194,136...
8345c5fb292b-5
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
3,4568,6258,23418,1252,5835,14967,4333,4239,3245,445,2,2,1,26632,239,7916,7321,60,2,3,15965,872,7830,1796,10008,7,1922,9779,36154,6305,2007,17765,427,20136,14,82,2730,184,13600,3692,109,2412,1548,4308,3785,15175,3888,1515,3030,5628,478,4,9706,1804,7734,2738,1853,1032,9480,2995,576,1041,5648,3722,2058,3048,2130,2365,662...
8345c5fb292b-6
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
96,1270,750,400,2208,274,2776,164,89,119,204,139,129,1710,2505,320,3,631,439,2,300,1645,172,1783,784,169,642,329,401,50,479,614,238,757,535,717,102,2,739,738,44,232,22,442,961,45,214,383,567,500,487,151,120,256,253,179,673,2,102,2,10,535,123,135,1685,5206695,190,2,20,50,198,5994221,2804424,3311,141,795,19735,1,1,346,50...
8345c5fb292b-7
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
,1964,16672,2894,6250,15739,1726,647,409,837,1411438,146986,23612960,7,84,93,33,101,816,57,532,163,1,441,86,1,951,73,31,2,345,178,243,472,2,148,962,455,167,178,29,702,1856,288,292,805,93,137,68,416,177,292,399,55,95,2566\',kBL:\'hw1A\',kOPI:89978449};google.sn=\'webhp\';google.kHL=\'en\';})();(function(){\nvar
8345c5fb292b-8
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
h=this||self;function l(){return void 0!==window.google&&void 0!==window.google.kOPI&&0!==window.google.kOPI?window.google.kOPI:null};var m,n=[];function p(a){for(var b;a&&(!a.getAttribute||!(b=a.getAttribute("eid")));)a=a.parentNode;return b||m}function q(a){for(var b=null;a&&(!a.getAttribute||!(b=a.getAttribute("leid...
8345c5fb292b-9
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
0===e?l:e;c||(c=t(a,b,e,d,k));if(c=r(c)){a=new Image;var g=n.length;n[g]=a;a.onerror=a.onload=a.onabort=function(){delete n[g]};a.src=c}};google.logUrl=function(a,b){b=void 0===b?l:b;return t("",a,b)};}).call(this);(function(){google.y={};google.sy=[];google.x=function(a,b){if(a)var c=a.id;else{do c=Math.random();while...
8345c5fb292b-10
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
!important;}#gbar{height:22px}#guser{padding-bottom:7px !important;text-align:right}.gbh,.gbd{border-top:1px solid #c9d7f1;font-size:1px}.gbh{height:0;position:absolute;top:24px;width:100%}@media all{.gb1{height:22px;margin-right:.5em;vertical-align:top}#gbar{float:left}}a.gb1,a.gb4{text-decoration:underline !important...
8345c5fb292b-11
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
0;margin-left:13px;font-size:11px}.lsbb{background:#f8f9fa;border:solid 1px;border-color:#dadce0 #70757a #70757a #dadce0;height:30px}.lsbb{display:block}#WqQANb a{display:inline-block;margin:0 12px}.lsb{background:url(/images/nav_logo229.png) 0 -261px repeat-x;border:none;color:#000;cursor:pointer;height:30px;margin:0;...
8345c5fb292b-12
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
c="/gen_204?atyp=i&ei="+b(google.kEI);google.kEXPI&&(c+="&jexpid="+b(google.kEXPI));c+="&srcpg="+b(google.sn)+"&jsr="+b(t.jsr)+"&bver="+b(t.bv);var f=a.lineNumber;void 0!==f&&(c+="&line="+f);var g=\na.fileName;g&&(0<g.indexOf("-extension:/")&&(e=3),c+="&script="+b(g),f&&g===window.location.href&&(f=document.documentEle...
8345c5fb292b-13
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
iesg=false;document.body.onload = function(){window.n && window.n();if (document.images){new Image().src=src;}\nif (!iesg){document.f&&document.f.q.focus();document.gbqf&&document.gbqf.q.focus();}\n}\n})();</script><div id="mngb"><div id=gbar><nobr><b class=gb1>Search</b> <a class=gb1 href="https://www.google.com/imghp...
8345c5fb292b-14
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
id=gb_70 href="https://accounts.google.com/ServiceLogin?hl=en&passive=true&continue=https://www.google.com/&ec=GAZAAQ" class=gb4>Sign in</a></nobr></div><div class=gbh style=left:0></div><div class=gbh style=right:0></div></div><center><br clear="all" id="lgpd"><div id="lga"><img alt="Google" height="92" src="/images/b...
8345c5fb292b-15
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
id="tsuid_1" value="I\'m Feeling Lucky" name="btnI" type="submit"><script nonce="MXrF0nnIBPkxBza4okrgPA">(function(){var id=\'tsuid_1\';document.getElementById(id).onclick = function(){if (this.form.q.value){this.checked = 1;if (this.form.iflsig)this.form.iflsig.disabled = false;}\nelse top.location=\'/doodles/\';};})(...
8345c5fb292b-16
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
id="gac_scont"></div><div style="font-size:83%;min-height:3.5em"><br><div id="prm"><style>.szppmdbYutt__middle-slot-promo{font-size:small;margin-bottom:32px}.szppmdbYutt__middle-slot-promo a.ZIeIlb{display:inline-block;text-decoration:none}.szppmdbYutt__middle-slot-promo img{border:none;margin-right:5px;vertical-align:...
8345c5fb292b-17
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
style="font-size:8pt;color:#70757a">&copy; 2023 - <a href="/intl/en/policies/privacy/">Privacy</a> - <a href="/intl/en/policies/terms/">Terms</a></p></span></center><script nonce="MXrF0nnIBPkxBza4okrgPA">(function(){window.google.cdo={height:757,width:1440};(function(){var a=window.innerWidth,b=window.innerHeight;if(!a...
8345c5fb292b-18
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
n=function(c,g){this.g=g===l?c:""};n.prototype.toString=function(){return this.g+""};var l={};\nfunction p(){var c=u,g=function(){};google.lx=google.stvsc?g:function(){google.timers&&google.timers.load&&google.tick&&google.tick("load","xjsls");var a=document;var b="SCRIPT";"application/xhtml+xml"===a.contentType&&(b=b....
8345c5fb292b-19
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
window._qs || {};_qs._DumpException = _._DumpException;function _F_installCss(c){}\n(function(){google.jl={blt:\'none\',chnk:0,dw:false,dwu:true,emtn:0,end:0,ico:false,ikb:0,ine:false,injs:\'none\',injt:0,injth:0,injv2:false,lls:\'default\',pdt:0,rep:0,snet:true,strt:0,ubm:false,uwp:true};})();(function(){var pmc=\'{\\...
8345c5fb292b-20
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
History\\\\u003C/a\\\\u003E\\x22,\\x22psrl\\x22:\\x22Remove\\x22,\\x22sbit\\x22:\\x22Search by image\\x22,\\x22srch\\x22:\\x22Google Search\\x22},\\x22ovr\\x22:{},\\x22pq\\x22:\\x22\\x22,\\x22rfs\\x22:[],\\x22sbas\\x22:\\x220 3px 8px 0 rgba(0,0,0,0.2),0 0 0 1px rgba(0,0,0,0.08)\\x22,\\x22stok\\x22:\\x22C3TIBpTor6RHJfEI...
8345c5fb292b-21
https://python.langchain.com/en/latest/modules/agents/tools/examples/requests.html
previous Python REPL next SceneXplain Contents Inside the tool By Harrison Chase © Copyright 2023, Harrison Chase. Last updated on Jun 04, 2023.
cb493c79b312-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/pubmed.html
.ipynb .pdf PubMed Tool PubMed Tool# This notebook goes over how to use PubMed as a tool PubMed® comprises more than 35 million citations for biomedical literature from MEDLINE, life science journals, and online books. Citations may include links to full text content from PubMed Central and publisher web sites. from la...
d62b1a67ffbc-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_places.html
.ipynb .pdf Google Places Google Places# This notebook goes through how to use Google Places API #!pip install googlemaps import os os.environ["GPLACES_API_KEY"] = "" from langchain.tools import GooglePlacesTool places = GooglePlacesTool() places.run("al fornos") "1. Delfina Restaurant\nAddress: 3621 18th St, San Franc...
90a0cca0ac7e-0
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
.ipynb .pdf Google Serper API Contents As part of a Self Ask With Search Chain Obtaining results with metadata Searching for Google Images Searching for Google News Searching for Google Places Google Serper API# This notebook goes over how to use the Google Serper component to search the web. First you need to sign u...
90a0cca0ac7e-1
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
So the final answer is: El Palmar, Spain > Finished chain. 'El Palmar, Spain' Obtaining results with metadata# If you would also like to obtain the results in a structured way including metadata. For this we will be using the results method of the wrapper. search = GoogleSerperAPIWrapper() results = search.results("App...
90a0cca0ac7e-2
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'Founded': 'April 1, 1976, Los Altos, CA', 'Founders': 'Steve Jobs, Steve Wozniak, ' 'Ronald Wayne, and more', 'Products': 'iPhone, iPad, Apple TV, and ' 'm...
90a0cca0ac7e-3
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'Founders': 'Steve Jobs; Steve Wozniak; Ronald ' 'Wayne; Mike Markkula'}, 'sitelinks': [{'title': 'History', 'link': 'https://en.wikipedia.org/wiki/History_of_Apple_Inc.'}, {'title': 'Timeline of Apple Inc. p...
90a0cca0ac7e-4
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'imageUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS3liELlhrMz3Wpsox29U8jJ3L8qETR0hBWHXbFnwjwQc34zwZvFELst2E&s', 'position': 3}, {'title': 'AAPL: Apple Inc Stock Price Quote - NASDAQ GS - ' 'Bloomberg.com', 'link': 'https://www.bloomberg.co...
90a0cca0ac7e-5
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'position': 6}], 'peopleAlsoAsk': [{'question': 'What does Apple Inc do?', 'snippet': 'Apple Inc. (Apple) designs, manufactures and ' 'markets smartphones, personal\n' 'computers, tablets, wearables and accessories ' ...
90a0cca0ac7e-6
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'snippet': 'Timothy Donald Cook (born November 1, 1960) is ' 'an American business executive\n' 'who has been the chief executive officer of ' 'Apple Inc. since 2011. Cook\n' "previously served as...
90a0cca0ac7e-7
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'imageHeight': 900, 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRye79ROKwjfb6017jr0iu8Bz2E1KKuHg-A4qINJaspyxkZrkw&amp;s', 'thumbnailWidth': 259, 'thumbnailHeight': 194, 'source': 'Wikipedia', 'domain': 'en.wikipedia.org', ...
90a0cca0ac7e-8
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'imageHeight': 2043, 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTPlTarrtDbyTiEm-VI_PML9VtOTVPuDXJ5ybDf_lN11H2mShk&amp;s', 'thumbnailWidth': 275, 'thumbnailHeight': 183, 'source': 'National Geographic', 'domain': 'www.nationalge...
90a0cca0ac7e-9
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
{'title': 'How to Draw a Realistic Lion like an Artist - Studio ' 'Wildlife', 'imageUrl': 'https://studiowildlife.com/wp-content/uploads/2021/10/245528858_183911853822648_6669060845725210519_n.jpg', 'imageWidth': 1431, 'imageHeight': 2048, 'thumb...
90a0cca0ac7e-10
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'source': 'Encyclopedia Britannica', 'domain': 'www.britannica.com', 'link': 'https://www.britannica.com/animal/lion', 'position': 6}, {'title': "Where do lions live? Facts about lions' habitats and " 'other cool facts', 'imageUrl': '...
90a0cca0ac7e-11
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'imageUrl': 'https://i.natgeofe.com/k/1d33938b-3d02-4773-91e3-70b113c3b8c7/lion-male-roar_square.jpg', 'imageWidth': 3072, 'imageHeight': 3072, 'thumbnailUrl': 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQqLfnBrBLcTiyTZynHH3FGbBtX2bd1ScwpcuOLnksTyS9-4GM&amp;s', ...
90a0cca0ac7e-12
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'link': 'https://nationalzoo.si.edu/animals/lion', 'position': 9}, {'title': "Zoo's New Male Lion Explores Habitat for the First Time " '- Virginia Zoo', 'imageUrl': 'https://virginiazoo.org/wp-content/uploads/2022/04/ZOO_0056-scaled.jpg', 'imageW...
90a0cca0ac7e-13
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'link': 'https://www.reuters.com/business/autos-transportation/iss-recommends-tesla-investors-vote-against-re-election-robyn-denholm-2023-05-04/', 'snippet': 'Proxy advisory firm ISS on Wednesday recommended Tesla ' 'investors vote against re-election of board chair Robyn ' ...
90a0cca0ac7e-14
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'link': 'https://www.bloomberg.com/opinion/articles/2023-05-03/tesla-wanted-an-ev-price-war-ford-showed-up', 'snippet': 'The legacy automaker is paring back the cost of its ' 'Mustang Mach-E model after Tesla discounted its ' 'competing EVs, portending tighter...',...
90a0cca0ac7e-15
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'price, range', 'link': 'https://finance.yahoo.com/news/tesla-resumes-us-orders-model-045736115.html', 'snippet': '(Reuters) -Tesla Inc has resumed taking orders for its ' 'Model 3 long-range vehicle in the United States, the ' "company's website showed ...
90a0cca0ac7e-16
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'factory in new pics and videos', 'link': 'https://www.teslaoracle.com/2023/05/03/tesla-cybertruck-alpha-prototype-interior-and-exterior-spotted-at-the-fremont-factory-in-new-pics-and-videos/', 'snippet': 'A Tesla Cybertruck alpha prototype goes to Fremont, ' 'California for ...
90a0cca0ac7e-17
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
{'title': 'Tesla (TSLA) Resumes Orders for Model 3 Long Range After ' 'Backlog', 'link': 'https://www.bloomberg.com/news/articles/2023-05-03/tesla-resumes-orders-for-popular-model-3-long-range-at-47-240', 'snippet': 'Tesla Inc. has resumed taking orders for its Model 3 ' ...
90a0cca0ac7e-18
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'snippet': 'T)), a battery supplier to electric vehicle maker Tesla ' 'Inc (TSLA.O), said on Sunday it is considering building ' 'a battery plant in Oklahoma, its third in...', 'date': '53 mins ago', 'source': 'Reuters', 'imageUrl': 'https://e...
90a0cca0ac7e-19
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
'link': 'https://thebharatexpressnews.com/i-think-people-can-get-by-with-999-million-bernie-sanders-tells-american-billionaires-heres-how-the-ultra-rich-can-pay-less-income-tax-than-you-legally/', 'snippet': 'The report noted that in 2007 and 2011, Amazon.com Inc. ' 'founder Jeff Bezos ...
90a0cca0ac7e-20
https://python.langchain.com/en/latest/modules/agents/tools/examples/google_serper.html
results = search.results("Italian restaurants in Upper East Side") pprint.pp(results) {'searchParameters': {'q': 'Italian restaurants in Upper East Side', 'gl': 'us', 'hl': 'en', 'num': 10, 'type': 'places'}, 'places': [{'position'...