uipath 2.1.92__py3-none-any.whl → 2.1.93__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of uipath might be problematic. Click here for more details.

@@ -35,7 +35,7 @@ from opentelemetry.sdk.trace.export import (
35
35
  from opentelemetry.trace import Tracer
36
36
  from pydantic import BaseModel, Field
37
37
 
38
- from uipath._events._events import BaseEvent
38
+ from uipath._events._events import UiPathRuntimeEvent
39
39
  from uipath.agent.conversation import UiPathConversationEvent, UiPathConversationMessage
40
40
  from uipath.tracing import TracingManager
41
41
 
@@ -156,7 +156,7 @@ class UiPathRuntimeResult(BaseModel):
156
156
  return result
157
157
 
158
158
 
159
- class UiPathRuntimeBreakpointResult(UiPathRuntimeResult):
159
+ class UiPathBreakpointResult(UiPathRuntimeResult):
160
160
  """Result for execution suspended at a breakpoint."""
161
161
 
162
162
  # Force status to always be SUSPENDED
@@ -576,7 +576,7 @@ class UiPathBaseRuntime(ABC):
576
576
 
577
577
  async def stream(
578
578
  self,
579
- ) -> AsyncGenerator[Union[BaseEvent, UiPathRuntimeResult], None]:
579
+ ) -> AsyncGenerator[Union[UiPathRuntimeEvent, UiPathRuntimeResult], None]:
580
580
  """Stream execution events in real-time.
581
581
 
582
582
  This is an optional method that runtimes can implement to support streaming.
@@ -586,9 +586,9 @@ class UiPathBaseRuntime(ABC):
586
586
  with the final event being UiPathRuntimeResult.
587
587
 
588
588
  Yields:
589
- BaseEvent subclasses: Framework-agnostic events (MessageCreatedEvent,
590
- AgentStateUpdatedEvent, etc.)
591
- Final yield: UiPathRuntimeResult
589
+ UiPathRuntimeEvent subclasses: Framework-agnostic events (UiPathAgentMessageEvent,
590
+ UiPathAgentStateEvent, etc.)
591
+ Final yield: UiPathRuntimeResult (or its subclass UiPathBreakpointResult)
592
592
 
593
593
  Raises:
594
594
  NotImplementedError: If the runtime doesn't support streaming
@@ -600,10 +600,10 @@ class UiPathBaseRuntime(ABC):
600
600
  # Last event - execution complete
601
601
  print(f"Status: {event.status}")
602
602
  break
603
- elif isinstance(event, MessageCreatedEvent):
603
+ elif isinstance(event, UiPathAgentMessageEvent):
604
604
  # Handle message event
605
605
  print(f"Message: {event.payload}")
606
- elif isinstance(event, AgentStateUpdatedEvent):
606
+ elif isinstance(event, UiPathAgentStateEvent):
607
607
  # Handle state update
608
608
  print(f"State updated by: {event.node_name}")
609
609
  """
