Observed since 20 Oct, 22:35 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A GenAI project built with LangChain and modern Python tools
Agent LLM Service is a robust, clean, and extensible Python library designed for executing LLM requests across multiple language models (e.g., OpenAI, Groq, Gemini). It offers reliable fallback mechanics, model round-robins, API rate-limit management, built-in tool/function-calling structures, and exponential backoff retry logic.
It is built as the core execution engine for any multi-agent system, strictly adhering to modern Python typing (Pydantic v2) and asynchronous request handling (httpx, asyncio).
LlmExecutionPool).LlmRunner).RawLlmProvider handlers that work with OpenAI-spec endpoints.BaseTool) and dispatch LLM decisions automatically mappings to real functions (ToolRegistry).httpx.AsyncClient) for scaling safely across multi-agent fleets.Ensure you are using Python >= 3.12. Install dependencies using uv or pip:
uv add agent-llm-service
# or you can also use with pip
# pip install agent-llm-service
from agent_llm_service import LlmProviderConfig, RawLlmProvider, LlmRunner
from dotenv import load_dotenv
load_dotenv() # Load environment variables from .env file
async def main():
# Configure the provider (e.g., Groq via OpenAI schema)
config = LlmProviderConfig(
name="Groq",
slug="groq",
api_key_env_var="GROQ_API_KEY",
base_url="https://api.groq.com/openai/v1",
enabled=True,
)
provider = RawLlmProvider(config=[config])
runner = LlmRunner(provider=provider)
# Async LLM Run
response = await runner.acall(
model="groq/openai/gpt-oss-20b",
messages=[{"role": "user", "content": "What is the capital of France?"}],
)
print(response.content)
if __name__ == "__main__":
import asyncio
asyncio.run(main())
Note: If not shown directly on PyPi package, try seeing in Github repo: SurajAiri/Agent-LLM-Service
uv run ruff check src --fix).MIT License.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.4 | 8 Apr 2026 | 4 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 22:35 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:e5b2e817c4a06816a3292f7dd608e9a2108fb6638d9cc4bb3afb8303dc90bcdc