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.2.tar.gz (16.2 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.2-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: create_agent-0.0.2.tar.gz
  • Upload date:
  • Size: 16.2 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.2.tar.gz
Algorithm Hash digest
SHA256 29f283692d575c1e6b6bd0fe55aaffb51bdd3c48bc37a1d976068acfbd16db3b
MD5 7a25ad3d0736e829846b0dbdd5a99f8d
BLAKE2b-256 9006fb4a8b63259d9a89e1614e681859f668a7727c1162f4f5791f02c3bb006c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: create_agent-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 20.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 eb4121b746e7c321e3e6e98fd99db33c525198355df42ff321080d4424eaf90e
MD5 17db3becb374423a51cc26d3c396e251
BLAKE2b-256 ff1ba09d79654b8b2dc12c6123c2160cd548105bfdefa6ca7b1122642e64319a

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