Skip to main content

LLMFA Agent

A PocketFlow-based Python library for financial data chat with tool calling using Gemini AI.

Installation

pip install llmfa-agent

Quick Start

import asyncio
from src import generate_response

async def main():
    response = await generate_response([
        {"role": "user", "content": "What's the current price of NVDA?"}
    ])
    
    print(response.response)      # The assistant's reply
    print(response.tool_calls)    # Tools called with results
    print(response.sources)       # Retrieved documents

asyncio.run(main())

Environment Variables

export GEMINI_API_KEY=your_gemini_api_key
export MONGO_CONNECTION_STRING=mongodb+srv://...  # Optional

Features

  • 🤖 Gemini 3 Flash - Powered by Google's latest AI model
  • 🔧 Tool Calling - Automatic function execution for stock data
  • 📊 Real-time Data - Live stock prices via yfinance
  • 📚 RAG Support - Vector search for document retrieval
  • 🌐 Multilingual - Thai and English language support

Available Tools

  • get_minute_bars: Real-time 1-minute OHLCV data (via yfinance)
  • get_market_data: Historical stock data from MongoDB
  • vector_search: Semantic search for financial documents

License

MIT

Metadata

Release files for llmfa-agent 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llmfa-agent 0.1.0
File Size Uploaded Provenance Actions
llmfa_agent-0.1.0.tar.gz 10.8 kB Without provenance Details for llmfa_agent-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llmfa-agent 0.1.0
File Interpreter ABI Platform Actions
llmfa_agent-0.1.0-py3-none-any.whl Python 3 none any Details for llmfa_agent-0.1.0-py3-none-any.whl

Total release size: 23.4 kB

Release files / llmfa_agent-0.1.0.tar.gz

Download URL llmfa_agent-0.1.0.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
96fecf844148b0fa357a90b882f7140fb449f08c95d552b0b83dc037d0258903
BLAKE2b-256 checksum
How to use checksums
67d23f8e9f82144aae0bb071673547f1fc37c289b3e9af4be0ca231682cf9785
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release files / llmfa_agent-0.1.0-py3-none-any.whl

Download URL llmfa_agent-0.1.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f22ebf69df6ea3c95395103943b94969ed63cb548b9119115041d60e49663998
BLAKE2b-256 checksum
How to use checksums
50d1d115b2b00503926ccd4ce4e45b0be4f286cd3865b4a3a7010f47f6bc77c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Security for llmfa-agent 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page