Open
Conversation
…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.
…E agent functionality
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.