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.3.tar.gz (17.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.3-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: create_agent-0.0.3.tar.gz
  • Upload date:
  • Size: 17.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.3.tar.gz
Algorithm Hash digest
SHA256 5efd85ae28af3ffb835063965dfa7459d2b7eabd54f1c4da601b88bb8aa30fa1
MD5 589b38ebc0d85e35c808faca7661da1f
BLAKE2b-256 6584ff6006dfcfdff6b632c6e489aec1c91a643bb1cc9ea44892054779237943

See more details on using hashes here.

File details

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

File metadata

  • Download URL: create_agent-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 21.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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 33c8db46ebaff492dd4deb987dbe7ad85240db10dd777b4e7f119e2da3d1e163
MD5 8c72f6d0d173c7c5353fe87831843a8e
BLAKE2b-256 f4ebcc3938b236bc68497d3c8088b9216eb561d4fdca584b0f85c8221478e3b1

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