docs: update notebook documentation for custom tool (#14942)

- **Description:** Documentation update. The custom tool notebook
documentation is updated to revome the warning caused by directly
instantiating of the LLMMathChain with an llm which is is deprecated.
The from_llm class method is used instead. LLM output results gets
updated as well.
  - **Issue:** no applicable
  - **Dependencies:** No dependencies
  - **Tag maintainer:** @baskaryan
  - **Twitter handle:** @ybouakkaz

Co-authored-by: Yacine Bouakkaz <Yacine.Bouakkaz@evokegroup.com>
pull/14814/head^2
Yacine 7 months ago committed by GitHub
parent 345acb26ac
commit 20eacd4b5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -87,20 +87,11 @@
"metadata": {
"tags": []
},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/wfh/code/lc/lckg/langchain/chains/llm_math/base.py:50: UserWarning: Directly instantiating an LLMMathChain with an llm is deprecated. Please instantiate with llm_chain argument or using the from_llm class method.\n",
" warnings.warn(\n"
]
}
],
"outputs": [],
"source": [
"# Load the tool configs that are needed.\n",
"search = SerpAPIWrapper()\n",
"llm_math_chain = LLMMathChain(llm=llm, verbose=True)\n",
"llm_math_chain = LLMMathChain.from_llm(llm=llm, verbose=True)\n",
"tools = [\n",
" Tool.from_function(\n",
" func=search.run,\n",
@ -176,34 +167,40 @@
"\n",
"\n",
"\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
"\u001b[32;1m\u001b[1;3mI need to find out Leo DiCaprio's girlfriend's name and her age\n",
"\u001b[32;1m\u001b[1;3mI need to find out who Leo DiCaprio's girlfriend is and then calculate her current age raised to the 0.43 power.\n",
"Action: Search\n",
"Action Input: \"Leo DiCaprio girlfriend\"\u001b[0m\n",
"Observation: \u001b[36;1m\u001b[1;3mAfter rumours of a romance with Gigi Hadid, the Oscar winner has seemingly moved on. First being linked to the television personality in September 2022, it appears as if his \"age bracket\" has moved up. This follows his rumoured relationship with mere 19-year-old Eden Polani.\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mI still need to find out his current girlfriend's name and age\n",
"Action: Search\n",
"Action Input: \"Leo DiCaprio current girlfriend\"\u001b[0m\n",
"Observation: \u001b[36;1m\u001b[1;3mJust Jared on Instagram: “Leonardo DiCaprio & girlfriend Camila Morrone couple up for a lunch date!\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mNow that I know his girlfriend's name is Camila Morrone, I need to find her current age\n",
"Action: Search\n",
"Action Input: \"Camila Morrone age\"\u001b[0m\n",
"Observation: \u001b[36;1m\u001b[1;3m25 years\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mNow that I have her age, I need to calculate her age raised to the 0.43 power\n",
"Action Input: \"Leo DiCaprio's girlfriend\"\u001b[0m\n",
"Observation: \u001b[36;1m\u001b[1;3mLeonardo DiCaprio may have found The One in Vittoria Ceretti. “They are in love,” a source exclusively reveals in the latest issue of Us Weekly. “Leo was clearly very proud to be showing Vittoria off and letting everyone see how happy they are together.”\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mI have found out that Leo DiCaprio's girlfriend is Vittoria Ceretti. Now I need to calculate her current age raised to the 0.43 power.\n",
"Action: Calculator\n",
"Action Input: 25^(0.43)\u001b[0m\n",
"Action Input: Vittoria Ceretti's current age\u001b[0m\n",
"\n",
"\u001b[1m> Entering new LLMMathChain chain...\u001b[0m\n",
"25^(0.43)\u001b[32;1m\u001b[1;3m```text\n",
"25**(0.43)\n",
"Vittoria Ceretti's current age\u001b[32;1m\u001b[1;3m```text\n",
"2022 - 1998\n",
"```\n",
"...numexpr.evaluate(\"25**(0.43)\")...\n",
"...numexpr.evaluate(\"2022 - 1998\")...\n",
"\u001b[0m\n",
"Answer: \u001b[33;1m\u001b[1;3m3.991298452658078\u001b[0m\n",
"Answer: \u001b[33;1m\u001b[1;3m24\u001b[0m\n",
"\u001b[1m> Finished chain.\u001b[0m\n",
"\n",
"Observation: \u001b[33;1m\u001b[1;3mAnswer: 3.991298452658078\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mI now know the final answer\n",
"Final Answer: Camila Morrone's current age raised to the 0.43 power is approximately 3.99.\u001b[0m\n",
"Observation: \u001b[33;1m\u001b[1;3mAnswer: 24\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mI now know that Vittoria Ceretti's current age is 24. Now I can calculate her current age raised to the 0.43 power.\n",
"Action: Calculator\n",
"Action Input: 24^0.43\u001b[0m\n",
"\n",
"\u001b[1m> Entering new LLMMathChain chain...\u001b[0m\n",
"24^0.43\u001b[32;1m\u001b[1;3m```text\n",
"24**0.43\n",
"```\n",
"...numexpr.evaluate(\"24**0.43\")...\n",
"\u001b[0m\n",
"Answer: \u001b[33;1m\u001b[1;3m3.9218486893172186\u001b[0m\n",
"\u001b[1m> Finished chain.\u001b[0m\n",
"\n",
"Observation: \u001b[33;1m\u001b[1;3mAnswer: 3.9218486893172186\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mI now know that Vittoria Ceretti's current age raised to the 0.43 power is approximately 3.92.\n",
"Final Answer: Vittoria Ceretti's current age raised to the 0.43 power is approximately 3.92.\u001b[0m\n",
"\n",
"\u001b[1m> Finished chain.\u001b[0m\n"
]
@ -211,7 +208,7 @@
{
"data": {
"text/plain": [
"\"Camila Morrone's current age raised to the 0.43 power is approximately 3.99.\""
"\"Vittoria Ceretti's current age raised to the 0.43 power is approximately 3.92.\""
]
},
"execution_count": 6,
@ -305,7 +302,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 11,
"id": "6a2cebbf",
"metadata": {
"tags": []
@ -318,30 +315,40 @@
"\n",
"\n",
"\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
"\u001b[32;1m\u001b[1;3mI need to use custom_search to find out who Leo DiCaprio's girlfriend is, and then use the Calculator to raise her age to the 0.43 power.\n",
"Action: custom_search\n",
"Action Input: \"Leo DiCaprio girlfriend\"\u001b[0m\n",
"Observation: \u001b[36;1m\u001b[1;3mAfter rumours of a romance with Gigi Hadid, the Oscar winner has seemingly moved on. First being linked to the television personality in September 2022, it appears as if his \"age bracket\" has moved up. This follows his rumoured relationship with mere 19-year-old Eden Polani.\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mI need to find out the current age of Eden Polani.\n",
"\u001b[32;1m\u001b[1;3mI need to find out who Leo DiCaprio's girlfriend is and then calculate her current age raised to the 0.43 power.\n",
"Action: custom_search\n",
"Action Input: \"Eden Polani age\"\u001b[0m\n",
"Observation: \u001b[36;1m\u001b[1;3m19 years old\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mNow I can use the Calculator to raise her age to the 0.43 power.\n",
"Action Input: \"Leo DiCaprio's girlfriend\"\u001b[0m\n",
"Observation: \u001b[36;1m\u001b[1;3mLeonardo DiCaprio may have found The One in Vittoria Ceretti. “They are in love,” a source exclusively reveals in the latest issue of Us Weekly. “Leo was clearly very proud to be showing Vittoria off and letting everyone see how happy they are together.”\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mI have found out that Leo DiCaprio's girlfriend is Vittoria Ceretti. Now I need to calculate her current age raised to the 0.43 power.\n",
"Action: Calculator\n",
"Action Input: Vittoria Ceretti's current age\u001b[0m\n",
"\n",
"\u001b[1m> Entering new LLMMathChain chain...\u001b[0m\n",
"Vittoria Ceretti's current age\u001b[32;1m\u001b[1;3m```text\n",
"2022 - 1998\n",
"```\n",
"...numexpr.evaluate(\"2022 - 1998\")...\n",
"\u001b[0m\n",
"Answer: \u001b[33;1m\u001b[1;3m24\u001b[0m\n",
"\u001b[1m> Finished chain.\u001b[0m\n",
"\n",
"Observation: \u001b[33;1m\u001b[1;3mAnswer: 24\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mI now know that Vittoria Ceretti's current age is 24. Now I can calculate her current age raised to the 0.43 power.\n",
"Action: Calculator\n",
"Action Input: 19 ^ 0.43\u001b[0m\n",
"Action Input: 24^0.43\u001b[0m\n",
"\n",
"\u001b[1m> Entering new LLMMathChain chain...\u001b[0m\n",
"19 ^ 0.43\u001b[32;1m\u001b[1;3m```text\n",
"19 ** 0.43\n",
"24^0.43\u001b[32;1m\u001b[1;3m```text\n",
"24**0.43\n",
"```\n",
"...numexpr.evaluate(\"19 ** 0.43\")...\n",
"...numexpr.evaluate(\"24**0.43\")...\n",
"\u001b[0m\n",
"Answer: \u001b[33;1m\u001b[1;3m3.547023357958959\u001b[0m\n",
"Answer: \u001b[33;1m\u001b[1;3m3.9218486893172186\u001b[0m\n",
"\u001b[1m> Finished chain.\u001b[0m\n",
"\n",
"Observation: \u001b[33;1m\u001b[1;3mAnswer: 3.547023357958959\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mI now know the final answer.\n",
"Final Answer: 3.547023357958959\u001b[0m\n",
"Observation: \u001b[33;1m\u001b[1;3mAnswer: 3.9218486893172186\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mI now know the final answer. Vittoria Ceretti's current age raised to the 0.43 power is approximately 3.92.\n",
"Final Answer: 3.92\u001b[0m\n",
"\n",
"\u001b[1m> Finished chain.\u001b[0m\n"
]
@ -349,10 +356,10 @@
{
"data": {
"text/plain": [
"'3.547023357958959'"
"'3.92'"
]
},
"execution_count": 9,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
@ -375,12 +382,23 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 12,
"id": "8f15307d",
"metadata": {
"tags": []
},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"StructuredTool(name='search_api', description='search_api(query: str) -> str - Searches the API for the query.', args_schema=<class 'pydantic.main.search_apiSchemaSchema'>, func=<function search_api at 0x1252d7ac0>)"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from langchain.tools import tool\n",
"\n",
@ -404,7 +422,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 13,
"id": "28cdf04d",
"metadata": {
"tags": []
@ -419,17 +437,17 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 14,
"id": "1085a4bd",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Tool(name='search', description='search(query: str) -> str - Searches the API for the query.', args_schema=<class 'pydantic.main.SearchApi'>, return_direct=True, verbose=False, callback_manager=<langchain.callbacks.shared.SharedCallbackManager object at 0x12748c4c0>, func=<function search_api at 0x16bd66310>, coroutine=None)"
"StructuredTool(name='search', description='search(query: str) -> str - Searches the API for the query.', args_schema=<class 'pydantic.main.searchSchemaSchema'>, return_direct=True, func=<function search_api at 0x1252d7760>)"
]
},
"execution_count": 13,
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
@ -448,7 +466,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 15,
"id": "f3a5c106",
"metadata": {},
"outputs": [],
@ -465,17 +483,17 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 16,
"id": "7914ba6b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Tool(name='search', description='search(query: str) -> str - Searches the API for the query.', args_schema=<class '__main__.SearchInput'>, return_direct=True, verbose=False, callback_manager=<langchain.callbacks.shared.SharedCallbackManager object at 0x12748c4c0>, func=<function search_api at 0x16bcf0ee0>, coroutine=None)"
"StructuredTool(name='search', description='search(query: str) -> str - Searches the API for the query.', args_schema=<class '__main__.SearchInput'>, return_direct=True, func=<function search_api at 0x1252d76d0>)"
]
},
"execution_count": 15,
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
@ -508,7 +526,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 17,
"id": "3c070216",
"metadata": {},
"outputs": [],
@ -539,7 +557,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 18,
"id": "7505c9c5",
"metadata": {},
"outputs": [],
@ -632,7 +650,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 19,
"id": "38d11416",
"metadata": {},
"outputs": [],
@ -661,7 +679,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 51,
"id": "79213f40",
"metadata": {},
"outputs": [],
@ -671,7 +689,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 53,
"id": "e1067dcb",
"metadata": {},
"outputs": [],
@ -681,7 +699,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 54,
"id": "6c66ffe8",
"metadata": {},
"outputs": [],
@ -691,7 +709,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 55,
"id": "f45b5bc3",
"metadata": {},
"outputs": [],
@ -703,7 +721,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 56,
"id": "565e2b9b",
"metadata": {},
"outputs": [
@ -714,20 +732,20 @@
"\n",
"\n",
"\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
"\u001b[32;1m\u001b[1;3mI need to find out Leo DiCaprio's girlfriend's name and her age.\n",
"\u001b[32;1m\u001b[1;3m I need to find out who Leo DiCaprio's girlfriend is and then calculate her age raised to the 0.43 power.\n",
"Action: Google Search\n",
"Action Input: \"Leo DiCaprio girlfriend\"\u001b[0m\n",
"Observation: \u001b[36;1m\u001b[1;3mAfter rumours of a romance with Gigi Hadid, the Oscar winner has seemingly moved on. First being linked to the television personality in September 2022, it appears as if his \"age bracket\" has moved up. This follows his rumoured relationship with mere 19-year-old Eden Polani.\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mI still need to find out his current girlfriend's name and her age.\n",
"Observation: \u001b[36;1m\u001b[1;3mCeretti has been modeling since she was 14-years-old and is well known on the runway.\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3m I need to find out her age.\n",
"Action: Google Search\n",
"Action Input: \"Leo DiCaprio current girlfriend age\"\u001b[0m\n",
"Observation: \u001b[36;1m\u001b[1;3mLeonardo DiCaprio has been linked with 19-year-old model Eden Polani, continuing the rumour that he doesn't date any women over the age of ...\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mI need to find out the age of Eden Polani.\n",
"Action Input: \"Camila Morrone age\"\u001b[0m\n",
"Observation: \u001b[36;1m\u001b[1;3m26 years\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3m I need to calculate her age raised to the 0.43 power.\n",
"Action: Calculator\n",
"Action Input: 19^(0.43)\u001b[0m\n",
"Observation: \u001b[33;1m\u001b[1;3mAnswer: 3.547023357958959\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mI now know the final answer.\n",
"Final Answer: The age of Leo DiCaprio's girlfriend raised to the 0.43 power is approximately 3.55.\u001b[0m\n",
"Action Input: 26^0.43\u001b[0m\n",
"Observation: \u001b[33;1m\u001b[1;3mAnswer: 4.059182145592686\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3m I now know the final answer.\n",
"Final Answer: Camila Morrone is Leo DiCaprio's girlfriend and her current age raised to the 0.43 power is 4.059182145592686.\u001b[0m\n",
"\n",
"\u001b[1m> Finished chain.\u001b[0m\n"
]
@ -735,10 +753,10 @@
{
"data": {
"text/plain": [
"\"The age of Leo DiCaprio's girlfriend raised to the 0.43 power is approximately 3.55.\""
"\"Camila Morrone is Leo DiCaprio's girlfriend and her current age raised to the 0.43 power is 4.059182145592686.\""
]
},
"execution_count": 17,
"execution_count": 56,
"metadata": {},
"output_type": "execute_result"
}
@ -766,7 +784,7 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 38,
"id": "3450512e",
"metadata": {},
"outputs": [],
@ -801,7 +819,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 39,
"id": "4b9a7849",
"metadata": {},
"outputs": [
@ -814,7 +832,9 @@
"\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
"\u001b[32;1m\u001b[1;3m I should use a music search engine to find the answer\n",
"Action: Music Search\n",
"Action Input: most famous song of christmas\u001b[0m\u001b[33;1m\u001b[1;3m'All I Want For Christmas Is You' by Mariah Carey.\u001b[0m\u001b[32;1m\u001b[1;3m I now know the final answer\n",
"Action Input: most famous song of christmas\u001b[0m\n",
"Observation: \u001b[33;1m\u001b[1;3m'All I Want For Christmas Is You' by Mariah Carey.\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3m I now know the final answer\n",
"Final Answer: 'All I Want For Christmas Is You' by Mariah Carey.\u001b[0m\n",
"\n",
"\u001b[1m> Finished chain.\u001b[0m\n"
@ -826,7 +846,7 @@
"\"'All I Want For Christmas Is You' by Mariah Carey.\""
]
},
"execution_count": 20,
"execution_count": 39,
"metadata": {},
"output_type": "execute_result"
}
@ -846,12 +866,12 @@
},
{
"cell_type": "code",
"execution_count": 21,
"execution_count": 41,
"id": "3bb6185f",
"metadata": {},
"outputs": [],
"source": [
"llm_math_chain = LLMMathChain(llm=llm)\n",
"llm_math_chain = LLMMathChain.from_llm(llm=llm)\n",
"tools = [\n",
" Tool(\n",
" name=\"Calculator\",\n",
@ -864,7 +884,7 @@
},
{
"cell_type": "code",
"execution_count": 22,
"execution_count": 42,
"id": "113ddb84",
"metadata": {},
"outputs": [],
@ -877,7 +897,7 @@
},
{
"cell_type": "code",
"execution_count": 23,
"execution_count": 43,
"id": "582439a6",
"metadata": {
"tags": []
@ -892,7 +912,9 @@
"\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
"\u001b[32;1m\u001b[1;3m I need to calculate this\n",
"Action: Calculator\n",
"Action Input: 2**.12\u001b[0m\u001b[36;1m\u001b[1;3mAnswer: 1.086734862526058\u001b[0m\u001b[32;1m\u001b[1;3m\u001b[0m\n",
"Action Input: 2**.12\u001b[0m\n",
"Observation: \u001b[36;1m\u001b[1;3mAnswer: 1.086734862526058\u001b[0m\n",
"\u001b[32;1m\u001b[1;3m\u001b[0m\n",
"\n",
"\u001b[1m> Finished chain.\u001b[0m\n"
]
@ -903,7 +925,7 @@
"'Answer: 1.086734862526058'"
]
},
"execution_count": 23,
"execution_count": 43,
"metadata": {},
"output_type": "execute_result"
}
@ -930,7 +952,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 44,
"id": "ad16fbcf",
"metadata": {},
"outputs": [],
@ -963,7 +985,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 45,
"id": "c05aa75b",
"metadata": {},
"outputs": [],
@ -999,7 +1021,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 47,
"id": "cff8b4b5",
"metadata": {},
"outputs": [
@ -1010,7 +1032,7 @@
"\n",
"\n",
"\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
"\u001b[32;1m\u001b[1;3mI should use Search_tool1 to find recent news articles about Leo DiCaprio's personal life.\n",
"\u001b[32;1m\u001b[1;3mI should use Search_tool1 or Search_tool2 to find the most recent information about Leo DiCaprio's girlfriend.\n",
"Action: Search_tool1\n",
"Action Input: \"Leo DiCaprio girlfriend\"\u001b[0m\n",
"Observation: \u001b[31;1m\u001b[1;3mThe search tool1 is not available.\u001b[0m\n",
@ -1018,12 +1040,12 @@
"Action: Search_tool2\n",
"Action Input: \"Leo DiCaprio girlfriend\"\u001b[0m\n",
"Observation: \u001b[31;1m\u001b[1;3mThe following errors occurred during tool execution:The search tool2 is not available.Please try another tool.\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mI should try using Search_tool3 as a last resort.\n",
"Thought:\u001b[32;1m\u001b[1;3mI should try using Search_tool3 instead.\n",
"Action: Search_tool3\n",
"Action Input: \"Leo DiCaprio girlfriend\"\u001b[0m\n",
"Observation: \u001b[38;5;200m\u001b[1;3mLeonardo DiCaprio and Gigi Hadid were recently spotted at a pre-Oscars party, sparking interest once again in their rumored romance. The Revenant actor and the model first made headlines when they were spotted together at a New York Fashion Week afterparty in September 2022.\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mBased on the information from Search_tool3, it seems that Gigi Hadid is currently rumored to be Leo DiCaprio's girlfriend.\n",
"Final Answer: Gigi Hadid is currently rumored to be Leo DiCaprio's girlfriend.\u001b[0m\n",
"Observation: \u001b[38;5;200m\u001b[1;3mCeretti has been modeling since she was 14-years-old and is well known on the runway.\u001b[0m\n",
"Thought:\u001b[32;1m\u001b[1;3mI now know the final answer\n",
"Final Answer: The information about Leo DiCaprio's girlfriend is not available.\u001b[0m\n",
"\n",
"\u001b[1m> Finished chain.\u001b[0m\n"
]
@ -1031,10 +1053,10 @@
{
"data": {
"text/plain": [
"\"Gigi Hadid is currently rumored to be Leo DiCaprio's girlfriend.\""
"\"The information about Leo DiCaprio's girlfriend is not available.\""
]
},
"execution_count": 15,
"execution_count": 47,
"metadata": {},
"output_type": "execute_result"
}

Loading…
Cancel
Save