Agent framework with tool calling for OpenAI, Anthropic, and Google
Project description
LLM Studio
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-studio
# Optional: Install with specific provider support
pip install llm-studio[openai] # OpenAI only
pip install llm-studio[anthropic] # Anthropic only
pip install llm-studio[google] # Google only
pip install llm-studio[all] # All providers
# Development install
git clone https://github.com/your-repo/llm_studio.git
cd llm_studio
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_studio 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
Project details
Release history Release notifications | RSS feed
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.0.tar.gz
(22.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_station-1.0.0.tar.gz.
File metadata
- Download URL: llm_station-1.0.0.tar.gz
- Upload date:
- Size: 22.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c83dce69dc79c25e54743ccbd3af9079054851b40add49f99c98e8e0a91497e4
|
|
| MD5 |
2e626046aa670ce7fa828c3efa5df843
|
|
| BLAKE2b-256 |
b8e1793f2cbcc654ac39cef28bc93426f6afa926e01e84779ba6b4fd84247352
|
File details
Details for the file llm_station-1.0.0-py3-none-any.whl.
File metadata
- Download URL: llm_station-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efa40171c5cf6a2f8e129a1cdc1c33ecc70852f580f105a6c56daa9674ab8c34
|
|
| MD5 |
9c74d0254012bddc3769945add4b8f13
|
|
| BLAKE2b-256 |
ce2a162079658ab7bd8f2fdcef4f2ed4bcf7cd923e0fcb2e6d1a8d095972bb75
|