Skip to main content

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

lyzr_kit-0.1.0.tar.gz (86.7 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.1.0-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lyzr_kit-0.1.0.tar.gz
  • Upload date:
  • Size: 86.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for lyzr_kit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e5b37ad6ee62c53d319fd49e95c116304ab6b4a1fc3c70292bcdf94b62a4d7a9
MD5 d318fa6a2e71a12653db9eb7dd3a4642
BLAKE2b-256 37942729bd492b2c1fb69fd7718882367d2fa4b5f8b8e008d06f739826bf91c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lyzr_kit-0.1.0-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

Hashes for lyzr_kit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2b6ac83d0a2b27c13a5785347eff06d360e0c8850873de6372780f3d575acf4
MD5 e3c2c6f36c1f799add42a1a0d499909d
BLAKE2b-256 91b8c49d589d2c4acacaa30dac9b09b7284ad897f7b152e3fdb5cf97564265af

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