Skip to content

Commit a8c833e

Browse files
authored
Merge pull request #4 from UiPath/fix/initial
infer input/output from start/stop events
2 parents ede8b3a + 697000f commit a8c833e

16 files changed

Lines changed: 3609 additions & 186 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
[project]
2-
name = "uipath-llama"
2+
name = "uipath-llamaindex"
33
version = "0.0.1"
4-
description = "UiPath Llama SDK"
4+
description = "UiPath LlamaIndex SDK"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.10"
77
dependencies = [
8+
"llama-index>=0.12.36",
89
"uipath>=2.0.56",
910
]
1011
classifiers = [
@@ -21,11 +22,11 @@ maintainers = [
2122
]
2223

2324
[project.entry-points."uipath.middlewares"]
24-
register = "uipath_llama.middlewares:register_middleware"
25+
register = "uipath_llamaindex.middlewares:register_middleware"
2526

2627
[project.urls]
2728
Homepage = "https://uipath.com"
28-
Repository = "https://github.com/UiPath/uipath-llama-python"
29+
Repository = "https://github.com/UiPath/uipath-llamaindex-python"
2930

3031
[build-system]
3132
requires = ["hatchling"]

src/uipath_llama/_cli/_runtime/_context.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/uipath_llama/_cli/_runtime/_runtime.py

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/uipath_llama/_cli/_utils/_config.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/uipath_llama/_cli/cli_init.py

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/uipath_llama/middlewares.py

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from typing import Optional
2+
3+
from llama_index.core.workflow import Workflow
4+
from uipath._cli._runtime._contracts import UiPathRuntimeContext
5+
6+
from .._utils._config import LlamaIndexConfig
7+
8+
9+
class UiPathLlamaIndexRuntimeContext(UiPathRuntimeContext):
10+
"""Context information passed throughout the runtime execution."""
11+
12+
config: Optional[LlamaIndexConfig] = None
13+
workflow: Optional[Workflow] = None

src/uipath_llama/_cli/_runtime/_exception.py renamed to src/uipath_llamaindex/_cli/_runtime/_exception.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from uipath._cli._runtime._contracts import UiPathErrorCategory, UiPathRuntimeError
44

55

6-
class UiPathLlamaRuntimeError(UiPathRuntimeError):
7-
"""Custom exception for Llama runtime errors with structured error information."""
6+
class UiPathLlamaIndexRuntimeError(UiPathRuntimeError):
7+
"""Custom exception for LlamaIndex runtime errors with structured error information."""
88

99
def __init__(
1010
self,
@@ -14,4 +14,4 @@ def __init__(
1414
category: UiPathErrorCategory = UiPathErrorCategory.UNKNOWN,
1515
status: Optional[int] = None,
1616
):
17-
super().__init__(code, title, detail, category, status, prefix="Llama")
17+
super().__init__(code, title, detail, category, status, prefix="LlamaIndex")

0 commit comments

Comments
 (0)