Quick Start
How It Works
A user asks a financial question, the Agent calls the finance tools to pull live data, then returns an investor-friendly summary.Configuration Options
The finance tools take no configuration — pass them to anyAgent. For the underlying tool signatures see the tools reference.
yfinance Tools
Stock price, company info, and historical data tool signatures.
Agent Reference
Full Agent parameters and options.
Simple
Agents: 1 — Single agent with finance tools for comprehensive stock analysis.Workflow
- Receive stock query
- Fetch real-time price data
- Retrieve company information
- Analyze historical trends
Setup
Run — Python
Run — CLI
Run — agents.yaml
Serve API
Advanced Workflow (All Features)
Agents: 1 — Single agent with memory, persistence, structured output, and session resumability.Workflow
- Initialize session for portfolio tracking
- Configure SQLite persistence for analysis history
- Execute multi-tool analysis with structured output
- Store results in memory for trend comparison
- Resume session for ongoing portfolio monitoring
Setup
Run — Python
Run — CLI
Run — agents.yaml
Serve API
Monitor / Verify
Cleanup
Features Demonstrated
| Feature | Implementation |
|---|---|
| Workflow | Multi-tool stock analysis |
| DB Persistence | SQLite via memory_config |
| Observability | --verbose flag |
| Tools | yfinance (price, info, history) |
| Resumability | Session with session_id |
| Structured Output | Pydantic StockAnalysis model |
Best Practices
Attach only the tools you need
Attach only the tools you need
The finance tools call live market APIs, so each extra tool adds latency and cost. Pass
get_stock_price alone for quote lookups, and add get_historical_data only when the question needs trends.Enable memory for portfolio tracking
Enable memory for portfolio tracking
Set
memory=True when the user asks follow-up questions about the same tickers. The agent then compares new quotes against prior turns instead of starting from scratch.Ground recommendations in retrieved data
Ground recommendations in retrieved data
Instruct the agent to cite the figures it fetched. This keeps summaries verifiable and prevents the model from inventing prices when a tool call fails.
Reach for a specialised agent when you need more
Reach for a specialised agent when you need more
For document-heavy market research, pair this Agent with the Research Agent; for CSV/Excel portfolios, hand off to the Data Analyst Agent.
Related
Data Analyst
Analyze CSV/Excel portfolios and generate insights.
Research Agent
Conduct market research across the web.

