api/message.py.dox.md
message.py API endpoint.message.py because this directory is intentionally flat.message.py owns the runtime implementation.message.py.dox.md owns durable notes about responsibilities, contracts, side effects, and verification for that implementation.Message (ApiHandler)
async process(self, input: dict, request: Request) -> dict | Responseasync respond(self, task: DeferredTask, context: AgentContext)async communicate(self, input: dict, request: Request)helpers.api.ApiHandler; WebSocket handlers must derive from helpers.ws.WsHandler.Message is an ApiHandler.Message defines process(...).agent, helpers, helpers.api, helpers.defer, helpers.security, os.request.content_type.startswith, self.use_context, mq.log_user_message, self.communicate, self.respond, task.result, request.files.getlist, files.get_abs_path, request.get_json, extension.call_extensions_async, context.communicate, os.makedirs, UserMessage, safe_filename, attachment.save, context.get_agent, os.path.join.helpers.api.Response for non-JSON responses, files, redirects, or status-specific replies.tests/email_parser_test.pytests/rate_limiter_test.pytests/test_api_chat_lifetime.pytests/test_browser_agent_regressions.pytests/test_chat_compaction.pytests/test_docker_release_plan.pytests/test_document_query_fallback.pytests/test_download_toast_regressions.pyNo child DOX files.