Skip to content

candre-dynatrace/FinancialAIAgent-Langchain

 
 

Repository files navigation

FinancialAIAgent-Langchain

This sample application does stock analysis by conducting news search, fundamental review and technical analysis. This app is built on Single Supervisor with multiple agents architecture as described here. The multiple agents used in this app uses OpenAI LLM Model and uses TavilySearch tool to search for news. Additionally it uses Yahoo Finance for fundamental and technical analysis.

API Keys

The following API keys are required for this app

  • OPENAI_API_KEY

Requirements

  • Python 3.8 or higher

Usage

The app uses streamlit to create a web page so that users can interact with the app using browser. Once the app is launched, it spits out the url to access the app. Open a browser window and put the url to access the UI of this app.

Instrumentation

The app uses traceloop to send telemetry data. If you want to capture those telemetry data please add the endpoints in .env file.

To get tracing data in Dynatrace, provide these keys:

  • DYNATRACE_EXPORTER_OTLP_ENDPOINT (e.g .live.dynatrace.com/api/v2/otlp)
  • DYNATRACE_API_TOKEN

How to run

On Desktop

Copy .env.template to .env Update .env file with all the required keys

python -m venv financialagent
source financialagent/bin/activate
pip install -r requirements.txt

streamlit run main.py

Codespaces

./run.sh

Suggested Chat Commands

  • Analyze APPL stock
  • Give me latest news on Nvidia
  • Conduct fundamental analysis on DIS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 98.0%
  • Shell 1.5%
  • Dockerfile 0.5%