Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 1.38 KB

File metadata and controls

48 lines (29 loc) · 1.38 KB

Template for a Langroid-based project

Example project using the Langroid Multi-Agent Programming framework to build LLM applications.

How to use this template

On GitHub, click on the green "Use this template" button to create a new repo based on this template.

Set up various keys in the .env file or as environment variables

Typically your .env file should look something like this:

GEMINI_API_KEY=your_key
OPENAI_API_KEY=your_key

Use uv to manage Python dependencies and virtual env

Install uv, see here

Change the project name

If your specific project name is myproject, then:

  • Change example to your specific project name in the pyproject.toml file.
  • rename the example folder to myproject

Scripts

Have any useful scripts in the scripts folder, and edit the [project.scipts] section in the pyproject.toml file to include paths to these scripts, so they can be run with uv run <script-name>.

You can declare script dependencies via metadata at the top of the script file , see here

Create virtual env and install dependencies

Then create a virtual env, activate it and install the dependencies:

uv venv --python 3.11
. ./.venv/bin/activate 
uv sync