🚀 LucyAI
Turn Python functions into multimodal AI agents in seconds.
No graphs. No config files. No boilerplate.
Just Python → intelligent agents.
⚡ Why LucyAI?
Most AI frameworks force complexity:
- Graphs
- Pipeline systems
- Config files
- Extra abstraction layers
LucyAI removes all of it.
- ✔ Function = Tool
- ✔ Instant execution
- ✔ Multimodal by default
- ✔ Built-in memory
- ✔ Zero boilerplate
If you can write Python, you can build AI agents.
🎬 Live Demo
Real tool calling + memory + no setup:
📦 Installation
uv add lucyai
or
pip install lucyai
🧠 Quick Start
from lucyai import Lucy
agent = Lucy()
response = agent.run("Hello!")
print(response)
🔧 Tool Calling
Turn Python functions into AI tools automatically:
from lucyai import Lucy
agent = Lucy()
@agent.tool
def get_time() -> str:
return "3:00 PM"
@agent.tool
def add(a: int, b: int) -> int:
return a + b
🖼️ Image Input
agent.run("What is in this image?", imagedata="image.png")
Supported:
- PNG
- JPEG
- Pillow Images
- NumPy arrays
- Raw bytes
🎧 Audio Input
agent.run("Transcribe this audio", audiodata="audio.wav")
Supported:
- WAV
- MP3
- Raw bytes
🎥 Video Input
agent.run("Describe this video", videodata="video.mp4")
Supported:
- MP4
- Raw bytes
💭 Memory
agent = Lucy(history_limit=10)
agent.run("My name is Johnny")
agent.run("What is my name?")
agent.clear_history()
🔑 API Keys
Environment variables:
-
GEMINI_API_KEY
-
HZAPIKEY
export GEMINI_API_KEY="your-key"
Or:
Lucy(api_key="your-key")
🧪 Example
from lucyai import Lucy
agent = Lucy()
@agent.tool
def search(q: str) -> str:
return f"Searching: {q}"
print(agent.run("Find cauliflower recipes"))
🤖 Why LucyAI?
- Fast setup
- Multimodal by default
- Real tool calling
- Minimal boilerplate
- Pure Python
If you can write a function, you can build an AI agent.
📋 Requirements
- Python 3.11+
- Gemini API key
📜 License
AGPL-3.0-only
Metadata
Release files for lucyai 1.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 | |
|---|---|---|---|
| lucyai-1.1.0.tar.gz | 18.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lucyai-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 36.2 kB
Release files / lucyai-1.1.0.tar.gz
| Download URL | lucyai-1.1.0.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b0ddcd7829fee4e4ade56ade7304e6b3e258edbd6e4911ba0fb8de58d1a26dc
|
|
BLAKE2b-256 checksum How to use checksums |
9c5050208bd2a125f018706c0202efdff44c7405aa62af22265a3ba50f368ea4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / lucyai-1.1.0-py3-none-any.whl
| Download URL | lucyai-1.1.0-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b0ca482aeafb60cde7da91b78b422209dfdd19215d6ef71cd4707f1b017479d
|
|
BLAKE2b-256 checksum How to use checksums |
4f17d189c6f9afb2065c3eb9c8c7390f6fefba87d8be66199d07f48dfd5bbd78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|