feat: export resolved conversation_id to UIPATH_CONVERSATION_ID env var#114
Open
maxduu wants to merge 3 commits into
Open
feat: export resolved conversation_id to UIPATH_CONVERSATION_ID env var#114maxduu wants to merge 3 commits into
maxduu wants to merge 3 commits into
Conversation
3 tasks
|
andrewwan-uipath
approved these changes
May 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
At the end of
UiPathRuntimeContext.with_defaults(), export the resolvedconversation_idwhich comes fromfpsProperties.conversationalService.conversationId`` toos.environ["UIPATH_CONVERSATION_ID"]` so downstream tool implementations can read it. This is the simplest method as it does not need the runtime context plumbed through every call site.The conversation id is resolved from
fpsProperties.conversationalService.conversationIdinuipath.json(and any override applied via kwargs), then exported once. Only set when present — no-op when missing.Motivation
A follow-up change in
uipath-langchain-pythonauto-injects the conversation id into Orchestrator/Maestro tool calls whose input schemas declare aUIPATH_RESERVED_CONVERSATIONIDargument. Those tools need a low-friction way to access the conversation id at execution time.Test plan
tests/test_context.py::test_with_defaults_exports_conversation_id_to_env— verifies a config-supplied conversation id ends up inos.environwith_defaults()/from_config()tests still pass