From 1a2c76feb5d57a016cba3aeff57a5180c77e0daf Mon Sep 17 00:00:00 2001 From: Cristian Pufu Date: Wed, 26 Nov 2025 08:24:52 +0200 Subject: [PATCH] fix: add subgraph in graph node --- pyproject.toml | 2 +- src/uipath/runtime/schema.py | 5 +++++ uv.lock | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6dfbfca..357ab07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath-runtime" -version = "0.0.18" +version = "0.0.19" description = "Runtime abstractions and interfaces for building agents and automation scripts in the UiPath ecosystem" readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.11" diff --git a/src/uipath/runtime/schema.py b/src/uipath/runtime/schema.py index 3dd469e..a01a42a 100644 --- a/src/uipath/runtime/schema.py +++ b/src/uipath/runtime/schema.py @@ -1,5 +1,7 @@ """UiPath Runtime Schema Definitions.""" +from __future__ import annotations + from typing import Any from pydantic import BaseModel, ConfigDict, Field @@ -19,6 +21,9 @@ class UiPathRuntimeNode(BaseModel): id: str = Field(..., description="Unique node identifier") name: str = Field(..., description="Display name of the node") type: str = Field(..., description="Node type (e.g., 'tool', 'model')") + subgraph: UiPathRuntimeGraph | None = Field( + None, description="Nested subgraph if this node contains one" + ) model_config = COMMON_MODEL_SCHEMA diff --git a/uv.lock b/uv.lock index 12060f0..4bfc42d 100644 --- a/uv.lock +++ b/uv.lock @@ -938,7 +938,7 @@ wheels = [ [[package]] name = "uipath-runtime" -version = "0.0.18" +version = "0.0.19" source = { editable = "." } dependencies = [ { name = "uipath-core" },