Metadata-Version: 2.4
Name: langchain-freelanceflow
Version: 0.1.1
Summary: LangChain integration for FreelanceFlow - Smart AI model routing across 21+ models with cost tracking
Home-page: https://github.com/BuildMintZ/aiobservability-python
Author: Cyprain Chidozie
Author-email: hello@usefreelanceflow.com
Project-URL: Documentation, https://ai-api.usefreelanceflow.com/docs
Project-URL: Source, https://github.com/BuildMintZ/aiobservability-python
Keywords: langchain,llm,ai,observability,routing,groq,google-gemini,cost-tracking
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: langchain-core>=0.1.0
Requires-Dist: requests>=2.31.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: project-url
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

﻿# LangChain FreelanceFlow Integration

[![PyPI version](https://badge.fury.io/py/langchain-freelanceflow.svg)](https://badge.fury.io/py/langchain-freelanceflow)

LangChain-compatible LLM that routes prompts through FreelanceFlow's intelligent router.

## Features

- 🚀 **Smart Routing** - Auto-selects best model for cost, speed, or quality
- 💰 **Cost Tracking** - Every call tracked automatically
- 🛡️ **Budget Protection** - Kill switch prevents cost overruns
- 🔧 **5 LangChain Tools** - Compare models, generate images, review code, RAG search, translate
- 📊 **21+ Models** - Groq, Google, and more

## Installation

ash
pip install langchain-freelanceflow


## Quick Start

python
from langchain_freelanceflow import FreelanceFlowRouter

llm = FreelanceFlowRouter(api_key="your_key", preference="speed")
response = llm.invoke("What is machine learning?")
print(f"Model: {llm.last_model} | Cost: ")


## LangChain Tools

python
from langchain_freelanceflow import compare_models, generate_image, review_code

# Compare models
result = compare_models.invoke({"prompt": "Explain AI", "api_key": "your_key"})

# Generate image
result = generate_image.invoke({"prompt": "A sunset over mountains", "api_key": "your_key"})

# Review code
result = review_code.invoke({"code": "def add(): pass", "language": "python", "api_key": "your_key"})


## Documentation

Full docs: https://ai-api.usefreelanceflow.com/docs
