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 agent ls

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

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

# 5. Modify and update
# Edit agents/my-assistant.yaml, then:
lk agent 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 agent ls List all agents
lk agent get <source> [id] Clone and deploy agent
lk agent set <id> Update agent on platform
lk agent chat <id> Interactive chat session

Shorthand: lk a ls, lk a get 1 my-agent, etc.

Serial numbers: Context-aware lookup

  • get → Built-in agents (lk agent get 1)
  • set/chat → Your agents (lk agent 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.0.tar.gz (117.1 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.0-py3-none-any.whl (47.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lyzr_kit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c54a72430e05decf5ba2c0a663782cebfb467f5d8da7b92cbba66a1634f8a76c
MD5 049a027df0e0c611c007b0ac88e9bc00
BLAKE2b-256 03c5a1f4b5ec4b6448a1f4e10f24d79497373369535b859b3aba1253423778f4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for lyzr_kit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84f26c479de71882f3c4e2b9a557cfbb16fcef839f386a5af6bac2effa749c7d
MD5 de303a2d35f897e6bf75a9cdad8d01cc
BLAKE2b-256 c588a5a7c4f400d452fc040a6b9af1c7eae2fe5b327a2bee3714aa122898b4e1

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