Project Structure

BafCode is an intuitive Flask framework streamlining the development of AI agents.

Directory Structure

This is the minimal directory structure to get an up and running BafCode Agent.

src/├── app.py                  # Initial launch point for the agent.├── requirements.txt        # List of required pip packages.├── .env                    # Storage for environment-specific variables.├── logs                    # Logs directory.   └── baf_logs             # Stores error logs and general info messages.├── prompts/                # Houses customized prompts for agent tools.   ├── master_prompt.py    # Determines which tool the agent will use based on prompts.   └── __init__.py         # Initialization file for Python packages.├── llms/                   # Houses the llm files generated via BafCode CLI.   ├── openai_llm.py       # Standard LLM for both Responder and Agent components.   └── __init__.py         # Initialization file for Python packages.├── core/   ├── __init__.py         # Initialization file for Python packages.   ├── error_handler.py    # Manages and reports errors.   ├── logger.py           # Handles logging functionalities.   ├── security.py         # Ensures system security and data protection.   ├── testings_utils.py   # Utilities for testing purposes.   ├── agent               # Core functionalities for the agent.   ├── llm_decision/          └── decision.py     # Logic to determine LLM decisions.   ├── master.py   └── responder/       └── llm_response.py # Manages responses via LLM.├── config/   ├── __init__.py         # Initialization file for Python packages.   ├── app_config.py       # General configurations related to the application.   ├── tools_config.py     # Configuration details specific to tools.   ├── llms_config.py      # Configurations for various LLMs.   ├── master_agent.py     # Configurations for the primary agent.   └── responder_agent.py  # Setup details for the Responder component.├── api/                    # Contains auto-generated APIs for tools.   └── __init__.py         # Initialization file for Python packages.└── tools/                  # Houses the tool files generated via BafCode CLI.    ├── __init__.py         # Initialization file for Python packages.    └── processor.py        # Manages the tool selected by the Agent component.