uipath/_events/_events.py CHANGED
@@ -72,23 +72,26 @@ ProgressEvent = Union[
72
72
  class EventType(str, Enum):
73
73
  """Types of events that can be emitted during execution."""
74
74
 
75
- MESSAGE_CREATED = "message_created"
76
- AGENT_STATE_UPDATED = "agent_state_updated"
75
+ AGENT_MESSAGE = "agent_message"
76
+ AGENT_STATE = "agent_state"
77
77
  ERROR = "error"
78
78
 
79
79
 
80
- class BaseEvent(BaseModel):
81
- """Base class for all UiPath events."""
80
+ class UiPathRuntimeEvent(BaseModel):
81
+ """Base class for all UiPath runtime events."""
82
82
 
83
83
  model_config = ConfigDict(arbitrary_types_allowed=True)
84
84
 
85
85
  event_type: EventType
86
+ execution_id: Optional[str] = Field(
87
+ default=None, description="The runtime execution id associated with the event"
88
+ )
86
89
  metadata: Optional[Dict[str, Any]] = Field(
87
90
  default=None, description="Additional event context"
88
91
  )
89
92
 
90
93
 
91
- class MessageCreatedEvent(BaseEvent):
94
+ class UiPathAgentMessageEvent(UiPathRuntimeEvent):
92
95
  """Event emitted when a message is created or streamed.
93
96
 
94
97
  Wraps framework-specific message objects (e.g., LangChain BaseMessage,
@@ -96,14 +99,14 @@ class MessageCreatedEvent(BaseEvent):
96
99
 
97
100
  Attributes:
98
101
  payload: The framework-specific message object
99
- event_type: Automatically set to MESSAGE_CREATED
100
- metadata: Additional context (conversation_id, exchange_id, etc.)
102
+ event_type: Automatically set to AGENT_MESSAGE
103
+ metadata: Additional context
101
104
 
102
105
  Example:
103
106
  # LangChain
104
- event = MessageCreatedEvent(
107
+ event = UiPathAgentMessageEvent(
105
108
  payload=AIMessage(content="Hello"),
106
- metadata={"conversation_id": "123"}
109
+ metadata={"additional_prop": "123"}
107
110
  )
108
111
 
109
112
  # Access the message
@@ -112,10 +115,10 @@ class MessageCreatedEvent(BaseEvent):
112
115
  """
113
116
 
114
117
  payload: Any = Field(description="Framework-specific message object")
115
- event_type: EventType = Field(default=EventType.MESSAGE_CREATED, frozen=True)
118
+ event_type: EventType = Field(default=EventType.AGENT_MESSAGE, frozen=True)
116
119
 
117
120
 
118
- class AgentStateUpdatedEvent(BaseEvent):
121
+ class UiPathAgentStateEvent(UiPathRuntimeEvent):
119
122
  """Event emitted when agent state is updated.
120
123
 
121
124
  Wraps framework-specific state update objects, preserving the original
@@ -124,15 +127,15 @@ class AgentStateUpdatedEvent(BaseEvent):
124
127
  Attributes:
125
128
  payload: The framework-specific state update (e.g., LangGraph state dict)
126
129
  node_name: Name of the node/agent that produced this update (if available)
127
- event_type: Automatically set to AGENT_STATE_UPDATED
130
+ event_type: Automatically set to AGENT_STATE
128
131
  metadata: Additional context
129
132
 
130
133
  Example:
131
134
  # LangGraph
132
- event = AgentStateUpdatedEvent(
135
+ event = UiPathAgentStateEvent(
133
136
  payload={"messages": [...], "context": "..."},
134
137
  node_name="agent_node",
135
- metadata={"conversation_id": "123"}
138
+ metadata={"additional_prop": "123"}
136
139
  )
137
140
 
138
141
  # Access the state
@@ -144,4 +147,4 @@ class AgentStateUpdatedEvent(BaseEvent):
144
147
  node_name: Optional[str] = Field(
145
148
  default=None, description="Name of the node/agent that caused this update"
146
149
  )
147
- event_type: EventType = Field(default=EventType.AGENT_STATE_UPDATED, frozen=True)
150
+ event_type: EventType = Field(default=EventType.AGENT_STATE, frozen=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath
3
- Version: 2.1.92
3
+ Version: 2.1.93
4
4
  Summary: Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools.
5
5
  Project-URL: Homepage, https://uipath.com
6
6
  Project-URL: Repository, https://github.com/UiPath/uipath-python
@@ -63,7 +63,7 @@ uipath/_cli/_evals/mocks/mocker_factory.py,sha256=V5QKSTtQxztTo4-fK1TyAaXw2Z3mHf
63
63
  uipath/_cli/_evals/mocks/mockito_mocker.py,sha256=AO2BmFwA6hz3Lte-STVr7aJDPvMCqKNKa4j2jeNZ_U4,2677
64
64
  uipath/_cli/_evals/mocks/mocks.py,sha256=HY0IaSqqO8hioBB3rp5XwAjSpQE4K5hoH6oJQ-sH72I,2207
65
65
  uipath/_cli/_push/sw_file_handler.py,sha256=voZVfJeJTqkvf5aFZvxAHQ_qa7dX_Cz7wRsfhLKL9Ag,17884
66
- uipath/_cli/_runtime/_contracts.py,sha256=qLC--9vF3Tz3upo4Bpkmr3I8U8UrVI4-_Pp9i2dLTto,31369
66
+ uipath/_cli/_runtime/_contracts.py,sha256=IalIJjLYxNE-0cedRPKcubuXhhVYLOWyN2axGJk6E6o,31436
67
67
  uipath/_cli/_runtime/_escalation.py,sha256=x3vI98qsfRA-fL_tNkRVTFXioM5Gv2w0GFcXJJ5eQtg,7981
68
68
  uipath/_cli/_runtime/_hitl.py,sha256=VKbM021nVg1HEDnTfucSLJ0LsDn83CKyUtVzofS2qTU,11369
69
69
  uipath/_cli/_runtime/_logging.py,sha256=srjAi3Cy6g7b8WNHiYNjaZT4t40F3XRqquuoGd2kh4Y,14019
@@ -91,7 +91,7 @@ uipath/_cli/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
91
91
  uipath/_cli/models/runtime_schema.py,sha256=Po1SYFwTBlWZdmwIG2GvFy0WYbZnT5U1aGjfWcd8ZAA,2181
92
92
  uipath/_events/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
93
93
  uipath/_events/_event_bus.py,sha256=4-VzstyX69cr7wT1EY7ywp-Ndyz2CyemD3Wk_-QmRpo,5496
94
- uipath/_events/_events.py,sha256=KKAGlSeHKHhB-Vp4Y0MV4gXxS69lodu6sLD4VHZmjag,4343
94
+ uipath/_events/_events.py,sha256=eCgqEP4rzDgZShXMC9wgBVx-AcpwaJZlo2yiL7OyxdA,4441
95
95
  uipath/_resources/AGENTS.md,sha256=nRQNAVeEBaBvuMzXw8uXtMnGebLClUgwIMlgb8_qU9o,1039
96
96
  uipath/_resources/CLAUDE.md,sha256=kYsckFWTVe948z_fNWLysCHvi9_YpchBXl3s1Ek03lU,10
97
97
  uipath/_resources/CLI_REFERENCE.md,sha256=stB6W2aUr0o9UzZ49h7ZXvltaLhnwPUe4_erko4Nr9k,6262
@@ -184,8 +184,8 @@ uipath/tracing/_utils.py,sha256=X-LFsyIxDeNOGuHPvkb6T5o9Y8ElYhr_rP3CEBJSu4s,1383
184
184
  uipath/utils/__init__.py,sha256=VD-KXFpF_oWexFg6zyiWMkxl2HM4hYJMIUDZ1UEtGx0,105
185
185
  uipath/utils/_endpoints_manager.py,sha256=iRTl5Q0XAm_YgcnMcJOXtj-8052sr6jpWuPNz6CgT0Q,8408
186
186
  uipath/utils/dynamic_schema.py,sha256=w0u_54MoeIAB-mf3GmwX1A_X8_HDrRy6p998PvX9evY,3839
187
- uipath-2.1.92.dist-info/METADATA,sha256=qsfDknY5w6gOobkvMHgz-54kt6N6sc4KbJbwSNtFxqs,6593
188
- uipath-2.1.92.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
189
- uipath-2.1.92.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
190
- uipath-2.1.92.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
191
- uipath-2.1.92.dist-info/RECORD,,
187
+ uipath-2.1.93.dist-info/METADATA,sha256=TbFA1C7aF3D8rpFAJ8GAjkEgQeTa8BRSn8NPVX1q3_U,6593
188
+ uipath-2.1.93.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
189
+ uipath-2.1.93.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
190
+ uipath-2.1.93.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
191
+ uipath-2.1.93.dist-info/RECORD,,