Hermes Architectural Journey

From User Prompt to Serverless Execution

💬 1. Sending a Message & Chatting

User Action: Types "Hello" and hits send in the UI.

📄 2 & 3. Creating & Downloading a Text File

User Action: "Write a python script for me to download."
sequenceDiagram actor User participant API as Express API participant DB as DynamoDB participant ECS as Fargate (RunTask) participant S3 as Amazon S3 User->>API: "Write python script" API->>ECS: Provision new MicroVM API->>DB: Write 'write_file' event ECS->>DB: Poll for events ECS-->>ECS: Execute python locally ECS->>S3: upload_artifact to bucket S3-->>API: Return S3 URL API->>User: Download File Link

⚡ 4. Rapid-Fire Queueing

User Action: Spams 5 messages in a row before the agent replies.

👁️ 5. Vision Inputs (Sending a Picture)

User Action: Uploads a screenshot and asks "What is wrong with this code?"

🎨 6. Image Generation Extension

User Action: "Generate a picture of a server architecture."

📊 7. Autonomous Data Science

User Action: Uploads a 50MB .zip file and says "Analyze this CSV dataset."
graph TD A[S3 Bucket: Dataset.zip] -->|Download| B(Fargate MicroVM) B -->|1. write_script.py| C{Agent Loop} C -->|2. bash run_script| B B -->|3. terminal output| C C -->|4. Fix bugs| C C -->|5. Generate chart.png| D[S3 Bucket: Artifacts] D --> E((Container Self-Destructs))

⏱️ 8. Recurring Live Agent Extension

User Action: "Check the stock market API every 90 minutes."
sequenceDiagram participant EB as Amazon EventBridge participant API as Express API participant ECS as Fargate MicroVM participant LLM as Amazon Bedrock Note over EB,LLM: Automatically triggers every 90 mins EB->>API: Webhook: Run Stock Script API->>ECS: Boot fresh isolated container ECS->>LLM: Analyze live stock data LLM-->>ECS: Return analysis ECS->>API: Send summary alert to User Note over ECS: Container is instantly destroyed