Skip to main content

LiteLLM router-based LLM provider for AgentForge — 100+ underlying providers through one interface

Project description

agentforge-litellm

LiteLLM router-based LLM provider for AgentForge.

Wraps LiteLLM's unified interface so a single AgentForge agent can route to 100+ underlying providers (OpenAI, Anthropic, Bedrock, Vertex, Azure, Mistral, Groq, Fireworks, Together, ...) by changing the model string — no per-provider sister package needed.

When to use this vs. a native sister package:

  • Prefer native (agentforge-anthropic, agentforge-openai, ...) for production paths where you want first-class capability surface (caching, thinking, streaming with full type-checked stream events).
  • Use LiteLLM as a unified gateway, for tail providers AgentForge doesn't ship native packages for yet, or to experiment with new models behind a single config.

Install

pip install "agentforge-litellm[litellm]"

Use

from agentforge import Agent

# Model string is "litellm:<litellm-model-string>". The second
# half is whatever LiteLLM accepts.
agent = Agent(model="litellm:gpt-4o-mini")
agent = Agent(model="litellm:anthropic/claude-sonnet-4-7")
agent = Agent(model="litellm:bedrock/anthropic.claude-sonnet-4-7")

Capabilities

{"tools"} only. LiteLLM normalises tools across underlying providers but doesn't expose a uniform caching / thinking / vision / streaming surface — those vary per backend. If you need those, use the matching native sister package.

License

Apache-2.0. See LICENSE.

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

agentforge_litellm-0.3.1.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

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

agentforge_litellm-0.3.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file agentforge_litellm-0.3.1.tar.gz.

File metadata

  • Download URL: agentforge_litellm-0.3.1.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentforge_litellm-0.3.1.tar.gz
Algorithm Hash digest
SHA256 344c36e2a04d2a1309a3c97b9cd531dca87f0a17323898f9f324a93854343455
MD5 bb135d9dae550c02affa9b496b78575e
BLAKE2b-256 c646fcdc50c6f30828cdc1b2ef139a0e582966317beba62c85faa0fe3d409241

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_litellm-0.3.1.tar.gz:

Publisher: release.yml on Scaffoldic/agentforge-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentforge_litellm-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for agentforge_litellm-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04d6b22bf001be689ec6945535261e16b9a1b438079bff47080782276f2e4d66
MD5 ecf6e91a4550835dc6a7997a765f2e16
BLAKE2b-256 09af9e2c20e7b2ee157e7535a6bed4d8bdd406ba45cfd75d770a8006df6881e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentforge_litellm-0.3.1-py3-none-any.whl:

Publisher: release.yml on Scaffoldic/agentforge-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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