Skip to content

Commit cecea2d

Browse files
committed
fix: lint checks
1 parent d630077 commit cecea2d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/uipath-openai-agents/src/uipath_openai_agents/runtime/_serialize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def serialize_output(output: Any) -> Any:
2424
elif hasattr(output, "to_dict"):
2525
return serialize_output(output.to_dict())
2626

27-
# Handle dataclasses
28-
elif dataclasses.is_dataclass(output):
27+
# Handle dataclasses (but not dataclass types)
28+
elif dataclasses.is_dataclass(output) and not isinstance(output, type):
2929
return serialize_output(dataclasses.asdict(output))
3030

3131
# Handle dictionaries

packages/uipath-openai-agents/src/uipath_openai_agents/runtime/runtime.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ async def _run_agent(
255255

256256
async def _run_agent_streamed(
257257
self,
258-
agent_input: str | list,
258+
agent_input: str | list[Any],
259259
options: UiPathExecuteOptions | UiPathStreamOptions | None,
260260
stream_events: bool,
261261
) -> AsyncGenerator[UiPathRuntimeEvent | UiPathRuntimeResult, None]:
@@ -460,7 +460,7 @@ def _convert_stream_event_to_runtime_event(
460460
# Filter out raw response events (too granular)
461461
return None
462462

463-
def _prepare_agent_input(self, input: dict[str, Any] | None) -> str | list:
463+
def _prepare_agent_input(self, input: dict[str, Any] | None) -> str | list[Any]:
464464
"""
465465
Prepare agent input from UiPath input dictionary.
466466

0 commit comments

Comments
 (0)