Getting Company Info
First, let's set up our dependencies and initialize the Exa client. We'll be using this for a web search tool.
Define a shared prompt.
Create a function to fetch company info using Perplexity's Sonar model:
Create a function to fetch company info from web sources using GPT-4o:
Finally, combine the results from both sources into a comprehensive company overview: