lpalbou/AbstractCore
A unified Python library for interaction with multiple Large Language Model (LLM) providers. Write once, run everywhere.
Provides unified sync/async API with first-class support for streaming, universal tool calling (native + prompted syntax), and Pydantic structured output across local (Ollama, LMStudio, vLLM) and cloud providers. Media input uses policy-driven fallbacks—if a model lacks vision support, AbstractCore can automatically invoke a vision model to generate visual observations and inject them into text requests. Designed as composable layer: by default returns tool calls without executing them, allowing optional integration with AbstractRuntime for durable workflows and state persistence.
Available on PyPI.
Stars
5
Forks
—
Language
Python
License
MIT
Category
Last pushed
Feb 13, 2026
Monthly downloads
619
Commits (30d)
0
Dependencies
2
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/embeddings/lpalbou/AbstractCore"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
lfnovo/esperanto
A unified interface for various AI model providers
apocas/restai
RESTai is an AIaaS (AI as a Service) open-source platform. Built on top of LlamaIndex &...
sbhjt-gr/InferrLM
On-device AI for iOS & Android
baidubce/bce-qianfan-sdk
Provide best practices for LMOps, as well as elegant and convenient access to the features of...
solygambas/python-openai-projects
13 projects using ChatGPT API, Whisper, Embeddings, and DALL-E with Python.