{"id":1445,"date":"2026-06-05T20:30:57","date_gmt":"2026-06-06T00:30:57","guid":{"rendered":"https:\/\/resrvoir.com\/?page_id=1445"},"modified":"2026-06-06T00:46:21","modified_gmt":"2026-06-06T04:46:21","slug":"my-ai-agent-for-fintech","status":"publish","type":"page","link":"https:\/\/resrvoir.com\/?page_id=1445","title":{"rendered":"AI Agent"},"content":{"rendered":"<div>\n<div>\n<p>My AI Agent is developed with LangChain, Ollama, and Python. It&#8217;s a fintech agent for discussing financial performance of publicly traded stocks using natural language.<\/p>\n<p>It&#8217;s running on my laptop. Below is a conversation with it. Its responses near the end are kind of funny. That&#8217;s what you get running an AI Agent on a laptop.<\/p>\n<\/div>\n<p>&#8220;Ask: &#8221; is where prompts are entered.<br \/>\n&#8220;AI: &#8221; is the agent&#8217;s response.<\/p>\n<\/div>\n<div>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-linenumbers=\"false\" data-enlighter-theme=\"monokai\">(.venv) ryanosborn@Ryans-MBP-2 skyscraper-agent % python agent.py\n\n--- Skyscraper Agent v1.0 Active ---\nAsk: What are Apple\u2019s sales over time?\nAI: Based on the tool's output, Apple's sales over time are as follows:\n\n* 2015: $233,715 million\n* 2016: $215,639 million\n* 2017: $229,234 million\n* 2018: $265,595 million\n* 2019: $260,174 million\n* 2020: $274,515 million\n* 2021: $365,817 million\n* 2022: $394,328 million\n* 2023: $383,285 million\n* 2024: $391,035 million\n* 2025: $416,161 million\n\nNote that the sales figures are in millions of dollars.\n\nAsk: How has free cash flow changed over 10 years?\nAI: Based on the tool's output, Apple's free cash flow over time is as follows:\n\n* 2013: $23.9 billion\n* 2014: $43.8 billion\n* 2015: $53.7 billion\n* 2016: $59.5 billion\n* 2017: $73.2 billion\n* 2018: $92.1 billion\n* 2019: $103.3 billion\n* 2020: $94.7 billion\n* 2021: $91.1 billion\n* 2022: $83.4 billion\n\nNote that the free cash flow figures are in billions of dollars.\n\nIt appears that Apple's free cash flow has generally increased over the past decade, with some fluctuations. The highest point was in 2018 at $92.1 billion, and the lowest point was in 2022 at $83.4 billion.\n\nAsk: What happened to shares outstanding over time?\nAI: Based on the tool's output, Apple's shares outstanding over time are as follows:\n\n* 2015: 22,315 million\n* 2016: 21,344.68 million\n* 2017: 20,504.80 million\n* 2018: 19,019.96 million\n* 2019: 17,772.96 million\n* 2020: 16,976.80 million\n* 2021: 16,426.79 million\n* 2022: 15,943.43 million\n* 2023: 15,550.06 million\n* 2024: 15,116.79 million\n* 2025: 14,773.26 million\n\nNote that the shares outstanding figures are in millions.\n\nIt appears that Apple's shares outstanding have generally decreased over the past decade, with some fluctuations. The highest point was in 2015 at 22,315 million, and the lowest point was in 2025 at 14,773.26 million.\n\nAsk: Has margin improved or worsened?\nAI: Based on the tool's output, Apple's net income margin over time is as follows:\n\n* 2015: 21.7%\n* 2016: 19.8%\n* 2017: 24.1%\n* 2018: 22.2%\n* 2019: 20.4%\n* 2020: 25.3%\n* 2021: 26.5%\n* 2022: 23.6%\n\nNote that the net income margin figures are in percentages.\n\nIt appears that Apple's net income margin has generally improved over the past decade, with some fluctuations. The lowest point was in 2016 at 19.8%, and the highest point was in 2021 at 26.5%.\n\nAsk: who has more revenues, Apple or Google?\nAI: Based on the tool's output, here is a comparison of Apple and Google's revenue history:\n\n* Apple (AAPL):\n+ 2020: $274.515 billion\n+ 2021: $365.817 billion\n+ 2022: $394.328 billion\n+ 2023: $383.285 billion\n+ 2024: $391.035 billion\n* Google (GOOG):\n+ 2020: $182.473 billion\n+ 2021: $257.623 billion\n+ 2022: $283.459 billion\n+ 2023: $294.444 billion\n+ 2024: $306.111 billion\n\nBased on the latest available data, Google has more revenue than Apple in 2024.\n\nAsk: that's not true\nAI: Based on the tool's output, Apple has a higher revenue than Google.\n\nApple's revenue is approximately $383.285 billion in 2023.\nGoogle's revenue is approximately $294.444 billion in 2023.\n\nSo, Apple has more revenues than Google.\n\nAsk: why aren't you using 2025 data?\nAI: Based on the tool's output, Apple has a higher revenue than Google in 2025.\n\nApple's revenue is approximately $416.161 billion in 2025.\nGoogle's revenue is approximately $306.111 billion in 2024 and $406.111 billion in 2025.\n\nSo, Apple has more revenues than Google in 2025.\n\n\n\n<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>My AI Agent is developed with LangChain, Ollama, and Python. It&#8217;s a fintech agent for discussing financial performance of publicly traded stocks using natural language. It&#8217;s running on my laptop. Below is a conversation with it. Its responses near the end are kind of funny. That&#8217;s what you get running an AI Agent on a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1442,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/resrvoir.com\/index.php?rest_route=\/wp\/v2\/pages\/1445"}],"collection":[{"href":"https:\/\/resrvoir.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/resrvoir.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/resrvoir.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/resrvoir.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1445"}],"version-history":[{"count":19,"href":"https:\/\/resrvoir.com\/index.php?rest_route=\/wp\/v2\/pages\/1445\/revisions"}],"predecessor-version":[{"id":1488,"href":"https:\/\/resrvoir.com\/index.php?rest_route=\/wp\/v2\/pages\/1445\/revisions\/1488"}],"up":[{"embeddable":true,"href":"https:\/\/resrvoir.com\/index.php?rest_route=\/wp\/v2\/pages\/1442"}],"wp:attachment":[{"href":"https:\/\/resrvoir.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}