We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86343b7 commit 8685c72Copy full SHA for 8685c72
1 file changed
src/uipath_langchain/_cli/_runtime/_runtime.py
@@ -1,5 +1,6 @@
1
import json
2
import logging
3
+import os
4
from typing import List, Optional
5
6
from langchain_core.callbacks.base import BaseCallbackHandler
@@ -88,6 +89,14 @@ async def execute(self) -> Optional[UiPathRuntimeResult]:
88
89
"callbacks": callbacks,
90
}
91
92
+ recursion_limit = os.environ.get("LANGCHAIN_RECURSION_LIMIT", None)
93
+ max_concurrency = os.environ.get("LANGCHAIN_MAX_CONCURRENCY", None)
94
+
95
+ if recursion_limit is not None:
96
+ graph_config["recursion_limit"] = int(recursion_limit)
97
+ if max_concurrency is not None:
98
+ graph_config["max_concurrency"] = int(max_concurrency)
99
100
# Stream the output at debug time
101
if self.context.job_id is None:
102
# Get final chunk while streaming
0 commit comments