#pragma once #include "esp_err.h" #include /** * Build the system prompt from bootstrap files (SOUL.md, USER.md) * and memory context (MEMORY.md + recent daily notes). * * @param buf Output buffer (caller allocates, recommend MIMI_CONTEXT_BUF_SIZE) * @param size Buffer size */ esp_err_t context_build_system_prompt(char *buf, size_t size);