Skip to main content

Lag: Lamin's Agent CLI.

Project description

⚠️ This repo is in development right now. ⚠️

Lag CLI: Lamin Agent CLI

lag can execute existing runnable tools and author/update runnable scripts (.py).

Setup

pip install laminagent

Create ~/llms.env with:

GEMINI_API_KEY=your_api_key_here

Make sure LaminDB is initialized and connected.

Quick Start

Run in default mode:

lag --prompt "Write a text file with 'Hello agent!' in it, please"

You can explore runnable example scenarios in tests/examples.

Modes

Default mode (execute only)

  • If a tool exists (tool.md or latest tool_*.md, or --tool-file), lag executes the referenced runnable tools.
  • Otherwise, lag executes existing runnable tools referenced in --prompt (explicit .py key or path).
  • Default mode does not create or update tools. If a referenced tool is missing, it fails with a clear error.

Planning mode (--tool)

Generate or update runnable tools (without executing them):

lag --tool --prompt "Update test-lag/create_fasta.py with another protein"

Generated/updated tool files are saved via lamin save in tool mode.

Common Flags

  • --project <name> sets LAMIN_CURRENT_PROJECT.
  • --model <model-name> selects the Gemini model (--tool mode).
  • --output-file <path> sets output filename for generated content (--tool mode).
  • --tool-file <path> executes a specific tool in default mode.
  • --no-track disables ln.track() / ln.finish() injection in generated scripts (--tool mode).

Run Context Propagation

When lag executes scripts, it propagates:

  • LAMIN_INITIATED_BY_RUN_UID (master run uid)
  • LAMIN_CURRENT_PROJECT (if --project is provided)

lag itself does not directly create output artifacts; produced outputs are tracked by executed tool code.

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

laminagent-0.1.0.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

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

laminagent-0.1.0-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: laminagent-0.1.0.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.34.2

File hashes

Hashes for laminagent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 29f7db8476f8f8f7678cfdfc397fa6e7f6f1a0a4c8c163649064b615bbbdd90c
MD5 6cfd5699ef3e7c9263c2ea149705fe45
BLAKE2b-256 090c7b830ab9797f890f5afb67a082ac18287a3d41f4e8572716e0ed43a0de97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: laminagent-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.34.2

File hashes

Hashes for laminagent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0241071c3ab32cf5f430e9076c24a2e404c4ff01597d89afcb526110b6731399
MD5 e483264669cf7a7de7a43e8d1569ef2e
BLAKE2b-256 7b288b7f335441c5905a40a0853c190441d0f822803bb4249eae07aee60e55d3

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