Skip to content

Feature/file handling pipeline#378

Open
chandan-1427 wants to merge 13 commits intoGetBindu:mainfrom
chandan-1427:feature/file-handling-pipeline
Open

Feature/file handling pipeline#378
chandan-1427 wants to merge 13 commits intoGetBindu:mainfrom
chandan-1427:feature/file-handling-pipeline

Conversation

@chandan-1427
Copy link
Contributor

Overview
This PR integrates the latest structural optimizations from the optimize/server-endpoints-handlers branch and implements a native, framework-level file handling pipeline. It ensures that the Bindu engine remains stable across all core protocols (A2A, X402, and Streaming) after the recent codebase "surgery."

Key Technical Contributions
Native File-Handling Interceptor (bindu/utils/worker/messages.py):

Implemented a seamless pipeline that intercepts incoming Base64 file parts.

Added automated extraction for PDF (via pypdf) and Plain Text.

Engineered a standard context wrapper that injects parsed documents into the agent's message history as formatted text prompts.

MIME Type Gatekeeping: Added strict validation to file_handler.py to prevent unsupported binary data from reaching the LLM, improving framework reliability.

Dependency & Environment Fixes:

Resolved ModuleNotFoundError: exceptions by removing the legacy docx package and migrating to python-docx.

Fixed a critical FileNotFoundError in the skill loader by normalizing directory pathing for skill.yaml.

Resolved uv.lock dependency collisions following the massive merge.

raahulrahl and others added 13 commits March 19, 2026 11:56
…date Quick Start section

Remove Cookiecutter installation method from Quick Start, renumber remaining options, remove automatic registration section, add one-line installation command to all translations, and fix trailing newlines
…e modules

Move hardcoded values to module-level constants in hydra, metrics, and x402 middleware for better maintainability. Pre-compile regex patterns in metrics middleware for performance optimization.
…on modules

Move hardcoded values to module-level constants in capability_calculator and embedder for better maintainability. Consolidate duplicate fallback logic in embedder provider routing.
…ger module

Move hardcoded JSON-RPC version, error codes, and error messages to module-level constants for better maintainability. Extract duplicate error logging logic into _log_notification_error helper method.
… modules

Move hardcoded values to module-level constants in factory, memory_scheduler, and redis_scheduler for better maintainability. Extract duplicate trace context and task operation logic into helper methods. Replace if-elif chains with dictionary-based operation type mapping in redis_scheduler deserialization.
…ore modules

Remove trailing whitespace, fix inconsistent blank lines, and improve code formatting in bindufy, config_validator, and server endpoint modules. Extract magic strings in error messages and improve multi-line formatting for better readability.
…dules

Move hardcoded JSON-RPC version and error codes to module-level constants in task_manager. Extract error messages to constants in applications module. Extract helper methods for Sentry configuration and initialization, metric header formatting, and bucket formatting in applications and metrics modules to reduce code duplication.
…plications module

Reformat multi-line string constants and function calls for better readability. Add type narrowing assertion for Sentry DSN configuration. Improve docstring formatting and fix quote consistency in manifest_worker. Remove extraneous blank line.
Move HydraMiddleware import in applications.py and load_agent_credentials import in auth_client.py from module level to method scope to break circular import chains. Add explanatory comment in auth_client.py documenting the circular dependency path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants