Skip to content

jeremyyuAWS/Lyzrctl

Repository files navigation

Project Overview

This repository provides Python scripts to manage Lyzr Agents and Workflows using the CLI. You can create, update, list, fetch, and delete agents and workflows with simple commands.


Prerequisites

  • Python 3.9+

  • Virtual environment activated (.venv recommended)

  • API key configured in .env or shell environment

    export LYZR_API_KEY="your-api-key-here"

Agent Management

List Agents

python -m scripts.list_agents

Create a Single Task Agent

python -m scripts.create_single_task_agent yaml/single_task/email_summarizer.yaml

Fetch Agent Details

python -m scripts.get_agent <agent_id>

Update Agent from YAML Definition

python -m scripts.update_agent <agent_id> examples/kyc_agent.yaml

Delete an Agent

python -m scripts.delete_agent <agent_id>

Delete All Agents

python -m scripts.delete_all_agents

Workflow Management

List Workflows

python -m scripts.list_workflows

Delete All Workflows

python -m scripts.delete_all_workflows

Example Workflow (Clean Run)

  1. Check what agents exist

    python -m scripts.list_agents
  2. Delete all existing agents

    python -m scripts.delete_all_agents
  3. Confirm they are gone

    python -m scripts.list_agents
  4. Create a new agent from YAML

    python -m scripts.create_single_task_agent yaml/single_task/email_summarizer.yaml
  5. Fetch and update agent details

    python -m scripts.get_agent <agent_id>
    python -m scripts.update_agent <agent_id> examples/kyc_agent.yaml

Notes

  • Replace <agent_id> with the actual agent ID returned from the list or create commands.
  • Scripts are modular and can be chained in CI/CD pipelines.
  • Use YAML files (examples/, yaml/single_task/) to define reusable agent behaviors.

About

Lyzr Platform Python API Wrappers for Programmatic Access

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages