nfrax logonfrax

Infrastructure that just works. Ship products, not boilerplate.

Frameworks

  • svc-infra
  • ai-infra
  • fin-infra
  • robo-infra

Resources

  • Getting Started
  • What's New
  • Contributing

Community

  • GitHub

© 2026 nfrax. All rights reserved.

nfrax logonfrax
Start HereWhat's New
GitHub
fin-infra / API Reference

FinancialGoalTracker

from fin_infra.goals.management import FinancialGoalTracker
fin_infra.goals.management

LLM-validated financial goal tracking with progress monitoring. Features: - 4 goal types (retirement, home purchase, debt-free, wealth milestone) - Local math calculations (don't trust LLM for arithmetic) - LLM provides context and advice around calculations - Weekly progress tracking with course corrections Cost: ~$0.0009/validation, ~$0.0009/week for progress ($0.0036/user/month)

Example

from ai_infra.llm import LLM llm = LLM() tracker = FinancialGoalTracker(llm=llm, provider="google") # Validate goal goal = { "type": "retirement", "target_amount": 2000000.0, "target_age": 65, "current_age": 40, "current_savings": 300000.0, "monthly_contribution": 1500.0 } validation = await tracker.validate_goal(goal)

Constructor
FinancialGoalTracker(llm: Any, provider: str = 'google', model_name: str = 'gemini-2.0-flash-exp')
ParameterTypeDefaultDescription
llmrequiredAny——
providerstr'google'—
model_namestr'gemini-2.0-flash-exp'—

Methods

On This Page

Constructortrack_progressvalidate_goal