Skip to content

Commit fde17bc

Browse files
authored
Merge pull request #97 from UiPath/josh/voice
fix(runtime): add voice mode to runtime context
2 parents e5f8721 + 838d282 commit fde17bc

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-runtime"
3-
version = "0.9.2"
3+
version = "0.9.3"
44
description = "Runtime abstractions and interfaces for building agents and automation scripts in the UiPath ecosystem"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

src/uipath/runtime/context.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import os
66
from functools import cached_property
77
from pathlib import Path
8-
from typing import Any
8+
from typing import Any, Literal
99

1010
from pydantic import BaseModel, ConfigDict, Field
1111
from uipath.core.errors import UiPathFaultedTriggerError
@@ -37,6 +37,9 @@ class UiPathRuntimeContext(BaseModel):
3737
)
3838
exchange_id: str | None = Field(None, description="Exchange identifier for CAS")
3939
message_id: str | None = Field(None, description="Message identifier for CAS")
40+
voice_mode: Literal["config", "toolCall"] | None = Field(
41+
None, description="Voice job type for CAS"
42+
)
4043
mcp_server_id: str | None = None
4144
mcp_server_slug: str | None = None
4245
tenant_id: str | None = None
@@ -363,6 +366,7 @@ def from_config(
363366
"conversationalService.messageId": "message_id",
364367
"mcpServer.id": "mcp_server_id",
365368
"mcpServer.slug": "mcp_server_slug",
369+
"voice.mode": "voice_mode",
366370
}
367371

368372
attributes_set = set()

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)