Skip to content

feat: add conversational_run_as_me to runtime context#148

Open
maxduu wants to merge 1 commit into
mainfrom
feat/fps-conversational-run-as-me
Open

feat: add conversational_run_as_me to runtime context#148
maxduu wants to merge 1 commit into
mainfrom
feat/fps-conversational-run-as-me

Conversation

@maxduu

@maxduu maxduu commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Exposes fpsProperties.conversationalService.runAsMe on UiPathRuntimeContext.conversational_run_as_me so downstream layers can mirror the parent conversational agent job's RunAsMe flag onto child process / API-workflow tool invocations.
  • Replaces the brittle token sub_type == "user" inspection in the langchain tool factory, which was misclassifying user tokens and preventing RunAsMe from propagating correctly to child jobs.
  • Bumps uipath-runtime to 0.12.3.

Related PRs

Test plan

  • uv run pytest tests/test_context.py — 26 passed (includes the new test_conversational_run_as_me_defaults_false_when_fps_property_absent and the extended test_from_config_extracts_fps_properties_without_runtime).

🤖 Generated with Claude Code

Exposes fpsProperties.conversationalService.runAsMe on
UiPathRuntimeContext.conversational_run_as_me so downstream layers
(e.g. langchain tool factory) can mirror the parent conversational
agent job's RunAsMe flag onto child process/API-workflow tool
invocations, replacing the brittle token sub_type inspection that
was misclassifying user tokens.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 10, 2026 19:03
@maxduu maxduu requested a review from a team as a code owner July 10, 2026 19:03
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for propagating the conversational agent job’s RunAsMe flag through UiPathRuntimeContext by exposing it as a first-class context field and loading it from fpsProperties in uipath.json. This enables downstream layers to read conversational_run_as_me when spawning child processes / invoking API-workflow tools.

Changes:

  • Add UiPathRuntimeContext.conversational_run_as_me (default False) and map fpsProperties["conversationalService.runAsMe"] onto it.
  • Extend context-loading tests to cover runAsMe extraction and verify the default is False when absent.
  • Bump package version to 0.12.3 (and lockfile entry).

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/uipath/runtime/context.py Introduces conversational_run_as_me and maps the fpsProperties key to it in from_config.
tests/test_context.py Adds assertions and a new test to validate conversational_run_as_me behavior.
pyproject.toml Bumps project version to 0.12.3.
uv.lock Updates locked version for uipath-runtime to 0.12.3.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pyproject.toml
[project]
name = "uipath-runtime"
version = "0.12.2"
version = "0.12.3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants