🔍 Code Extractor

Browse Components

Showing 20 of 1808 components

  • function api_export_document

    Flask API endpoint that exports a document in either DOCX or PDF format, with authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1265-1303

    api export document pdf docx
  • function api_replace_section_content

    API endpoint that replaces the content of a specific section within a document, storing the old content for potential undo operations and updating the section's timestamp.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1226-1260

    api rest flask document-management content-replacement
  • function api_get_chat_session

    Flask API endpoint that retrieves a specific chat session by ID, verifying user access permissions before returning the session data.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1207-1222

    flask api rest-endpoint chat-session authentication
  • function api_send_chat_message

    Flask API endpoint that handles sending a message in a chat session, processes it through a hybrid RAG engine with configurable search and memory settings, and returns an AI-generated response with references.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 1014-1203

    flask api chat rag hybrid-rag
  • function api_move_section

    Flask API endpoint that moves a document section up or down in the section order, with authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 946-974

    api flask rest-api document-management section-reordering
  • function api_delete_section

    Flask API endpoint that deletes a specific section from a document after validating user authorization and document existence.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 923-942

    api rest delete section document-management
  • function api_update_section

    REST API endpoint that updates an existing section within a document, allowing modification of title, content, type, and level properties with authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 884-919

    api rest flask document-management section-update
  • function api_create_section

    Flask API endpoint that creates a new section within a specified document, handling section positioning, type, level, title, and content with proper authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 820-880

    api flask rest-endpoint document-management section-creation
  • function api_delete_document

    REST API endpoint that deletes a document from the application state after verifying the user's ownership and authentication.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 799-815

    flask rest-api delete-endpoint document-management authentication
  • function api_update_document

    Flask API endpoint that updates document metadata (title and custom metadata fields) for a specific document, with authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 770-795

    api rest flask document-management update
  • function api_get_document

    Flask API endpoint that retrieves a specific document by ID, validates user access permissions, and returns the document data as JSON.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 752-766

    flask api rest document-retrieval authentication
  • function api_create_document

    Flask API endpoint that creates a new document with a title and author, returning the created document's details as JSON.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 719-748

    flask api rest endpoint document-management
  • function api_list_documents

    Flask API endpoint that retrieves and returns a list of all documents belonging to the authenticated user, including metadata like title, author, section count, and timestamps.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 694-715

    flask api rest-api documents list
  • function document_workspace

    Flask route handler that renders the main document workspace interface for authenticated users.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 687-689

    flask route-handler web-interface authentication document-workspace
  • function auth_callback

    OAuth callback handler that processes Azure SSO authentication responses, exchanges authorization codes for access tokens, and establishes user sessions.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 650-676

    oauth authentication azure-sso callback flask-route
  • function get_chat_session

    Retrieves a chat session by its unique session ID, first checking an in-memory cache, then falling back to loading from persistent file storage if not found in memory.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 616-630

    chat session-management caching thread-safe persistence
  • function create_chat_session

    Creates a new chat session for a specific document section by generating a unique session ID, initializing a ChatSession object, storing it in application state with thread-safe locking, and persisting it to file.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 603-614

    chat session-management thread-safe uuid state-management
  • function save_document

    Saves a document object to both in-memory application state and persistent file storage, updating its timestamp in the process.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 594-601

    document-management persistence thread-safe storage state-management
  • function remove_uploaded_document_v1

    Removes a specific uploaded document from a user's document collection in the application state, with thread-safe locking and automatic cleanup of empty user entries.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 554-562

    document-management thread-safe state-management deletion cleanup
  • function get_uploaded_document_v1

    Retrieves a specific uploaded document for a given user from a thread-safe global application state dictionary.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py | Lines: 548-552

    document-retrieval thread-safe user-data state-management locking