🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • class EInkFileHandler

    A file system event handler that monitors a directory for new files and automatically processes them asynchronously when detected.

    File: /tf/active/vicechatdev/e-ink-llm/processor.py | Lines: 29-59

    file-system event-handler async file-monitoring watchdog
  • function load_onedrive_config

    Loads OneDrive configuration from a JSON file and returns it as a dictionary, with error handling for missing or invalid files.

    File: /tf/active/vicechatdev/e-ink-llm/main.py | Lines: 136-144

    configuration file-loading json onedrive cloud-storage
  • function load_remarkable_config

    Loads reMarkable tablet configuration from a JSON file, returning an empty dictionary if the file doesn't exist or cannot be loaded.

    File: /tf/active/vicechatdev/e-ink-llm/main.py | Lines: 126-134

    configuration file-loading json remarkable error-handling
  • function validate_api_key

    Validates the presence of an OpenAI API key by checking function parameters and environment variables, returning the key or exiting with an error message if not found.

    File: /tf/active/vicechatdev/e-ink-llm/main.py | Lines: 111-124

    validation api-key openai authentication environment-variables
  • function setup_environment

    Loads environment variables from a .env file located in the same directory as the script, if the file exists.

    File: /tf/active/vicechatdev/e-ink-llm/main.py | Lines: 104-109

    environment-variables configuration setup initialization dotenv
  • class HybridPromptEnhancer

    A utility class that enhances LLM prompts by adding instructions and formatting guidelines to encourage hybrid text+graphics responses with embedded graphic placeholders.

    File: /tf/active/vicechatdev/e-ink-llm/hybrid_response_handler.py | Lines: 204-300

    prompt-engineering llm graphics hybrid-output text-enhancement
  • class HybridResponseHandler

    Orchestrates the complete workflow for generating hybrid PDF documents that combine LLM text responses with dynamically generated graphics (charts, diagrams, illustrations).

    File: /tf/active/vicechatdev/e-ink-llm/hybrid_response_handler.py | Lines: 39-202

    pdf-generation hybrid-content graphics-generation async document-assembly
  • class HybridResponse

    A dataclass that encapsulates a complete hybrid response containing both text content and graphical elements with their placeholders and metadata.

    File: /tf/active/vicechatdev/e-ink-llm/hybrid_response_handler.py | Lines: 32-37

    dataclass hybrid-content graphics text-and-graphics document-generation
  • class GraphicPlaceholder

    A dataclass that represents a placeholder for graphics (charts, diagrams, etc.) embedded within text responses, storing metadata about the graphic's type, description, parameters, and position.

    File: /tf/active/vicechatdev/e-ink-llm/hybrid_response_handler.py | Lines: 23-29

    dataclass placeholder graphics document-generation data-container
  • class EditingWorkflowHandler

    Orchestrates a complete document editing workflow that detects annotations in PDFs, analyzes their types and intent, generates AI-powered text improvements, and provides editing recommendations.

    File: /tf/active/vicechatdev/e-ink-llm/editing_workflow.py | Lines: 28-185

    document-processing pdf-analysis annotation-detection ai-editing text-rewriting
  • class EditingWorkflowResult

    A dataclass that encapsulates the results from an editing workflow process, including detected annotations, confidence scores, recommendations, and optional rewritten content.

    File: /tf/active/vicechatdev/e-ink-llm/editing_workflow.py | Lines: 19-26

    dataclass result-container editing-workflow annotations data-transfer-object
  • function test_api_client

    An async test function stub for testing the RemarkableAPIClient that requires a valid user authentication token to execute API operations.

    File: /tf/active/vicechatdev/e-ink-llm/remarkable_api_endpoints.py | Lines: 355-364

    async testing api-client remarkable authentication
  • class RemarkableAPIClient

    Asynchronous API client for interacting with the reMarkable Cloud service, providing methods for file management, folder operations, and document synchronization.

    File: /tf/active/vicechatdev/e-ink-llm/remarkable_api_endpoints.py | Lines: 15-352

    remarkable cloud-api async document-management file-upload
  • function run_tests

    Asynchronous test suite function that creates test images with various text prompts, processes them through an E-Ink LLM processor, and reports usage statistics and results.

    File: /tf/active/vicechatdev/e-ink-llm/test.py | Lines: 46-111

    testing async e-ink llm openai
  • function create_test_image

    Creates a synthetic test image with text rendered in a handwritten-style font on a white background and saves it to disk.

    File: /tf/active/vicechatdev/e-ink-llm/test.py | Lines: 19-44

    image-generation test-data PIL Pillow text-rendering
  • function process_single_remarkable_file

    Asynchronously processes a single document from reMarkable Cloud by downloading it, processing it through an e-ink LLM processor, and returning the path to the generated response PDF.

    File: /tf/active/vicechatdev/e-ink-llm/remarkable_processor.py | Lines: 222-267

    async remarkable cloud-storage document-processing pdf-generation
  • class RemarkableEInkProcessor

    Enhanced E-Ink LLM Processor that extends EInkLLMProcessor with reMarkable Cloud integration, enabling file processing from both local directories and reMarkable Cloud storage.

    File: /tf/active/vicechatdev/e-ink-llm/remarkable_processor.py | Lines: 17-218

    e-ink llm file-processing remarkable cloud-integration
  • class ConversationTimelineGenerator

    A class that generates comprehensive PDF reports documenting conversation timelines, including detailed exchanges, problem-solving analysis, references, and visual summaries.

    File: /tf/active/vicechatdev/e-ink-llm/conversation_timeline.py | Lines: 25-422

    pdf-generation reporting conversation-analysis timeline documentation
  • function test_remarkable_with_code

    Asynchronous test function that authenticates with reMarkable Cloud using a one-time code and provides detailed console feedback about the authentication process.

    File: /tf/active/vicechatdev/e-ink-llm/test_remarkable.py | Lines: 74-95

    async authentication remarkable cloud testing
  • function test_remarkable_authentication

    Asynchronous test function that validates reMarkable Cloud authentication and verifies access to the root folder by listing its contents.

    File: /tf/active/vicechatdev/e-ink-llm/test_remarkable.py | Lines: 16-71

    async authentication testing remarkable cloud