Skip to main content

CLI tool to generate LLM agent API projects

Project description

create-agent

A CLI tool to quickly scaffold LLM agent API projects with an OpenAI-compatible interface.

Features

  • Create a new agent project with a single command
  • Includes ready-to-use API endpoints compatible with OpenAI's chat completion API
  • Built-in RAG (Retrieval Augmented Generation) capabilities using LangGraph
  • Support for custom tool definitions
  • Complete FastAPI application structure

Installation

pip install create-agent

Usage

Create a new agent project:

create-agent my-agent

This will create a new directory called my-agent with all the necessary files to run an agent API.

Options

  • --template: Specify a template to use (default: "default")
  • --output-dir: Specify the output directory (default: current directory)
create-agent my-agent --output-dir projects

Project Structure

The generated project follows a well-organized structure:

my-agent/
├── app/
│   ├── api/            # API definitions and models
│   ├── core/           # Core functionality
│   ├── rag/            # RAG implementation with LangGraph
│   ├── services/       # Business logic services
│   ├── utils/          # Utility functions
│   ├── config.py       # Application configuration
│   └── main.py         # FastAPI application
├── .env.example        # Environment variables template
├── .gitignore          # Git ignore file
├── README.md           # Project documentation
└── requirements.txt    # Dependencies

Next Steps After Creating a Project

  1. Navigate to your new project directory:

    cd my-agent
    
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install dependencies:

    pip install -r requirements.txt
    
  4. Set up your environment variables:

    cp .env.example .env
    
  5. Edit the .env file with your API keys and configuration

  6. Run the application:

    uvicorn app.main:app --reload
    

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

create_agent-0.0.1.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

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

create_agent-0.0.1-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file create_agent-0.0.1.tar.gz.

File metadata

  • Download URL: create_agent-0.0.1.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for create_agent-0.0.1.tar.gz
Algorithm Hash digest
SHA256 dd9b21ee76f4c44745801eb07f79b165014a6c95bddcf13fa7a40efba85d67b0
MD5 da82a67148335b0393d9976672a9ae78
BLAKE2b-256 27fa0e0c6802a548f16ad0353cd10d4f3347d66eb6579107c7fa83fb0cab5e37

See more details on using hashes here.

File details

Details for the file create_agent-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: create_agent-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for create_agent-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32eff607f654024ca7edc50f91acefb02d0968b5de2c7f12c89842336c753fa9
MD5 1415a8b4ada73f1e7b843f4889690cbe
BLAKE2b-256 2c392559254b4463469ca0f84bc2ddb9b32234934b9b6e5eb1478ad9e9a19f38

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