From 4c59efcc8222e7bc940c57b0974cb08d4819d920 Mon Sep 17 00:00:00 2001 From: Josh Park <50765702+JoshParkSJ@users.noreply.github.com> Date: Wed, 13 May 2026 07:46:00 -0400 Subject: [PATCH] refactor: narrow voice_mode to Literal["session"] The "config" and "toolCall" voice modes are deprecated; all voice agents have been migrated to "session". Narrow the literal so dead values can't propagate into runtime callers, and bump version to 0.10.4. --- pyproject.toml | 2 +- src/uipath/runtime/context.py | 2 +- uv.lock | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 33a9ebf..9506f4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath-runtime" -version = "0.10.3" +version = "0.10.4" 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/context.py b/src/uipath/runtime/context.py index c77ceb0..2fe81a8 100644 --- a/src/uipath/runtime/context.py +++ b/src/uipath/runtime/context.py @@ -37,7 +37,7 @@ class UiPathRuntimeContext(BaseModel): ) exchange_id: str | None = Field(None, description="Exchange identifier for CAS") message_id: str | None = Field(None, description="Message identifier for CAS") - voice_mode: Literal["config", "toolCall"] | None = Field( + voice_mode: Literal["session"] | None = Field( None, description="Voice job type for CAS" ) mcp_server_id: str | None = None diff --git a/uv.lock b/uv.lock index 8f1a441..d85e772 100644 --- a/uv.lock +++ b/uv.lock @@ -1005,7 +1005,7 @@ wheels = [ [[package]] name = "uipath-runtime" -version = "0.10.3" +version = "0.10.4" source = { editable = "." } dependencies = [ { name = "uipath-core" },