Skip to main content

AG2-powered CadQuery generation backend

Project description

AgentCAD Backend

AG2-powered FastAPI backend for generating CadQuery models and exporting STEP files.

Install

pip install agentcad-backend

For local development from this repository:

cd backend
pip install -e ".[dev]"

Run

agentcad-backend --host 127.0.0.1 --port 8000

The package also exposes the ASGI app at:

agentcad_backend.main:app

Configuration

Configuration is read from environment variables or a .env file in the backend directory.

  • OPENAI_API_KEY: enables AG2/OpenAI generation. Without it, the backend returns deterministic fallback geometry.
  • OPENAI_MODEL: overrides the model used by the CAD and animation agents.
  • AGENT_TEMPERATURE: adjusts agent temperature where supported.

Build and Publish

python -m build
python -m twine check dist/*
python -m twine upload dist/*

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

agentcad_backend-0.1.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

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

agentcad_backend-0.1.0-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: agentcad_backend-0.1.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for agentcad_backend-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e242e6ab736bd6d5bffc1f79bdfde2be88785bdd71a45946fb56589977bbce09
MD5 76a558196bfd6b3d065fd28d7268e1b4
BLAKE2b-256 cdc8063e9e971dca5e6d7db3f0394af00d43c318c0e93c6772b7a122de6c6e4a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agentcad_backend-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4eee8be1fd017ff4394127015c6757238d328c1a9b7f689c232dfa339e063d81
MD5 6ecd3c27d1a6ffcac4be6951523b2640
BLAKE2b-256 be9ac65ea9fba514ba790dd8fc11ebe16a35a589c645977209f96b24efd5cf63

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