Skip to main content

Python SDK for managing AI agents, tools, and features via the Lyzr platform

Project description

Lyzr Kit

Python SDK for managing AI agents via the Lyzr platform.

Installation

pip install lyzr-kit

Quick Start

# 1. Authenticate
lk auth

# 2. List agents (two tables: Built-in + Your Agents)
lk ls

# 3. Deploy an agent
lk get chat-agent my-assistant

# 4. Chat with your agent
lk chat my-assistant

# 5. Modify and update
# Edit agents/my-assistant.yaml, then:
lk set my-assistant

Chat Experience

  • Session box - Shows agent name, model, session ID, timestamp
  • Real-time activity - WebSocket events stream inline (tool calls, memory, artifacts)
  • Streaming responses - Live markdown-rendered output
  • Metrics footer - Latency and token usage per response
  • Keyboard shortcuts - Full readline support (Option/Ctrl + arrows, history)
  • Exit - Type /exit or press Ctrl+C

CLI Commands

Command Description
lk auth Configure API credentials
lk ls List all agents
lk get <source> [id] Clone and deploy agent
lk set <id> Update agent on platform
lk chat <id> Interactive chat session

Note: agent resource is optional. lk ls = lk agent ls = lk a ls

Serial numbers: Context-aware lookup

  • get → Built-in agents (lk get 1)
  • set/chat → Your agents (lk chat 1)

Built-in Agents

# ID Category
1 chat-agent chat
2 qa-agent qa
3 code-reviewer qa
4 content-writer chat
5 customer-support chat
6 data-analyst qa
7 email-composer chat
8 research-assistant chat
9 sql-expert qa
10 summarizer qa
11 task-planner chat
12 translator qa

Environment Variables

Variable Required
LYZR_API_KEY Yes
LYZR_USER_ID No
LYZR_ORG_ID No
LYZR_MEMBERSTACK_TOKEN No

Storage

  • agents/ - Your deployed agent configs
  • .env - API credentials

Development

pip install -e ".[dev]"
pytest tests/ -v
ruff check src/
mypy src/

Roadmap

Phase Focus Status
1 Agents, CLI, storage ✅ Done
2 Chat experience, WebSocket events ✅ Done
3 Sub-agents Pending
4 Tools Pending
5 Features Pending

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

lyzr_kit-0.2.1.tar.gz (117.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lyzr_kit-0.2.1-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

Details for the file lyzr_kit-0.2.1.tar.gz.

File metadata

  • Download URL: lyzr_kit-0.2.1.tar.gz
  • Upload date:
  • Size: 117.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for lyzr_kit-0.2.1.tar.gz
Algorithm Hash digest
SHA256 693caf2de20036b7346401cec0833d044b09bcfb3d96588f749295bf29652842
MD5 7f162a21460dab473226d24497a7de70
BLAKE2b-256 d93c4b1f95b729638bfc38a8c97596407df34f05746707cf841d8a0abf7ecabe

See more details on using hashes here.

File details

Details for the file lyzr_kit-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: lyzr_kit-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 47.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for lyzr_kit-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 89c7d702fb3e3db66c06157a405dc093984f1a32eda69edc07811c5f81041434
MD5 7b6d34a01e18970575672cf0154d58bc
BLAKE2b-256 2156c2c01fdc8861780fc4a839605d0d4441ae763b4a06564df9c8711b19e6a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page