### Setup Python Virtual Environment and Dependencies Source: https://github.com/agno-agi/agent-api/blob/main/README.md This script creates a new Python virtual environment for the project and installs all necessary dependencies, ensuring a clean and isolated development setup. ```sh ./scripts/dev_setup.sh ``` -------------------------------- ### Install `uv` Python Package Manager Source: https://github.com/agno-agi/agent-api/blob/main/README.md This command downloads and executes the `uv` installation script, a fast Python package installer and resolver, which is used for managing the project's virtual environment and dependencies. ```sh curl -LsSf https://astral.sh/uv/install.sh | sh ``` -------------------------------- ### Start Agent API with Docker Compose Source: https://github.com/agno-agi/agent-api/blob/main/README.md This command uses Docker Compose to start the FastAPI server and PostgreSQL database in detached mode, allowing them to run in the background. The FastAPI server will be accessible at `http://localhost:8000`. ```sh docker compose up -d ``` -------------------------------- ### Clone Agent API Repository Source: https://github.com/agno-agi/agent-api/blob/main/README.md This command clones the `agent-api` repository from GitHub and changes the current directory into the newly cloned repository, preparing for further setup. ```sh git clone https://github.com/agno-agi/agent-api.git cd agent-api ``` -------------------------------- ### Activate Python Virtual Environment Source: https://github.com/agno-agi/agent-api/blob/main/README.md This command activates the previously created Python virtual environment, making its installed packages and Python executable available in the current shell session. ```sh source .venv/bin/activate ``` -------------------------------- ### Python Project Dependency List Source: https://github.com/agno-agi/agent-api/blob/main/requirements.txt This snippet provides a comprehensive list of Python packages and their exact versions required for the `/agno-agi/agent-api` project. These dependencies are typically installed using a package manager like `pip` or `uv` to ensure a consistent development and deployment environment. ```Python # This file was autogenerated by uv via the following command: # ./scripts/generate_requirements.sh upgrade agno==1.4.6 annotated-types==0.7.0 anyio==4.9.0 beautifulsoup4==4.13.4 certifi==2025.4.26 cffi==1.17.1 charset-normalizer==3.4.2 click==8.2.0 curl-cffi==0.10.0 distro==1.9.0 dnspython==2.7.0 docstring-parser==0.16 duckduckgo-search==8.0.1 email-validator==2.2.0 fastapi==0.115.12 fastapi-cli==0.0.7 frozendict==2.4.6 gitdb==4.0.12 gitpython==3.1.44 h11==0.16.0 httpcore==1.0.9 httptools==0.6.4 httpx==0.28.1 idna==3.10 jinja2==3.1.6 jiter==0.9.0 lxml==5.4.0 markdown-it-py==3.0.0 markupsafe==3.0.2 mdurl==0.1.2 multitasking==0.0.11 numpy==2.2.5 openai==1.78.0 pandas==2.2.3 peewee==3.18.1 pgvector==0.4.1 platformdirs==4.3.8 primp==0.15.0 protobuf==5.29.4 psycopg==3.2.7 psycopg-binary==3.2.7 pycparser==2.22 pydantic==2.11.4 pydantic-core==2.33.2 pydantic-settings==2.9.1 pygments==2.19.1 python-dateutil==2.9.0.post0 python-dotenv==1.1.0 python-multipart==0.0.20 pytz==2025.2 pyyaml==6.0.2 requests==2.32.3 rich==14.0.0 rich-toolkit==0.14.5 shellingham==1.5.4 six==1.17.0 smmap==5.0.2 sniffio==1.3.1 soupsieve==2.7 sqlalchemy==2.0.40 starlette==0.46.2 tomli==2.2.1 tqdm==4.67.1 typer==0.15.3 typing-extensions==4.13.2 typing-inspection==0.4.0 tzdata==2025.2 urllib3==2.4.0 uvicorn==0.34.2 uvloop==0.21.0 watchfiles==1.0.5 websockets==15.0.1 yfinance==0.2.59 ``` -------------------------------- ### Build and Push Production Docker Image Source: https://github.com/agno-agi/agent-api/blob/main/README.md This script builds the application's Docker image for production deployment and pushes it to a configured container registry, preparing it for cloud deployment. ```sh ./scripts/build_image.sh ``` -------------------------------- ### Build and Push Agent API Docker Image Source: https://github.com/agno-agi/agent-api/blob/main/README.md This command executes a shell script to build a Docker image for the Agent API and push it to a configured container registry. Ensure the `scripts/build_image.sh` file is updated with the correct `IMAGE_NAME` and `IMAGE_TAG` before running. ```Shell ./scripts/build_image.sh ``` -------------------------------- ### Generate Python `requirements.txt` Source: https://github.com/agno-agi/agent-api/blob/main/README.md This script regenerates the `requirements.txt` file based on the `pyproject.toml` dependencies, which is crucial for building the application's Docker image with correct dependencies. ```sh ./scripts/generate_requirements.sh ``` -------------------------------- ### Upgrade Python Dependencies and Generate `requirements.txt` Source: https://github.com/agno-agi/agent-api/blob/main/README.md This command upgrades all existing Python dependencies to their latest compatible versions and then regenerates the `requirements.txt` file, ensuring the project uses up-to-date libraries. ```sh ./scripts/generate_requirements.sh upgrade ``` -------------------------------- ### Export OpenAI API Key Environment Variable Source: https://github.com/agno-agi/agent-api/blob/main/README.md This command sets the `OPENAI_API_KEY` environment variable, which is required for the application to authenticate with the OpenAI API and use models like GPT-4.1. ```sh export OPENAI_API_KEY="YOUR_API_KEY_HERE" ``` -------------------------------- ### Load Agent Knowledge API Endpoint Source: https://github.com/agno-agi/agent-api/blob/main/README.md This API endpoint is used to load a knowledge base for a specific agent. It is particularly important for agents like 'Agno Assist' to function correctly by providing them with necessary data. ```APIDOC POST /agents/{agent_id}/knowledge/load Description: Load agent knowledge base. Parameters: agent_id: Path parameter, ID of the agent. Returns: Success status upon knowledge base loading. ``` -------------------------------- ### Rebuild Docker Images with Updated Dependencies Source: https://github.com/agno-agi/agent-api/blob/main/README.md This command rebuilds the Docker images and restarts the containers in detached mode, incorporating any changes made to the `pyproject.toml` and `requirements.txt` files. ```sh docker compose up -d --build ``` -------------------------------- ### Stop Agent API Docker Containers Source: https://github.com/agno-agi/agent-api/blob/main/README.md This command gracefully stops and removes the containers, networks, and volumes created by `docker compose up`, cleaning up the running application. ```sh docker compose down ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.