Skip to main content

AgentLab

A modular, composable framework for building, evaluating, and comparing LLM-powered agents.

Installation

pip install agentlab

Or with optional provider extras:

pip install agentlab[llm]      # OpenAI, Anthropic, Google SDKs
pip install agentlab[rerank]   # Cohere + CrossEncoder rerankers
pip install agentlab[dev]      # Development tools

Package Structure

AgentLab is organized like scoped packages — each sub-package has one clear responsibility:

Sub-package Equivalent to Responsibility
agentlab @agentlab Top-level exports and version info
agentlab.llm @agentlab/llm LLM providers (OpenAI, Anthropic, Google, etc.)
agentlab.embedding @agentlab/embedding Embedding models (OpenAI, Cohere, Sentence Transformers)
agentlab.retriever @agentlab/retriever Vector, keyword, and hybrid retrieval
agentlab.reranker @agentlab/reranker Rerankers (Cohere API, CrossEncoder local)
agentlab.agents @agentlab/agents Agent registry and base agent class
agentlab.execution @agentlab/execution Experiment runner (sequential & parallel)
agentlab.config @agentlab/config API key management and settings

Quick Start

from agentlab.agents import agent
from agentlab.llm import get_llm
from agentlab.embedding import get_embedding
from agentlab.retriever import get_retriever
from agentlab.reranker import get_reranker
from agentlab.execution import run_experiment

# 1. Define an agent using the @agent decorator
@agent(name="my_researcher")
class MyResearcher:
    def __init__(self, llm):
        self.llm = llm

    def run(self, query: str) -> str:
        return self.llm.generate(f"Research: {query}")

# 2. Build components
llm       = get_llm(provider="openai", model="gpt-4o")
embedding = get_embedding(provider="openai", model="text-embedding-3-small")
retriever = get_retriever(provider="faiss")
reranker  = get_reranker(provider="cohere")

# 3. Run an experiment
result = run_experiment({
    "agents": ["my_researcher"],
    "llms": [{"provider": "openai", "model": "gpt-4o", "temperature": 0.2}],
    "embeddings": [{"provider": "openai", "model": "text-embedding-3-small"}],
    "retrievers": [{"provider": "faiss"}],
    "mode": "Sequential"
})

Environment Variables

Create a .env file in your project root:

OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GOOGLE_API_KEY=AI...
COHERE_API_KEY=...
VOYAGE_API_KEY=...

License

MIT

Metadata

Release files for agentlab-framework-kothapalli 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 agentlab-framework-kothapalli 0.1.0
File Size Uploaded Provenance
agentlab_framework_kothapalli-0.1.0.tar.gz 20.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agentlab-framework-kothapalli 0.1.0
File Interpreter ABI Platform
agentlab_framework_kothapalli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 48.4 kB

Release files / agentlab_framework_kothapalli-0.1.0.tar.gz

Download URL agentlab_framework_kothapalli-0.1.0.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d9c59b2d70f4581b7b64e4594c0ddf04d1ab00d3ac28849a93d7a592bf9ff26a
BLAKE2b-256 checksum
How to use checksums
b97315a77f8bfc6f946ad5cd7a5f657ea88bec573c93c6fd944f0500b65bdafb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

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

Download URL agentlab_framework_kothapalli-0.1.0-py3-none-any.whl
Size 28.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a38cf62f8a7fe63b814a68b611dc5bfc9cc395d7a4c2550ec6b9c727cd15d26b
BLAKE2b-256 checksum
How to use checksums
c1be90f12db5b2a34bc05e8ba78103a4a36df925dc446e5cb239f20e886969d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Security for agentlab-framework-kothapalli 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