diff --git a/docs/docs/integrations/tools/fmp-data.ipynb b/docs/docs/integrations/tools/fmp-data.ipynb index 30232f60786b4..3b53766e037b9 100644 --- a/docs/docs/integrations/tools/fmp-data.ipynb +++ b/docs/docs/integrations/tools/fmp-data.ipynb @@ -88,17 +88,14 @@ "toolkit = FMPDataToolkit()\n", "\n", "# Instantiation with specific query focus\n", - "market_toolkit = FMPDataToolkit(\n", - " query=\"Get stock market prices and technical indicators\",\n", - " num_results=5\n", - ")\n", + "market_toolkit = FMPDataToolkit(query=\"Get stock market prices and technical indicators\",num_results=5)\n", "\n", "# Instantiation with custom configuration\n", "custom_toolkit = FMPDataToolkit(\n", " query=\"Financial analysis\",\n", " num_results=3,\n", " similarity_threshold=0.4,\n", - " cache_dir=\"/custom/cache/path\"\n", + " cache_dir=\"/custom/cache/path\",\n", ")" ], "id": "615375140978a557" @@ -152,14 +149,12 @@ "tool = FMPDataTool()\n", "\n", "# Basic query\n", - "result = tool.invoke({\n", - " \"query\": \"What's Apple's current stock price?\"\n", - "})\n", + "result = tool.invoke({\"query\": \"What's Apple's current stock price?\"})\n", "\n", "# Advanced query with specific format\n", "detailed_result = tool.invoke({\n", " \"query\": \"Compare Tesla and Ford's profit margins\",\n", - " \"response_format\": ResponseFormat.BOTH\n", + " \"response_format\": ResponseFormat.BOTH,\n", "})" ] }, @@ -189,9 +184,7 @@ "agent_executor = AgentExecutor(agent=agent, tools=tools)\n", "\n", "# Run query\n", - "response = agent_executor.invoke({\n", - " \"input\": \"What's the PE ratio of Microsoft?\"\n", - "})" + "response = agent_executor.invoke({\"input\": \"What's the PE ratio of Microsoft?\"})" ] }, { @@ -226,10 +219,9 @@ "4. Assessing growth metrics\n", "\"\"\"\n", "\n", - "response = advanced_tool.invoke({\n", - " \"query\": query,\n", - " \"response_format\": ResponseFormat.BOTH\n", - "})\n", + "response = advanced_tool.invoke(\n", + " {\"query\": query, \"response_format\": ResponseFormat.BOTH}\n", + ")\n", "\n", "print(\"Detailed Financial Analysis:\")\n", "print(response)" @@ -243,6 +235,14 @@ "### FMPDataToolkit\n" ], "id": "9b9dc04b8a68e94c" + }, + { + "metadata": {}, + "cell_type": "code", + "outputs": [], + "source": "", + "id": "4b6604b7cf72c1a0", + "execution_count": null } ], "metadata": {