qwen_agent/utils
autobee-sparticle 213e541697
fix: resolve PrePrompt Hook env var crash and increase Mem0 pool size (#24)
1. Fix "all environment values must be bytes or str" error in hook execution
   by ensuring all env values are converted to str (getattr may return None
   when attribute exists but is None). Also sanitize shell_env values.

2. Increase MEM0_POOL_SIZE default from 20 to 50 to address "connection pool
   exhausted" errors under high concurrency.

Fixes: sparticleinc/felo-mygpt#2519

Co-authored-by: zhuchao <zhuchaowe@163.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 22:04:31 +09:00
..
log_util sqlite pool and change agent cache to tools cache 2025-12-23 22:18:18 +08:00
__init__.py 批量保存聊天记录 2026-01-19 09:44:57 +08:00
agent_pool.py 日志优化 2025-11-27 21:50:03 +08:00
api_models.py feat: move enable_thinking control from docker-compose to request body (#21) 2026-03-26 20:12:39 +09:00
async_file_ops.py 日志优化 2025-11-27 21:50:03 +08:00
cancel_manager.py 增加取消推理 2026-03-16 22:22:39 +08:00
data_merger.py 日志优化 2025-11-27 21:50:03 +08:00
dataset_manager.py 日志优化 2025-11-27 21:50:03 +08:00
excel_csv_processor.py 日志优化 2025-11-27 21:50:03 +08:00
fastapi_utils.py rename general agent 2026-02-06 17:05:17 +08:00
file_manager.py 日志优化 2025-11-27 21:50:03 +08:00
file_utils.py add symlink 2025-12-23 17:36:45 +08:00
multi_project_manager.py fix: 解压 skill 到 robot 目录时清理不在列表中的多余 skill 文件夹 2026-03-26 15:55:06 +08:00
project_manager.py add deep_agent 2025-12-12 18:41:52 +08:00
settings.py fix: resolve PrePrompt Hook env var crash and increase Mem0 pool size (#24) 2026-04-01 22:04:31 +09:00
single_file_processor.py 日志优化 2025-11-27 21:50:03 +08:00
system_optimizer.py 日志优化 2025-11-27 21:50:03 +08:00
token_counter.py update summary 2026-02-04 15:31:41 +08:00