What You’ll Learn
By building this team, you’ll understand:- How to integrate reasoning tools for transparent analytical thinking
- How to combine multiple specialized agents with different data sources
- How to use domain-specific search with Exa for financial information
- How to stream reasoning events to see the team’s thought process in real-time
Use Cases
Build financial research platforms, investment analysis tools, market intelligence systems, or decision support applications.How It Works
The team coordinates specialized agents with transparent reasoning:- Analyze: Team leader uses reasoning tools to plan the approach
- Search: Web agent finds general information using DuckDuckGo
- Research: Finance agent retrieves financial data from trusted sources
- Synthesize: Team combines findings with visible reasoning process
- Present: Outputs structured data with supporting logic
Code
reasoning_team.py
What to Expect
The team will research companies and stock prices by coordinating between web search and financial data agents. You’ll see the reasoning process as the team plans its approach, delegates tasks, and synthesizes information. The output includes visible thinking through reasoning tools, showing how the team decides which agent to use and how to combine their findings. Financial data is presented in tables with sources from trusted financial news outlets.Usage
1
Create a virtual environment
Open the
Terminal and create a python virtual environment.2
Set your API keys
3
Install libraries
4
Run Team
Next Steps
- Modify the query to research different types of companies or markets
- Adjust
include_domainsin ExaTools to focus on specific financial sources - Toggle
show_full_reasoningto control visibility of the thinking process - Explore Reasoning Tools for advanced analytical capabilities