dify/api/core/plugin/impl
Yeuoly a84437b245 refactor: refactor FileChunk to use Pydantic validators and extract blob processing logic
- Refactor FileChunk class to use Pydantic field and model validators
- Add proper validation for total_length with size constraints
- Implement __iadd__ operator for cleaner chunk appending
- Extract blob chunk processing logic into a dedicated _process_blob_chunks method
- Add comprehensive docstrings for better code documentation
- Add unit tests for FileChunk class

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-12 22:18:11 +08:00
..
agent.py Support OAuth Integration for Plugin Tools (#22550) 2025-07-17 17:18:44 +08:00
asset.py refactor: rename plugin manager to plugin client and rename path from manager to impl (#18876) 2025-04-27 14:22:25 +08:00
base.py enhancing logging (#23332) 2025-08-05 10:36:48 +08:00
debugging.py refactor: rename plugin manager to plugin client and rename path from manager to impl (#18876) 2025-04-27 14:22:25 +08:00
dynamic_select.py minor fix: add parameters in error msg of Plugin service returned no options (#21662) 2025-07-01 22:58:59 +08:00
endpoint.py refactor: rename plugin manager to plugin client and rename path from manager to impl (#18876) 2025-04-27 14:22:25 +08:00
exc.py enhancing logging (#23332) 2025-08-05 10:36:48 +08:00
model.py refactor: rename plugin manager to plugin client and rename path from manager to impl (#18876) 2025-04-27 14:22:25 +08:00
oauth.py feat: oauth refresh token (#22744) 2025-07-23 13:12:39 +08:00
plugin.py fix(plugin): introduce response_type parameter in plugin list API to enable paginated response support (#22251) 2025-07-15 10:10:37 +08:00
tool.py refactor: refactor FileChunk to use Pydantic validators and extract blob processing logic 2025-08-12 22:18:11 +08:00