Skip to content

Commit 21e8210

Browse files
committed
wip: uipath-platform
1 parent e95df58 commit 21e8210

File tree

13 files changed

+22
-108
lines changed

13 files changed

+22
-108
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Runtime abstractions and interfaces for building agents and autom
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"
77
dependencies = [
8-
"uipath-core>=0.5.0, <0.6.0",
8+
"uipath-core==0.5.1.dev1000450222",
99
]
1010
classifiers = [
1111
"Intended Audience :: Developers",
@@ -106,3 +106,6 @@ name = "testpypi"
106106
url = "https://test.pypi.org/simple/"
107107
publish-url = "https://test.pypi.org/legacy/"
108108
explicit = true
109+
110+
[tool.uv.sources]
111+
uipath-core = { index = "testpypi" }

src/uipath/runtime/__init__.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,6 @@
3333
from uipath.runtime.resumable.runtime import (
3434
UiPathResumableRuntime,
3535
)
36-
from uipath.runtime.resumable.trigger import (
37-
UiPathApiTrigger,
38-
UiPathResumeTrigger,
39-
UiPathResumeTriggerName,
40-
UiPathResumeTriggerType,
41-
)
4236
from uipath.runtime.schema import UiPathRuntimeSchema
4337
from uipath.runtime.storage import UiPathRuntimeStorageProtocol
4438

@@ -58,16 +52,12 @@
5852
"UiPathRuntimeSchema",
5953
"UiPathResumableStorageProtocol",
6054
"UiPathResumeTriggerProtocol",
61-
"UiPathApiTrigger",
62-
"UiPathResumeTrigger",
63-
"UiPathResumeTriggerType",
6455
"UiPathResumableRuntime",
6556
"UiPathDebugQuitError",
6657
"UiPathDebugProtocol",
6758
"UiPathDebugRuntime",
6859
"UiPathBreakpointResult",
6960
"UiPathStreamNotSupportedError",
70-
"UiPathResumeTriggerName",
7161
"UiPathChatProtocol",
7262
"UiPathChatRuntime",
7363
]

src/uipath/runtime/chat/protocol.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
from uipath.core.chat import (
66
UiPathConversationMessageEvent,
77
)
8-
9-
from uipath.runtime.resumable.trigger import UiPathResumeTrigger
8+
from uipath.core.triggers import UiPathResumeTrigger
109

1110

1211
class UiPathChatProtocol(Protocol):

src/uipath/runtime/chat/runtime.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import logging
44
from typing import Any, AsyncGenerator, cast
55

6+
from uipath.core.triggers import UiPathResumeTriggerType
7+
68
from uipath.runtime.base import (
79
UiPathExecuteOptions,
810
UiPathRuntimeProtocol,
@@ -17,7 +19,6 @@
1719
UiPathRuntimeResult,
1820
UiPathRuntimeStatus,
1921
)
20-
from uipath.runtime.resumable.trigger import UiPathResumeTriggerType
2122
from uipath.runtime.schema import UiPathRuntimeSchema
2223

2324
logger = logging.getLogger(__name__)

src/uipath/runtime/debug/runtime.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
from typing import Any, AsyncGenerator, cast
66

77
from uipath.core.errors import UiPathPendingTriggerError
8+
from uipath.core.triggers import (
9+
UiPathResumeTrigger,
10+
UiPathResumeTriggerType,
11+
)
812

913
from uipath.runtime.base import (
1014
UiPathExecuteOptions,
@@ -27,10 +31,6 @@
2731
)
2832
from uipath.runtime.resumable.protocols import UiPathResumeTriggerReaderProtocol
2933
from uipath.runtime.resumable.runtime import UiPathResumableRuntime
30-
from uipath.runtime.resumable.trigger import (
31-
UiPathResumeTrigger,
32-
UiPathResumeTriggerType,
33-
)
3434
from uipath.runtime.schema import UiPathRuntimeSchema
3535

3636
logger = logging.getLogger(__name__)

src/uipath/runtime/result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
from typing import Any
55

66
from pydantic import BaseModel, Field
7+
from uipath.core.triggers import UiPathResumeTrigger
78

89
from uipath.runtime.errors import UiPathErrorContract
910
from uipath.runtime.events import UiPathRuntimeEvent, UiPathRuntimeEventType
10-
from uipath.runtime.resumable.trigger import UiPathResumeTrigger
1111

1212

1313
class UiPathRuntimeStatus(str, Enum):

src/uipath/runtime/resumable/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,10 @@
66
UiPathResumeTriggerProtocol,
77
UiPathResumeTriggerReaderProtocol,
88
)
9-
from uipath.runtime.resumable.trigger import (
10-
UiPathApiTrigger,
11-
UiPathResumeTrigger,
12-
UiPathResumeTriggerType,
13-
)
149

1510
__all__ = [
1611
"UiPathResumableStorageProtocol",
1712
"UiPathResumeTriggerCreatorProtocol",
1813
"UiPathResumeTriggerReaderProtocol",
1914
"UiPathResumeTriggerProtocol",
20-
"UiPathResumeTrigger",
21-
"UiPathResumeTriggerType",
22-
"UiPathApiTrigger",
2315
]

src/uipath/runtime/resumable/protocols.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
from typing import Any, Protocol
44

5-
from uipath.runtime.resumable.trigger import UiPathResumeTrigger
5+
from uipath.core.triggers import UiPathResumeTrigger
6+
67
from uipath.runtime.storage import UiPathRuntimeStorageProtocol
78

89

src/uipath/runtime/resumable/runtime.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from typing import Any, AsyncGenerator
55

66
from uipath.core.errors import UiPathPendingTriggerError
7+
from uipath.core.triggers import UiPathResumeTrigger, UiPathResumeTriggerType
78

89
from uipath.runtime.base import (
910
UiPathExecuteOptions,
@@ -16,12 +17,10 @@
1617
UiPathRuntimeResult,
1718
UiPathRuntimeStatus,
1819
)
19-
from uipath.runtime.resumable import UiPathResumeTriggerType
2020
from uipath.runtime.resumable.protocols import (
2121
UiPathResumableStorageProtocol,
2222
UiPathResumeTriggerProtocol,
2323
)
24-
from uipath.runtime.resumable.trigger import UiPathResumeTrigger
2524
from uipath.runtime.schema import UiPathRuntimeSchema
2625

2726
logger = logging.getLogger(__name__)

src/uipath/runtime/resumable/trigger.py

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

0 commit comments

Comments
 (0)