Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/uipath_langchain/_cli/_runtime/_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ async def execute(self) -> Optional[UiPathRuntimeResult]:
"callbacks": callbacks,
}

recursion_limit = os.environ.get("LANGCHAIN_RECURSION_LIMIT", None)
max_concurrency = os.environ.get("LANGCHAIN_MAX_CONCURRENCY", None)

if recursion_limit is not None:
graph_config["recursion_limit"] = int(recursion_limit)
if max_concurrency is not None:
graph_config["max_concurrency"] = int(max_concurrency)

# Stream the output at debug time
if self.context.job_id is None:
# Get final chunk while streaming
Expand Down
Loading