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.2.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.2-py3-none-any.whl (47.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lyzr_kit-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 58827bed3f4d2bb775e9a0f6f65c945c8846e6d70b5c097c2d89b1d73688bdc6
MD5 3fd6c967a055b0751a947305e43cb37e
BLAKE2b-256 a0882a95ae22789a6b6e889530b91b538a906b0f19127b1e6f48963a98e3fcdc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lyzr_kit-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 63598edb6e9eb55400034a5f8f25c5925fe3256c13168c5825b26d76ff681ccf
MD5 0ff1274c6ec542a034018671989dccef
BLAKE2b-256 22c1a1748763a8b5f3d6660d66ece450645cd96ab192dbaf31da10f2043af728

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