Skip to main content

Agent framework with tool calling for OpenAI, Anthropic, and Google

Project description

LLM Station

A unified, provider-agnostic agent framework for OpenAI, Google Gemini, and Anthropic Claude with tool integration.

Quick Start

Install

# Install from PyPI (recommended)
pip install llm-station

# Optional: Install with specific provider support
pip install llm-station[openai]     # OpenAI only
pip install llm-station[anthropic]  # Anthropic only  
pip install llm-station[google]     # Google only
pip install llm-station[all]        # All providers

# Development install
git clone https://github.com/your-repo/llm_station.git
cd llm_station
pip install -e .[dev]

Set Up API Keys

# Add to .env file
echo "OPENAI_API_KEY=your-openai-key" >> .env
echo "GEMINI_API_KEY=your-gemini-key" >> .env  
echo "ANTHROPIC_API_KEY=your-anthropic-key" >> .env

Use Any Provider

from llm_station import Agent
from dotenv import load_dotenv
import os

load_dotenv()

# Same interface, any provider
agent = Agent(
    provider="openai", # or "google", "anthropic"
    model="gpt-4o-mini",
    api_key=os.getenv("OPENAI_API_KEY")
)

# Basic chat
response = agent.generate("What is machine learning?")
print(response.content)

# Use tools with simple, memorable names
response = agent.generate(
    "Search for recent AI developments",
    tools=["search"]  # Auto-routes to best search provider
)

print(response.content)
if response.grounding_metadata:
    sources = response.grounding_metadata.get("sources", [])
    print(f"Found {len(sources)} sources")

# Multiple tools work together
response = agent.generate(
    "Research AI trends, analyze the data, and create a summary",
    tools=["search", "code", "json"]
)

Documentation

  • OPENAI.md - OpenAI provider setup and tools
  • GOOGLE.md - Google Gemini provider setup and tools
  • CLAUDE.md - Anthropic Claude provider setup and tools

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_station-1.0.1.tar.gz (71.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_station-1.0.1-py3-none-any.whl (70.8 kB view details)

Uploaded Python 3

File details

Details for the file llm_station-1.0.1.tar.gz.

File metadata

  • Download URL: llm_station-1.0.1.tar.gz
  • Upload date:
  • Size: 71.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for llm_station-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5974b76bf986bf00ebdd9714a70469b88bcef59ab40a021de98231fe2cfaeac0
MD5 bb2c6633d3c3e23296fb483e9a1bd467
BLAKE2b-256 562e9cc4a0a4094aac81902bc73524c8c8b5d4c93e9d0314bcf9eda7a097b1d8

See more details on using hashes here.

File details

Details for the file llm_station-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: llm_station-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 70.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for llm_station-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e48b95d0ef3efa85deddfb53ff7205d09e85fb35dbab3c37af8b7300088974d
MD5 d44656928dcb5701059e5f26a7d3b1a8
BLAKE2b-256 7b1f5305dbbc6ead216bfdd8318273d9a0a3c565f524383463c14dafa78ab67f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page