PlugAI
A lightweight, zero-dependency alternative to LangChain for Agentic AI.
Features
- Zero Dependencies: Core logic relies purely on standard Python. Bring your own LLM client.
- Instant Tools: Wrap any Python function with
@toolto automatically generate JSON schemas. - Built-in Memory Safety: Automatic memory pruning prevents token limit crashes.
- Provider Agnostic: Swap seamlessly between OpenAI, Groq, Anthropic, or local models.
Quick Start
import os
from groq import Groq
from plugai import PlugAgent, tool, GroqProvider
@tool
def get_weather(location: str) -> str:
"""Gets the current weather for a specific location."""
return f"The weather in {location} is 72°F and sunny."
client = Groq(api_key=os.getenv("GROQ_API_KEY"))
provider = GroqProvider(client)
agent = PlugAgent(
provider=provider,
model="llama-3.3-70b-versatile",
tools=[get_weather]
)
response = agent.run("What is the weather in Tokyo?")
print(response)
Metadata
Release files for plugai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| plugai-0.1.0.tar.gz | 7.6 kB | Without provenance | Details for plugai-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plugai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for plugai-0.1.0-py3-none-any.whl |
Total release size: 17.4 kB
Release files / plugai-0.1.0.tar.gz
| Download URL | plugai-0.1.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2cbe305f0c7a882dcfe8578036691171fc328b7b9951df3a9001d3fa4c0cfad
|
|
BLAKE2b-256 checksum How to use checksums |
b99691b3b91daa7bdf84bccb2458407813d770ee7c2b5c59cbeda37faab78adb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Release files / plugai-0.1.0-py3-none-any.whl
| Download URL | plugai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a4ff7dcc96201640d4010620048b082da80a050deadb8e1ce6085ba0724b7fe
|
|
BLAKE2b-256 checksum How to use checksums |
0acff6f619f5517c40681c4a7f8fed0153d347bdf57b14e359683e9f6f014c58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Security for plugai 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.