About
Low abstraction LLM framework focused on simple chat / agentic applications.
Supports only Gemini API.
In early alpha development.
Install
pip install llmbrix
Example usage
(see llmbrix/examples/simple_chatbot/)
import dotenv
from llmbrix.chat_history import ChatHistory
from llmbrix.gemini_model import GeminiModel
from llmbrix.tool_agent import ToolAgent
from llmbrix.tools import CalculatorTool, DatetimeTool
dotenv.load_dotenv()
model = GeminiModel(model="gemini-2.5-flash-lite")
chat_history = ChatHistory(max_turns=5)
agent = ToolAgent(
gemini_model=model,
system_instruction="You are Kevin, super brief to the point chatbot assistant. Speak in corporate words.",
chat_history=ChatHistory(max_turns=5),
tools=[CalculatorTool(), DatetimeTool()],
loop_limit=2,
tool_timeout=30,
max_workers=2,
)
def start_chat():
print("--- Kevin is online! (Type 'exit' or 'quit' to stop) ---")
while True:
user_text = input("You: ")
if user_text.lower() in ["exit", "quit"]:
response = agent.chat("I'm leaving, see you!")
print(f"Kevin: {response.text}")
break
try:
for agent_msg in agent.chat_iter(user_text):
if agent_msg.is_model() and agent_msg.text:
print(f"Kevin: {agent_msg.text}")
elif agent_msg.is_tool():
print(f"Kevin used tool: {agent_msg.tool_name} with args: {agent_msg.tool_args}")
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
start_chat()
Metadata
Release files for llmbrix 2.0.1
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 | |
|---|---|---|---|---|
| llmbrix-2.0.1.tar.gz | 36.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llmbrix-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 69.1 kB
Release files / llmbrix-2.0.1.tar.gz
| Download URL | llmbrix-2.0.1.tar.gz |
|---|---|
| Size | 36.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f66a8a3a5922507926047939a0f0bd29e9b4d32fdbf162760f590d6946968b5e
|
|
BLAKE2b-256 checksum How to use checksums |
abc25cccf5f55b9e7a1cfeb58b3cd1772706c6cf828c5889bf1552f3516d1586
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Release files / llmbrix-2.0.1-py3-none-any.whl
| Download URL | llmbrix-2.0.1-py3-none-any.whl |
|---|---|
| Size | 32.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b7f8ff8fa1b2ce920bd060021a6948755ca72ecab38b9e9f4d986934653b355
|
|
BLAKE2b-256 checksum How to use checksums |
a8c613a3886beb5cab10e1ff6f36f389e012e70a69c48d69ece9c1653a4840df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.1
|
Security for llmbrix 2.0.1
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.