# -*- coding: utf-8 -*- """Conversation context helpers. Document state is owned by the frontend/business backend. This helper only normalizes request context for model prompts. """ from typing import Any, Dict class ConversationContextBuilder: def build(self, state: Dict[str, Any]) -> Dict[str, Any]: return { "project_info": state.get("project_info", {}), "selected_section": state.get("selected_section", {}), "document_context": state.get("document_context", {}), "conversation_history": state.get("conversation_history", []), }