Python SDK for managing AI agents, tools, and features via the Lyzr platform
Project description
Lyzr Kit
A Python SDK for managing AI agents via the Lyzr platform.
Installation
pip install lyzr-kit
Quick Start
1. Authenticate
lk auth
Enter your Lyzr API key when prompted. Get your API key from Lyzr Studio.
2. List Available Agents
lk agent ls
3. Deploy an Agent
lk agent get chat-agent
This will:
- Create the agent on the Lyzr platform
- Save the configuration to
local-kit/agents/chat-agent.yaml - Output URLs for the Platform, Chat interface, and API endpoint
4. Modify and Update
Edit local-kit/agents/chat-agent.yaml, then:
lk agent set chat-agent
CLI Reference
lk auth # Save API key to .env
lk agent ls # List all agents
lk agent get <id> # Deploy agent to platform
lk agent set <id> # Update agent on platform
Shorthand: lk a ls, lk a get <id>, lk a set <id>
Built-in Agents
| ID | Name | Category |
|---|---|---|
chat-agent |
Chat Assistant | chat |
qa-agent |
Q&A Agent | qa |
email-composer |
Email Composer | chat |
code-reviewer |
Code Reviewer | qa |
summarizer |
Text Summarizer | qa |
translator |
Language Translator | qa |
task-planner |
Task Planner | chat |
data-analyst |
Data Analyst | qa |
sql-expert |
SQL Expert | qa |
research-assistant |
Research Assistant | chat |
content-writer |
Content Writer | chat |
customer-support |
Customer Support Agent | chat |
Environment Variables
| Variable | Required | Description |
|---|---|---|
LYZR_API_KEY |
Yes | API key for Lyzr platform |
LYZR_USER_ID |
No | User ID for marketplace features |
LYZR_MEMBERSTACK_TOKEN |
No | Token for marketplace app creation |
Storage
| Directory | Purpose |
|---|---|
local-kit/agents/ |
Your deployed agent configurations |
.env |
API credentials (created by lk auth) |
Development
# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest tests/ -v
# Run linter
ruff check src/
# Type check
mypy src/
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lyzr_kit-0.1.1.tar.gz.
File metadata
- Download URL: lyzr_kit-0.1.1.tar.gz
- Upload date:
- Size: 86.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3806d0cc4d7376b3628ed654fc5f897b74e85c3483ab933281f4367daf49b9b3
|
|
| MD5 |
f5dcf9666233dd34c9d914a96fa9dc51
|
|
| BLAKE2b-256 |
912eb5aeadeaab27050145c762420fbe8446aa2208d1c5d0c1880233ad7dcceb
|
File details
Details for the file lyzr_kit-0.1.1-py3-none-any.whl.
File metadata
- Download URL: lyzr_kit-0.1.1-py3-none-any.whl
- Upload date:
- Size: 29.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
265ba31840bdf379052303f17912e2699e1c8d08fa56f037383e5f01926be861
|
|
| MD5 |
185a4370ff91086b45f83f36a22c58fb
|
|
| BLAKE2b-256 |
8d24becf31742e40f640fa7c48e84ca52609b127eb877452baf24ebf50e9925a
|