Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "uipath-runtime"
version = "0.11.8"
version = "0.11.9"
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"
Expand Down
2 changes: 1 addition & 1 deletion src/uipath/runtime/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class UiPathRuntimeContext(BaseModel):
None,
description="Conversation owner id for CAS (a real cloud user id or a synthetic user id)",
)
voice_mode: Literal["session"] | None = Field(
voice_mode: Literal["session", "maestro_flow"] | None = Field(
None, description="Voice job type for CAS"
)
mcp_server_id: str | None = None
Expand Down
17 changes: 17 additions & 0 deletions tests/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,20 @@ def test_explicit_execution_source_not_overwritten() -> None:
ctx = UiPathRuntimeContext(command="run", execution_source="custom")

assert ctx.execution_source == "custom"


def test_constructor_accepts_maestro_flow_voice_mode() -> None:
ctx = UiPathRuntimeContext(voice_mode="maestro_flow")

assert ctx.voice_mode == "maestro_flow"


def test_from_config_accepts_maestro_flow_voice_mode(tmp_path: Path) -> None:
config_path = tmp_path / "uipath.json"
config_path.write_text(
json.dumps({"fpsProperties": {"voice.mode": "maestro_flow"}})
)

ctx = UiPathRuntimeContext.from_config(str(config_path))

assert ctx.voice_mode == "maestro_flow"
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading