A continuaciΓ³n se muestra de manera literal la estructura del proyecto chatbot-lambda. Puedes copiar directamente este Γ‘rbol para usarlo como referencia al crear directorios y archivos.
π chatbot-lambda/
βββ π pyproject.toml # Dependencias (Poetry)
βββ π template.yaml # AWS SAM Template
βββ π src/
β βββ π main/
β β βββ π python/
β β β βββ π chatbot/
β β β βββ π’ domain/
β β β β βββ π€ model/
β β β β β βββ message.py # Entity: Message, Response
β β β β βββ βοΈ service/
β β β β β βββ conversation_rules.py # Business rules
β β β β βββ π’ event/
β β β β β βββ base_event.py
β β β β β βββ user_message_event.py
β β β β βββ βοΈ command/handlers/
β β β β βββ chatbot_command_handler.py
β β β βββ π§© application/
β β β β βββ π© command/
β β β β β βββ send_message_command.py
β β β β β βββ command_handler.py
β β β β βββ β query/
β β β β β βββ get_conversation_query.py
β β β β βββ β‘οΈ port/
β β β β β βββ input/
β β β β β β βββ chatbot_usecase.py
β β β β β βββ output/
β β β β β βββ message_repository_port.py
β β β β β βββ event_publisher_port.py
β β β β βββ β
service/
β β β β βββ command/
β β β β β βββ send_message_service.py
β β β β βββ query/
β β β β βββ get_conversation_service.py
β β β βββ π adapter/
β β β β βββ π rest/
β β β β β βββ chatbot_controller.py
β β β β β βββ health_controller.py
β β β β βββ πΎ persistence/
β β β β β βββ message_repository_adapter.py
β β β β βββ Ξ» lambda/
β β β β β βββ lambda_handler.py
β β β β βββ π¬ events/
β β β β βββ sns_event_publisher_adapter.py
β β β β βββ sqs_event_listener.py
β β β βββ π config/
β β β β βββ app_config.py
β β β βββ ποΈ infrastructure/
β β β β βββ exception_handler.py
β β β β βββ metrics_collector.py
β β β βββ π main.py # FastAPI entrypoint
β β βββ π resources/
β β βββ βοΈ config.yml
β β βββ π static/
β β βββ index.html # UI del chatbot
β βββ π§ͺ test/
β βββ test_send_message_service.py
βββ π build/
βββ chatbot-lambda.zip
message.py, conversation_rules.py, etc.).