mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-16 11:24:45 +08:00
fix:env AGENT_RECURSION_LIMIT not work (#453)
* fix:env AGENT_RECURSION_LIMIT not work * fix:add test * black tests/unit/config/test_configuration.py --------- Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
import logging
|
||||
from src.config.configuration import get_recursion_limit
|
||||
from src.graph import build_graph
|
||||
|
||||
# Configure logging
|
||||
@@ -71,7 +72,7 @@ async def run_agent_workflow_async(
|
||||
}
|
||||
},
|
||||
},
|
||||
"recursion_limit": 100,
|
||||
"recursion_limit": get_recursion_limit(default=100),
|
||||
}
|
||||
last_message_cnt = 0
|
||||
async for s in graph.astream(
|
||||
|
||||
Reference in New Issue
Block a user