Skip to content

Commit 6e5ecd9

Browse files
committed
chore: add eval required params to runtime context
1 parent 8cf1b4e commit 6e5ecd9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/uipath_langchain/_cli/cli_run.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def langgraph_run_middleware(
3131
tracing = bool_map[tracing.lower()]
3232

3333
async def execute():
34-
context = LangGraphRuntimeContext.from_config(
35-
env.get("UIPATH_CONFIG_PATH", "uipath.json")
34+
context: LangGraphRuntimeContext = LangGraphRuntimeContext.from_config(
35+
env.get("UIPATH_CONFIG_PATH", "uipath.json"), **kwargs
3636
)
3737
context.entrypoint = entrypoint
3838
context.input = input
@@ -42,6 +42,7 @@ async def execute():
4242
context.logs_min_level = env.get("LOG_LEVEL", "INFO")
4343
context.job_id = env.get("UIPATH_JOB_KEY")
4444
context.trace_id = env.get("UIPATH_TRACE_ID")
45+
context.eval_run = kwargs.get("eval_run", False)
4546
context.tracing_enabled = tracing
4647
context.input_file = kwargs.get("input_file", None)
4748
context.execution_output_file = kwargs.get("execution_output_file", None)

0 commit comments

Comments
 (0)