Skip to content

Commit ff67d4b

Browse files
committed
fix: await context runtime
1 parent 924792f commit ff67d4b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-llamaindex"
3-
version = "0.0.13"
3+
version = "0.0.14"
44
description = "UiPath LlamaIndex SDK"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"

src/uipath_llamaindex/_cli/_runtime/_runtime.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
InputRequiredEvent,
1313
JsonPickleSerializer,
1414
)
15+
from llama_index.core.workflow.handler import WorkflowHandler
1516
from openinference.instrumentation.llama_index import LlamaIndexInstrumentor
1617
from opentelemetry import trace
1718
from opentelemetry.sdk.trace import TracerProvider
@@ -69,9 +70,9 @@ async def execute(self) -> Optional[UiPathRuntimeResult]:
6970
start_event_class = self.context.workflow._start_event_class
7071
ev = start_event_class(**self.context.input_json)
7172

72-
ctx: Context = self._get_context()
73+
ctx: Context = await self._get_context()
7374

74-
handler = self.context.workflow.run(start_event=ev, ctx=ctx)
75+
handler: WorkflowHandler = self.context.workflow.run(start_event=ev, ctx=ctx, **self.context.input_json)
7576

7677
resume_trigger: UiPathResumeTrigger = None
7778

0 commit comments

Comments
 (0)